From 5cd66c48e852635dc9043d76bcce84139b575939 Mon Sep 17 00:00:00 2001 From: MementoMori <1003350679@qq.com> Date: Fri, 10 Sep 2021 14:37:55 +0800 Subject: [PATCH] fix strip problem (cherry picked from commit 72291ee5651fd4fba3034f5119cd86ac8fa0e7aa) --- lmbench.spec | 9 ++++++--- lmbench3-need-debug.patch | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 lmbench3-need-debug.patch diff --git a/lmbench.spec b/lmbench.spec index 9991216..c252768 100644 --- a/lmbench.spec +++ b/lmbench.spec @@ -1,8 +1,6 @@ -%global debug_package %{nil} - Name: lmbench Version: 3 -Release: 3 +Release: 4 Summary: Tools for Performance Analysis License: GPLv2 URL: http://www.bitmover.com/lmbench/ @@ -12,6 +10,7 @@ Patch0: lmbench3-fix-llseek-and-remove-bk-in-Makefile.patch Patch1: lmbench3-add-HOWTO-to-indicate-howto-use-this-package.patch Patch2: Rpc-code-moved-from-glibc-to-libtirpc.patch Patch3: lmbench3-add-sp-security-compiler-option.patch +Patch4: lmbench3-need-debug.patch BuildRequires: gcc libtirpc-devel @@ -24,6 +23,7 @@ A userspace utility for testing the memory subsystem for faults. It's portable a %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %make_build @@ -60,6 +60,9 @@ install -m 0644 results/Makefile %{buildroot}/opt/%{name}/results /opt/%{name}/* %changelog +* Thu Stp 9 2021 Shaowei Cheng - 3-4 +- need debug + * Mon Jul 12 2021 stevending1st - 3-3 - Add SP security compiler option. diff --git a/lmbench3-need-debug.patch b/lmbench3-need-debug.patch new file mode 100644 index 0000000..33d00f1 --- /dev/null +++ b/lmbench3-need-debug.patch @@ -0,0 +1,22 @@ +From 8a9ba9910e58fb4d837eff51e18abd91dbc99488 Mon Sep 17 00:00:00 2001 +From: si-gui <245140120@qq.com> +Date: Fri, 10 Sep 2021 23:42:26 +0800 +Subject: [PATCH] need debug + +--- + scripts/build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/build b/scripts/build +index 200d58e..7be068d 100755 +--- a/scripts/build ++++ b/scripts/build +@@ -249,4 +249,4 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c + if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR}; fi + + # now go ahead and build everything! +-${MAKE} OS="${OS}" CC="${CC}" CFLAGS="${CFLAGS} -fstack-protector-strong" LDLIBS="${LDLIBS}" O="${BINDIR}" $* ++${MAKE} OS="${OS}" CC="${CC}" CFLAGS="${CFLAGS} -fstack-protector-strong -g" LDLIBS="${LDLIBS}" O="${BINDIR}" $* +-- +2.30.0 +