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 x86_64 --nodeps /builddir/build/SPECS/freeglut.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-392126-72076/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/freeglut.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 warning: bogus date in %changelog: Mon Aug 27 2006 Michael J. Knox - 2.4.0-10 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/freeglut-3.2.1-10.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/freeglut.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-392126-72076/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/freeglut.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 warning: bogus date in %changelog: Mon Aug 27 2006 Michael J. Knox - 2.4.0-10 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.da6mg9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf freeglut-3.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/freeglut-3.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd freeglut-3.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/openglut-0.6.3-doc.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (common.patch):' Patch #0 (common.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file CMakeLists.txt + echo 'Patch #1 (0001-Plug-memory-leak-that-happens-upon-error.patch):' Patch #1 (0001-Plug-memory-leak-that-happens-upon-error.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 can't find file to patch at input line 20 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 9ad320c1ad1a25558998ddfe47674511567fec57 Mon Sep 17 00:00:00 2001 |From: Sebastian Rasmussen |Date: Mon, 12 Feb 2024 14:46:22 +0800 |Subject: [PATCH] Plug memory leak that happens upon error. | |If fgStructure.CurrentMenu is set when glutAddMenuEntry() or |glutAddSubMenu() is called the allocated menuEntry variable will |leak. This commit postpones allocating menuEntry until after the |error checks, thereby plugging the memory leak. | |This fixes CVE-2024-24258 and CVE-2024-24259. |--- | src/fg_menu.c | 4 ++-- | 1 file changed, 2 insertions(+), 2 deletions(-) | |diff --git a/src/fg_menu.c b/src/fg_menu.c |index 53112dc2..0da88901 100644 |--- a/src/fg_menu.c |+++ b/src/fg_menu.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 3 out of 3 hunks ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.da6mg9 (%prep) bogus date in %changelog: Mon Aug 27 2006 Michael J. Knox - 2.4.0-10 Bad exit status from /var/tmp/rpm-tmp.da6mg9 (%prep) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/freeglut.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 x86_64 --nodeps /builddir/build/SPECS/freeglut.spec'