Skip to contentSkip to conversation

Fix stripped file warnings

PATCH Applied Paul Eggleton 2 participants 5 messages Mar 21, 2012

lore
Share & tools
lore
#0 lore raw

cover Fix stripped file warnings

The following changes since commit 5d404fdb36b0535ce758d98408b02134cdbce4ee:

xserver-kdrive: compile xserver without dtrace support (2012-03-20 15:21:18 +0000)

are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/nostrip1
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/nostrip1

Paul Eggleton (3):
hdparm: fix stripped file warning
libacpi: fix stripped file warning
syslinux: fix stripped file warnings

 meta/recipes-bsp/libacpi/libacpi_0.2.bb            |    3 +-
 .../recipes-devtools/syslinux/files/no-strip.patch |   31 ++++++++++++++++++++
 meta/recipes-devtools/syslinux/syslinux_4.03.bb    |    5 ++-
 meta/recipes-extended/hdparm/hdparm_9.39.bb        |    4 ++
 4 files changed, 40 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/syslinux/files/no-strip.patch
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/3 hdparm: fix stripped file warning

Fix the following package warning:
WARNING: File '/sbin/hdparm.hdparm' from hdparm was already stripped, this will prevent future debugging!

---
 meta/recipes-extended/hdparm/hdparm_9.39.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta/recipes-extended/hdparm/hdparm_9.39.bb +4 -0
index d8342cc..ed076cc 100644
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=910a8a42c962d238619c75fdb78bdb24 \
                     file://wiper/GPLv2.txt;md5=fcb02dc552a041dee27e4b85c7396067 \
                     file://wiper/wiper.sh;beginline=7;endline=31;md5=b7bc642addc152ea307505bf1a296f09"
 
+PR = "r1"
+
 PACKAGES += "wiper"
 
 FILES_wiper = "${bindir}/wiper.sh"
@@ -20,6 +22,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/hdparm-${PV}.tar.gz "
 SRC_URI[md5sum] = "2bc17b72403885d4faf959682944243b"
 SRC_URI[sha256sum] = "72d550af4526aa96f0841c79321a0ee39d636cbaf1f294e52193e90c054b3cea"
 
+EXTRA_OEMAKE += 'STRIP="echo"'
+
 do_install () {
 	install -d ${D}/${base_sbindir} ${D}/${mandir}/man8 ${D}/${bindir}
 	oe_runmake 'DESTDIR=${D}' 'sbindir=${base_sbindir}' install
Signature · 1 line
1.7.5.4
#2 lore raw

PATCH 2/3 libacpi: fix stripped file warning

In reply to Paul Eggleton

Fix the following package warning:
WARNING: File '/usr/bin/test-libacpi' from libacpi was already stripped, this will prevent future debugging!

---
 meta/recipes-bsp/libacpi/libacpi_0.2.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-bsp/libacpi/libacpi_0.2.bb +2 -1
index 2d98fae..1a6dc97 100644
@@ -5,7 +5,7 @@ SECTION = "base"
 HOMEPAGE = "http://www.ngolde.de/libacpi.html"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
 	   file://makefile-fix.patch \
@@ -23,6 +23,7 @@ FILES_${PN}-bin = "${bindir}"
 COMPATIBLE_HOST = '(x86_64|i.86).*-(linux|freebsd.*)'
 
 CFLAGS += "-fPIC"
+EXTRA_OEMAKE += 'STRIP="echo"'
 
 do_install() {
 	oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
Signature · 1 line
1.7.5.4
#3 lore raw

PATCH 3/3 syslinux: fix stripped file warnings

In reply to Paul Eggleton

Fix the following package warnings:
WARNING: File '/usr/bin/memdiskfind' from syslinux was already stripped, this will prevent future debugging!
WARNING: File '/usr/bin/syslinux' from syslinux was already stripped, this will prevent future debugging!
WARNING: File '/usr/bin/gethostip' from syslinux was already stripped, this will prevent future debugging!
WARNING: File '/usr/bin/isohybrid' from syslinux was already stripped, this will prevent future debugging!

---
 .../recipes-devtools/syslinux/files/no-strip.patch |   31 ++++++++++++++++++++
 meta/recipes-devtools/syslinux/syslinux_4.03.bb    |    5 ++-
 2 files changed, 34 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/syslinux/files/no-strip.patch
meta/recipes-devtools/syslinux/files/no-strip.patch new file +31 -0
new file mode 100644
index 0000000..775851a
@@ -0,0 +1,31 @@
+Disable stripping of binaries
+
+We don't want to strip these as this is handled separately at package
+time.
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Paul Eggleton <[email protected]>
+
+--- syslinux-4.03.orig/mtools/Makefile
++++ syslinux-4.03/mtools/Makefile
+@@ -4,7 +4,7 @@ include $(topdir)/MCONFIG
+ OPTFLAGS = -g -Os
+ INCLUDES = -I. -I.. -I../libfat -I../libinstaller
+ CFLAGS	 = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
+-LDFLAGS	 = -s
++LDFLAGS	 =
+ 
+ SRCS     = syslinux.c \
+ 	   ../libinstaller/fat.c \
+--- syslinux-4.03.orig/utils/Makefile
++++ syslinux-4.03/utils/Makefile
+@@ -18,7 +18,7 @@ topdir = ..
+ include $(topdir)/MCONFIG
+ 
+ CFLAGS   = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
+-LDFLAGS  = -O2 -s
++LDFLAGS  = -O2
+ 
+ TARGETS	 = mkdiskimage isohybrid gethostip memdiskfind
+ TARGETS += isohybrid.pl  # about to be obsoleted
meta/recipes-devtools/syslinux/syslinux_4.03.bb +3 -2
index 2ab6878..a8a1f94 100644
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
 # If you really want to run syslinux, you need mtools.  We just want the
 # ldlinux.* stuff for now, so skip mtools-native
 DEPENDS = "nasm-native"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/4.xx/syslinux-${PV}.tar.bz2 \
-           file://cross-build.patch"
+           file://cross-build.patch \
+           file://no-strip.patch"
 
 SRC_URI[md5sum] = "a7ca38a0a5786b6efae8fb01a1ae8070"
 SRC_URI[sha256sum] = "c65567e324f9d1f7f794ae8f9578a0292bbd47d7b8d895a004d2f0152d0bda38"
Signature · 1 line
1.7.5.4
#4 lore raw
In reply to Paul Eggleton
Quoted 4 lines · Paul Eggleton

The following changes since commit 5d404fdb36b0535ce758d98408b02134cdbce4ee:

xserver-kdrive: compile xserver without dtrace support (2012-03-20 15:21:18 +0000)

Quoted 8 lines

are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/nostrip1
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/nostrip1

Paul Eggleton (3):
hdparm: fix stripped file warning
libacpi: fix stripped file warning
syslinux: fix stripped file warnings

Merged to master, thanks.

Richard