Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-399693-72335/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ledmon-0.97-1.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-399693-72335/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.irR63s + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ledmon-0.97 + /usr/bin/gzip -dc /builddir/build/SOURCES/ledmon-0.97.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ledmon-0.97 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-libled-Static-code-analysis-fixes.patch):' Patch #1 (0001-libled-Static-code-analysis-fixes.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 can't find file to patch at input line 34 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 607d51cab9065fb120719ebeb7b6477d0bc45fd9 Mon Sep 17 00:00:00 2001 |From: Tony Asleson |Date: Fri, 3 Feb 2023 08:29:53 -0600 |Subject: [PATCH] libled: Static code analysis fixes | |These were found using coverity and other source static code |checking tools. | |Signed-off-by: Tony Asleson |--- | src/common/config_file.c | 4 +- | src/ledctl/ledctl.c | 1 + | src/ledmon/ledmon.c | 12 ++++-- | src/ledmon/pidfile.c | 5 ++- | src/lib/amd.c | 3 +- | src/lib/amd_ipmi.c | 28 +++++++++---- | src/lib/amd_sgpio.c | 33 +++++++++------ | src/lib/block.c | 22 ++++++---- | src/lib/include/led/libled.h | 2 +- | src/lib/pci_slot.c | 13 ++++-- | src/lib/raid.c | 12 +++--- | src/lib/ses.c | 3 +- | src/lib/smp.c | 14 ++++--- | src/lib/sysfs.c | 12 +++++- | src/lib/utils.c | 79 +++++++++++++++++++++++++++--------- | src/lib/utils.h | 32 +++++++++++++++ | src/lib/vmdssd.c | 2 + | 17 files changed, 199 insertions(+), 78 deletions(-) | |diff --git a/src/common/config_file.c b/src/common/config_file.c |index 7fe62d48f509..f5a41729240f 100644 |--- a/src/common/config_file.c |+++ b/src/common/config_file.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 56 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/ledctl/ledctl.c b/src/ledctl/ledctl.c |index e48865a16686..6586eff2698a 100644 |--- a/src/ledctl/ledctl.c |+++ b/src/ledctl/ledctl.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 68 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/ledmon/ledmon.c b/src/ledmon/ledmon.c |index 25e2d4041701..2fd395cb0666 100644 |--- a/src/ledmon/ledmon.c |+++ b/src/ledmon/ledmon.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 5 out of 5 hunks ignored can't find file to patch at input line 119 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/ledmon/pidfile.c b/src/ledmon/pidfile.c |index 3bb95cd1ca22..3ab8a178280d 100644 |--- a/src/ledmon/pidfile.c |+++ b/src/ledmon/pidfile.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 144 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/amd.c b/src/lib/amd.c |index 4f9ab8b14cdb..eb5d7ebaea87 100644 |--- a/src/lib/amd.c |+++ b/src/lib/amd.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 162 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/amd_ipmi.c b/src/lib/amd_ipmi.c |index 35140352827f..86a75c1d8c40 100644 |--- a/src/lib/amd_ipmi.c |+++ b/src/lib/amd_ipmi.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 4 out of 4 hunks ignored can't find file to patch at input line 224 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/amd_sgpio.c b/src/lib/amd_sgpio.c |index 793d2f7a18fa..85cdabc0219c 100644 |--- a/src/lib/amd_sgpio.c |+++ b/src/lib/amd_sgpio.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 6 out of 6 hunks ignored can't find file to patch at input line 316 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/block.c b/src/lib/block.c |index 4511eb07b86a..d570af5a478a 100644 |--- a/src/lib/block.c |+++ b/src/lib/block.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 3 out of 3 hunks ignored can't find file to patch at input line 371 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/include/led/libled.h b/src/lib/include/led/libled.h |index 3ad03ae4783a..019c2f3dbac9 100644 |--- a/src/lib/include/led/libled.h |+++ b/src/lib/include/led/libled.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 384 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/pci_slot.c b/src/lib/pci_slot.c |index 79979d14b360..73896c716414 100644 |--- a/src/lib/pci_slot.c |+++ b/src/lib/pci_slot.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 417 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/raid.c b/src/lib/raid.c |index 3d09606de51d..cae33a29652d 100644 |--- a/src/lib/raid.c |+++ b/src/lib/raid.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 6 out of 6 hunks ignored can't find file to patch at input line 481 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/ses.c b/src/lib/ses.c |index 06120c59a403..78fcf1d17f0c 100644 |--- a/src/lib/ses.c |+++ b/src/lib/ses.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 499 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/smp.c b/src/lib/smp.c |index dcdab2e6070b..b38b659a529c 100644 |--- a/src/lib/smp.c |+++ b/src/lib/smp.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 537 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/sysfs.c b/src/lib/sysfs.c |index e477d27fa9e1..a67e10e0d949 100644 |--- a/src/lib/sysfs.c |+++ b/src/lib/sysfs.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 562 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/utils.c b/src/lib/utils.c |index 966c1cfb0977..2db4df94c46b 100644 |--- a/src/lib/utils.c |+++ b/src/lib/utils.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 4 out of 4 hunks ignored can't find file to patch at input line 716 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/utils.h b/src/lib/utils.h |index 32191e7d56f8..6a11bc116a16 100644 |--- a/src/lib/utils.h |+++ b/src/lib/utils.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 766 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/src/lib/vmdssd.c b/src/lib/vmdssd.c |index 1221ed858e34..e509aabdc3e8 100644 |--- a/src/lib/vmdssd.c |+++ b/src/lib/vmdssd.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.irR63s (%prep) Bad exit status from /var/tmp/rpm-tmp.irR63s (%prep) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ledmon.spec'