public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <michel@michel-slm.name>
To: git-commits@fedoraproject.org
Subject: [rpms/mcrouter] epel10.3: Update to snapshot from 20210324
Date: Thu, 08 Oct 2026 09:33:52 GMT	[thread overview]
Message-ID: <179145203243.1.53426819061410734.rpms-mcrouter-4ef964f05a10@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-10-08  9:33 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=179145203243.1.53426819061410734.rpms-mcrouter-4ef964f05a10@fedoraproject.org \
    --to=michel@michel-slm.name \
    --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