sysstat:use a new way to remove -s option of LFLAGS
PATCH v3 1/1 sysstat:use a new way to remove -s option of LFLAGS
From: "Song.Li" <[email protected]>
sysstat Makefile shouldn't use -s option to strip binary because we need debug info for dbg package.
The old way to remove -s option is passing LFLAGS=''
in make command line to clean all the LFLAGS variable in Makefile. That will cause build failure when sensors lib is needed. In fact,Only the "-s" should be removed, others LFLAGS should be kept.
[YOCTO #2740]
Signed-off-by Song.Li <[email protected]>
--- .../sysstat/files/remove-s-option-of-LFLAGS.patch | 36 ++++++++++++++++++++ meta/recipes-extended/sysstat/sysstat.inc | 6 ++-- meta/recipes-extended/sysstat/sysstat_10.0.5.bb | 2 +- 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 meta/recipes-extended/sysstat/files/remove-s-option-of-LFLAGS.patch
meta/recipes-extended/sysstat/files/remove-s-option-of-LFLAGS.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 48203896a3120947d62fa8a2b10aaa91efd0d7ac Mon Sep 17 00:00:00 2001 +From: "Song.Li" <[email protected]> +Date: Fri, 27 Jul 2012 13:19:16 +0800 +Subject: [PATCH] remove -s option of LFLAGS + +sysstat Makefile shouldn't use -s option to strip binary +because we need debug info for dbg package. +The old way to remove -s option is passing LFLAGS='' +in make command line to clean all the LFLAGS variable in Makefile. +That will cause build failure when sensors lib is needed. +In fact,only "-s" should be removeed, others LFLAGS should be kept. + +[YOCTO #2740] + +Upstream-Status:Local Patch + +Signed-off-by: Song.Li <[email protected]> +--- + Makefile.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index b09a832..3b5ea37 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -71,7 +71,6 @@ SYSCONFIG_DIR = @SYSCONFIG_DIR@ + # Compiler flags + CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -pipe -O2 + DFLAGS = @DFLAGS@ +-LFLAGS = @STRIP@ + DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\" + DFLAGS += $(DFSENSORS) + +-- +1.7.9.5 +
meta/recipes-extended/sysstat/sysstat.inc +3 -3
@@ -5,12 +5,12 @@ LICENSE = "GPLv2+" SECTION = "console/utils" SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.gz \ - file://99_sysstat" + file://99_sysstat \ + file://remove-s-option-of-LFLAGS.patch \ + " inherit autotools gettext -EXTRA_OEMAKE += 'LFLAGS=""' - do_install() { autotools_do_install
meta/recipes-extended/sysstat/sysstat_10.0.5.bb +1 -1
@@ -2,7 +2,7 @@ require sysstat.inc LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" -PR = "r0" +PR = "r1" SRC_URI[md5sum] = "208dd236d726d20591d53d3a20124dd4" SRC_URI[sha256sum] = "1f474d6ca742af73d0f9d09a374bda64c72bccb126aef327fa74383ff438feff"
Signature · 1 line
1.7.9.5