recognize the -m option

This commit is contained in:
Lukáš Zaoral 2023-11-15 09:28:35 +01:00 committed by root
parent 6332e3fc13
commit bb84150719
3 changed files with 29 additions and 3 deletions

1
.numad.metadata Normal file
View File

@ -0,0 +1 @@
22146cf894b1e9bf662ea98f720a565fd759cb3f numad-0.5git.tar.xz

View File

@ -0,0 +1,19 @@
commit cf6c2c029edc9c288122bcd603a72eb7f6d042d2
Author: Jan Synacek <jsynacek@redhat.com>
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;

View File

@ -2,7 +2,7 @@
Name: numad Name: numad
Version: 0.5 Version: 0.5
Release: 36.20150602git%{?dist} Release: 37.20150602git%{?dist}
Summary: NUMA user daemon Summary: NUMA user daemon
License: LGPLv2 License: LGPLv2
@ -14,6 +14,10 @@ URL: https://pagure.io/numad
Source0: %{name}-%{version}git.tar.xz Source0: %{name}-%{version}git.tar.xz
Patch0: 0000-remove-conf.patch Patch0: 0000-remove-conf.patch
# RHEL-16571
# Upstream commit: https://pagure.io/numad/c/cf6c2c029edc9c288122bcd603a72eb7f6d042d2
Patch1: numad-0.5git-m-option.patch
Requires: systemd-units Requires: systemd-units
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
@ -29,8 +33,7 @@ that monitors NUMA characteristics and manages placement of processes
and memory to minimize memory latency and thus provide optimum performance. and memory to minimize memory latency and thus provide optimum performance.
%prep %prep
%setup -q -n %{name}-%{version}git %autosetup -n %{name}-%{version}git
%patch0 -p1
%build %build
make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm" make CFLAGS="$RPM_OPT_FLAGS -std=gnu99" LDFLAGS="$RPM_LD_FLAGS -lpthread -lrt -lm"
@ -60,6 +63,9 @@ install -p -m 644 numad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%systemd_postun numad.service %systemd_postun numad.service
%changelog %changelog
* Wed Nov 15 2023 Lukáš Zaoral <lzaoral@redhat.com> - 0.5-37.20150602git
- recognize the -m option (RHEL-16571)
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.5-36.20150602git * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.5-36.20150602git
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688