SOURCES (rpm-4_4_9): rpm-debuginfo.patch - skip debuginfo on missi...

glen glen at pld-linux.org
Mon Feb 11 18:07:43 CET 2008


Author: glen                         Date: Mon Feb 11 17:07:43 2008 GMT
Module: SOURCES                       Tag: rpm-4_4_9
---- Log message:
- skip debuginfo on missing buildroot

---- Files affected:
SOURCES:
   rpm-debuginfo.patch (1.15.6.6 -> 1.15.6.7) 

---- Diffs:

================================================================
Index: SOURCES/rpm-debuginfo.patch
diff -u SOURCES/rpm-debuginfo.patch:1.15.6.6 SOURCES/rpm-debuginfo.patch:1.15.6.7
--- SOURCES/rpm-debuginfo.patch:1.15.6.6	Fri Feb  1 12:45:37 2008
+++ SOURCES/rpm-debuginfo.patch	Mon Feb 11 18:07:37 2008
@@ -151,3 +151,17 @@
 +	[ -d $RPM_BUILD_ROOT$dir ] || continue
 +	echo "%exclude %dir $dir"
 +done >> $LISTFILE
+--- rpm-4.4.9.orig/scripts/find-debuginfo.sh	2008-02-11 18:51:12.304461614 +0200
++++ rpm-4.4.9/scripts/find-debuginfo.sh	2008-02-11 18:50:17.000000000 +0200
+@@ -20,6 +20,11 @@
+   objcopy --add-gnu-debuglink="$1" "$2"
+ }
+ 
++if [ ! -d $RPM_BUILD_ROOT ]; then
++	# no buildroot, exit
++	exit 0
++fi
++
+ filelist=$(find $RPM_BUILD_ROOT ! -path "$RPM_BUILD_ROOT/usr/lib/debug/*.debug" -type f '(' -perm -0100 -or -perm -0010 -or -perm -0001 ')')
+ if [ -z "$filelist" ]; then
+ 	# no files, exit
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm-debuginfo.patch?r1=1.15.6.6&r2=1.15.6.7&f=u



More information about the pld-cvs-commit mailing list