diff --git a/SOURCES/numad-0.5git-m-option.patch b/SOURCES/numad-0.5git-m-option.patch new file mode 100644 index 0000000..8fee75f --- /dev/null +++ b/SOURCES/numad-0.5git-m-option.patch @@ -0,0 +1,21 @@ +Resolves: #1506477 + +commit cf6c2c029edc9c288122bcd603a72eb7f6d042d2 +Author: Jan Synacek +Date: Mon Oct 30 11:37:45 2017 +0100 + + recognize -m option correctly + +diff --git a/numad.c b/numad.c +index 4c85486..0721af4 100644 +--- a/numad.c ++++ b/numad.c +@@ -2395,7 +2395,7 @@ int main(int argc, char *argv[]) { + int x_flag = 0; + int tmp_int = 0; + long list_pid = 0; +- while ((opt = getopt(argc, argv, "C:dD:hH:i:K:l:p:r:R:S:t:u:vVw:x:")) != -1) { ++ while ((opt = getopt(argc, argv, "C:dD:hH:i:K:l:m:p:r:R:S:t:u:vVw:x:")) != -1) { + switch (opt) { + case 'C': + C_flag = 1; diff --git a/SPECS/numad.spec b/SPECS/numad.spec index ca8d1c5..7655482 100644 --- a/SPECS/numad.spec +++ b/SPECS/numad.spec @@ -3,7 +3,7 @@ Name: numad Version: 0.5 -Release: 17.20150602git%{?dist} +Release: 18.20150602git%{?dist} Summary: NUMA user daemon License: LGPLv2 @@ -17,6 +17,7 @@ Source0: %{name}-%{version}git.tar.xz Source1: %{name}.logrotate Patch0: numad-0.5git-pthread.patch Patch1: numad-0.5git-version.patch +Patch2: numad-0.5git-m-option.patch Requires: systemd-units, initscripts Requires(post): systemd-units, initscripts @@ -34,6 +35,7 @@ and memory to minimize memory latency and thus provide optimum performance. %setup -q -n %{name}-%{version}git %patch0 -p0 %patch1 -p1 +%patch2 -p1 %build make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm" @@ -65,6 +67,9 @@ make install prefix=%{buildroot}/usr %systemd_postun numad.service %changelog +* Mon Oct 30 2017 Jan Synáček - 0.5-18.20150602git +- Fix -m option (#1506477) + * Tue Aug 30 2016 Jan Synáček - 0.5-17.20150602git - Fix the version patch (#1281711)