public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/mcrouter] epel10: Update to snapshot from 20210723
Date: Thu, 08 Oct 2026 07:36:07 GMT [thread overview]
Message-ID: <179144496725.1.18043688752187424892.rpms-mcrouter-188c952f2c2b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mcrouter
Branch : epel10
Commit : 188c952f2c2b539c8bde11b92985f39a3faa126f
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date : 2021-08-01T20:08:20-07:00
Stats : +69/-32 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/mcrouter/c/188c952f2c2b539c8bde11b92985f39a3faa126f?branch=epel10
Log:
Update to snapshot from 20210723
Use new %limit_build macro to limit memory usage per build process
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 89ae574..935cf8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/mcrouter-67eda7182bb1cb625abf5d652daf2848060d36a6.tar.gz
+/mcrouter-c9cd4bddf894e84c342378a801f108d35f8c3385.tar.gz
diff --git a/mcrouter-0.41.0-no_distutils.patch b/mcrouter-0.41.0-no_distutils.patch
index b0b7319..d870fcc 100644
--- a/mcrouter-0.41.0-no_distutils.patch
+++ b/mcrouter-0.41.0-no_distutils.patch
@@ -1,4 +1,4 @@
-From 0699b41e6bdaf0a63052448b36de82d1c6a32e2a Mon Sep 17 00:00:00 2001
+From cda674a71f598e3f7125c63e74f13c0415b12f08 Mon Sep 17 00:00:00 2001
From: Michel Alexandre Salim <salimma@fedoraproject.org>
Date: Mon, 19 Jul 2021 16:22:00 -0700
Subject: [PATCH] Stop using distutils
@@ -8,16 +8,55 @@ distutils is deprecated in Python 3.10 and will be removed in 3.12.
Most of the usages here can be replaced by using `sysconfig`; one
fallback no longer exists and simply has to be removed.
+Minimum Python version is now 3.2.0, which introduces `sysconfig`:
+https://docs.python.org/3/library/sysconfig.html
+
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
- mcrouter/m4/ax_python_devel.m4 | 49 +++++++++++++++-------------------
- 1 file changed, 21 insertions(+), 28 deletions(-)
+ mcrouter/m4/ax_python_devel.m4 | 63 ++++++++++++++++------------------
+ 1 file changed, 29 insertions(+), 34 deletions(-)
diff --git a/mcrouter/m4/ax_python_devel.m4 b/mcrouter/m4/ax_python_devel.m4
-index ef86fcb4..da68881b 100644
+index ef86fcb4..67fe81a1 100644
--- a/mcrouter/m4/ax_python_devel.m4
+++ b/mcrouter/m4/ax_python_devel.m4
-@@ -135,17 +135,17 @@ variable to configure. See ``configure --help'' for reference.
+@@ -25,7 +25,7 @@
+ # version number. Don't use "PYTHON_VERSION" for this: that environment
+ # variable is declared as precious and thus reserved for the end-user.
+ #
+-# This macro should work for all versions of Python >= 2.1.0. As an end
++# This macro should work for all versions of Python >= 3.2.0. As an end
+ # user, you can disable the check for the python version by setting the
+ # PYTHON_NOVERSIONCHECK environment variable to something else than the
+ # empty string.
+@@ -88,19 +88,21 @@ AC_DEFUN([AX_PYTHON_DEVEL],[
+ fi
+
+ #
+- # Check for a version of Python >= 2.1.0
++ # Check for a version of Python >= 3.2.0
+ #
+- AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
++ AC_MSG_CHECKING([for a version of Python >= '3.2.0'])
+ ac_supports_python_ver=`$PYTHON -c "import sys; \
+- ver = sys.version.split ()[[0]]; \
+- print (ver >= '2.1.0')"`
++ ver = sys.version.split()[[0]].split('.'); \
++ major_ver = int(ver[[0]]); \
++ minor_ver = int(ver[[1]]); \
++ print (major_ver > 3 or major_ver == 3 and minor_ver >= 2)"`
+ if test "$ac_supports_python_ver" != "True"; then
+ if test -z "$PYTHON_NOVERSIONCHECK"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_FAILURE([
+ This version of the AC@&t@_PYTHON_DEVEL macro
+ doesn't work properly with versions of Python before
+-2.1.0. You may need to re-run configure, setting the
++3.2.0. You may need to re-run configure, setting the
+ variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
+ PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
+ Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
+@@ -135,17 +137,17 @@ variable to configure. See ``configure --help'' for reference.
fi
#
@@ -41,7 +80,7 @@ index ef86fcb4..da68881b 100644
PYTHON_VERSION=""
fi
-@@ -154,10 +154,10 @@ $ac_distutils_result])
+@@ -154,10 +156,10 @@ $ac_distutils_result])
#
AC_MSG_CHECKING([for Python include path])
if test -z "$PYTHON_CPPFLAGS"; then
@@ -56,7 +95,7 @@ index ef86fcb4..da68881b 100644
if test -n "${python_path}"; then
if test "${plat_python_path}" != "${python_path}"; then
python_path="-I$python_path -I$plat_python_path"
-@@ -181,7 +181,7 @@ $ac_distutils_result])
+@@ -181,7 +183,7 @@ $ac_distutils_result])
# join all versioning strings, on some systems
# major/minor numbers could be in different list elements
@@ -65,7 +104,7 @@ index ef86fcb4..da68881b 100644
e = get_config_var('VERSION')
if e is not None:
print(e)
-@@ -204,8 +204,8 @@ EOD`
+@@ -204,8 +206,8 @@ EOD`
ac_python_libdir=`cat<<EOD | $PYTHON -
# There should be only one
@@ -76,7 +115,7 @@ index ef86fcb4..da68881b 100644
if e is not None:
print (e)
EOD`
-@@ -213,8 +213,8 @@ EOD`
+@@ -213,8 +215,8 @@ EOD`
# Now, for the library:
ac_python_library=`cat<<EOD | $PYTHON -
@@ -87,7 +126,7 @@ index ef86fcb4..da68881b 100644
if 'LDVERSION' in c:
print ('python'+c[['LDVERSION']])
else:
-@@ -230,13 +230,6 @@ EOD`
+@@ -230,13 +232,6 @@ EOD`
# use the official shared library
ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
@@ -101,7 +140,7 @@ index ef86fcb4..da68881b 100644
fi
if test -z "PYTHON_LIBS"; then
-@@ -254,8 +247,8 @@ EOD`
+@@ -254,8 +249,8 @@ EOD`
#
AC_MSG_CHECKING([for Python site-packages path])
if test -z "$PYTHON_SITE_PKG"; then
@@ -112,7 +151,7 @@ index ef86fcb4..da68881b 100644
fi
AC_MSG_RESULT([$PYTHON_SITE_PKG])
AC_SUBST([PYTHON_SITE_PKG])
-@@ -265,8 +258,8 @@ EOD`
+@@ -265,8 +260,8 @@ EOD`
#
AC_MSG_CHECKING(python extra libraries)
if test -z "$PYTHON_EXTRA_LDFLAGS"; then
@@ -123,7 +162,7 @@ index ef86fcb4..da68881b 100644
print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
fi
AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS])
-@@ -277,8 +270,8 @@ EOD`
+@@ -277,8 +272,8 @@ EOD`
#
AC_MSG_CHECKING(python extra linking flags)
if test -z "$PYTHON_EXTRA_LIBS"; then
diff --git a/mcrouter.spec b/mcrouter.spec
index 977bdc7..072d3ae 100644
--- a/mcrouter.spec
+++ b/mcrouter.spec
@@ -1,15 +1,22 @@
# linking tests fail with undefined references
%bcond_with check
+# debugsourcefiles.list is now empty
+%bcond_with debug
+
+%if %{without debug}
+%global debug_package %{nil}
+%endif
+
# mcrouter build process is very memory-hungry,
# it fails unpredictably if some of the jobs get terminated
# with no LTO and 1 build job memory usage peaks at ~ 44% with 16GB
%global _lto_cflags %nil
%global forgeurl https://github.com/facebook/mcrouter
-%global commit 67eda7182bb1cb625abf5d652daf2848060d36a6
+%global commit c9cd4bddf894e84c342378a801f108d35f8c3385
%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global date 20210629
+%global date 20210723
Name: mcrouter
Version: 0.41.0
@@ -68,26 +75,13 @@ autoreconf --install
%build
# do not eat all memory
-echo "Available memory:"
-free -h
-echo "System limits:"
-ulimit -a
-
-MCROUTER_SMP_NCPUS="%{_smp_build_ncpus}"
-mem_per_process=8192
-max_mem=$(LANG=C free -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p")
-max_jobs="$(($max_mem / $mem_per_process))"
-if test "%{_smp_build_ncpus}" -gt "$max_jobs";
-then
- echo "Warning: Reducing build parallelism to -j$max_jobs because of memory limits"
- MCROUTER_SMP_NCPUS="-j${max_jobs}"
-fi
+%limit_build -m 4096
pushd %{name}
export FBTHRIFT_BIN="%{_bindir}"
export PYTHON_VERSION="%{python3_version}"
%configure --enable-shared --disable-static
-%make_build "${MCROUTER_SMP_NCPUS}"
+%make_build
%install
pushd %{name}
@@ -105,6 +99,10 @@ pushd %{name}
%{_bindir}/*
%changelog
+* Sun Aug 1 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.41.0-5.20210723gitc9cd4bd
+- Update to snapshot from 20210723
+- Use new %%limit_build macro to limit memory usage per build process
+
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.41.0-5.20210629git67eda71
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
diff --git a/sources b/sources
index 80da9a6..4cbde48 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mcrouter-67eda7182bb1cb625abf5d652daf2848060d36a6.tar.gz) = 36ef77e74ce90d13fbc99940130267a4049b6364b3fedb188b6837d7b23e6b46bd2a98ce07b976a270077b94c93a515b35e1e26d482d4bebb4ee302ff2e7b0fb
+SHA512 (mcrouter-c9cd4bddf894e84c342378a801f108d35f8c3385.tar.gz) = de9224f5c4f335605731473b9e8851cb96aadcd1e8cce6e22ddacea469e6cfe0d3d5693ff7fd02aa4d1e9938f4fbc350b5f49bebdedd8b2f5824e301e8112b59
reply other threads:[~2026-10-08 7:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179144496725.1.18043688752187424892.rpms-mcrouter-188c952f2c2b@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox