public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mcrouter] epel10.3: Update to snapshot from 20210324
@ 2026-10-08 9:33 Michel Alexandre Salim
0 siblings, 0 replies; only message in thread
From: Michel Alexandre Salim @ 2026-10-08 9:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mcrouter
Branch : epel10.3
Commit : 4ef964f05a100d9e2ab0a28b4c92cd6c579464e3
Author : Michel Alexandre Salim <michel@michel-slm.name>
Date : 2021-03-29T13:36:51-07:00
Stats : +31/-9 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/mcrouter/c/4ef964f05a100d9e2ab0a28b4c92cd6c579464e3?branch=epel10.3
Log:
Update to snapshot from 20210324
Use %forgeautosetup so the configure.ac patch is actually applied
Determine the number of safe build jobs to use (borrowed from Ceph)
Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
---
diff --git a/.gitignore b/.gitignore
index 390f8f5..5bfcd7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/mcrouter-254a127c7f360fe7f50b6f7add787ad895de8746.tar.gz
+/mcrouter-7884f76a775849dba073c37c8accad641d442827.tar.gz
diff --git a/mcrouter.spec b/mcrouter.spec
index 83eb68e..0d88608 100644
--- a/mcrouter.spec
+++ b/mcrouter.spec
@@ -5,16 +5,15 @@
# 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 _smp_build_ncpus 1
%global forgeurl https://github.com/facebook/mcrouter
-%global commit 254a127c7f360fe7f50b6f7add787ad895de8746
-%global date 20210322
+%global commit 7884f76a775849dba073c37c8accad641d442827
+%global date 20210324
%forgemeta
Name: mcrouter
Version: 0.41.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Memcached protocol router for scaling memcached deployments
License: MIT
@@ -45,6 +44,8 @@ BuildRequires: fizz-devel
BuildRequires: wangle-devel
BuildRequires: fbthrift-devel
BuildRequires: fbthrift
+# for free
+BuildRequires: procps-ng
BuildRequires: python3-devel
BuildRequires: python3-fbthrift-devel
BuildRequires: ragel
@@ -61,17 +62,33 @@ mcrouter, which was designed to be a drop-in proxy between the client and
memcached hosts.
%prep
-%forgesetup
+%forgeautosetup -p1
pushd %{name}
echo "%{version}" > VERSION
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
+
pushd %{name}
export FBTHRIFT_BIN="%{_bindir}"
export PYTHON_VERSION="%{python3_version}"
%configure --enable-shared --disable-static
-%make_build
+%make_build "${MCROUTER_SMP_NCPUS}"
%install
pushd %{name}
@@ -80,7 +97,7 @@ pushd %{name}
%if %{with check}
%check
pushd %{name}
-%{__make} check
+%{__make} check "${MCROUTER_SMP_NCPUS}"
%endif
%files
@@ -89,6 +106,11 @@ pushd %{name}
%{_bindir}/*
%changelog
+* Mon Mar 29 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.41.0-4.20210324git7884f76
+- Update to snapshot from 20210324
+- Use %%forgeautosetup so the configure.ac patch is actually applied
+- Determine the number of safe build jobs to use (borrowed from Ceph)
+
* Fri Mar 26 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.41.0-3.20210322git254a127
- Fix usage of deprecated AC_PROG_LIBTOOL macro; use LT_INIT instead
diff --git a/sources b/sources
index c73f0f8..c32a4a3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mcrouter-254a127c7f360fe7f50b6f7add787ad895de8746.tar.gz) = 7572b6f15f5b20d787361ad947d9effb9e1f34b73bad888a379993a92cee84de711b0ec4d139643acc3ced7ff5828ec7f72c37ee0d2a0ec3103693dd0c2b3011
+SHA512 (mcrouter-7884f76a775849dba073c37c8accad641d442827.tar.gz) = e0294bfc2977dd510e1b79dfce0bd62567a73d54f3d5806522d57ca01036d0b87470d6470d8c529ea35b7143c0132cff5d8a889516719f52a4a706fe786a660e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 9:33 [rpms/mcrouter] epel10.3: Update to snapshot from 20210324 Michel Alexandre Salim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox