Author: aurel32
Date: 2009-11-09 20:29:29 +0000 (Mon, 09 Nov 2009)
New Revision: 3944

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/rules.d/debhelper.mk
Log:
  * Strip *.o files manually (dh_strip does not do it) to prevent
    leakage of the build directory (has been lost in a merge).



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog        2009-11-08 21:10:51 UTC (rev 
3943)
+++ glibc-package/trunk/debian/changelog        2009-11-09 20:29:29 UTC (rev 
3944)
@@ -4,8 +4,10 @@
     not executable (wrong architecture), and always trace dynamic library 
     dependencies through the dynamic linker.  Closes: #502189, 
     #552518, #499016.
+  * Strip *.o files manually (dh_strip does not do it) to prevent
+    leakage of the build directory (has been lost in a merge).
 
- -- Aurelien Jarno <[email protected]>  Sun, 08 Nov 2009 22:10:16 +0100
+ -- Aurelien Jarno <[email protected]>  Mon, 09 Nov 2009 21:29:00 +0100
 
 eglibc (2.10.1-6) unstable; urgency=high
 

Modified: glibc-package/trunk/debian/rules.d/debhelper.mk
===================================================================
--- glibc-package/trunk/debian/rules.d/debhelper.mk     2009-11-08 21:10:51 UTC 
(rev 3943)
+++ glibc-package/trunk/debian/rules.d/debhelper.mk     2009-11-09 20:29:29 UTC 
(rev 3944)
@@ -69,9 +69,12 @@
        # We use a wrapper script so that we only include the bare
        # minimum in /usr/lib/debug/lib for backtraces; anything
        # else takes too long to load in GDB.
+       
+       # strip *.o files as dh_strip does not (yet?) do it.
 
        if test "$(NOSTRIP_$(curpass))" != 1; then                      \
          dh_strip -p$(curpass) -Xlibpthread --dbg-package=$(libc)-dbg; \
+                                                                       \
          (cd debian/$(curpass);                                        \
           find . -name libpthread-\*.so -exec objcopy                  \
             --only-keep-debug '{}' ../$(libc)-dbg/usr/lib/debug/'{}'   \
@@ -82,6 +85,17 @@
          find debian/$(curpass) -name libpthread-\*.so -exec           \
            strip --strip-debug --remove-section=.comment               \
            --remove-section=.note '{}' ';' || true;                    \
+                                                                       \
+         (cd debian/$(curpass);                                        \
+          find . -name \*crt\*.o -exec objcopy                         \
+            --only-keep-debug '{}' ../$(libc)-dbg/usr/lib/debug/'{}'   \
+            ';' || true;                                               \
+          find . -name \*crt\*.o -exec objcopy                         \
+            --add-gnu-debuglink=../$(libc)-dbg/usr/lib/debug/'{}'      \
+            '{}' ';' || true);                                         \
+         find debian/$(curpass) -name \*crt\*.o -exec                  \
+           strip --strip-debug --remove-section=.comment               \
+           --remove-section=.note --strip-unneeded '{}' ';' || true;   \
        fi
 endif
 


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to