SOURCES: rpm-debugedit-workaround.patch (NEW) - don't fail when debugedit e...

megabajt megabajt at pld-linux.org
Sun Apr 12 15:38:00 CEST 2009


Author: megabajt                     Date: Sun Apr 12 13:38:00 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't fail when debugedit exits with "canonicalization unexpectedly shrank
  by one character" (needed to build openoffice.org.spec)
- added note to rpmbuild manual (from https://bugzilla.redhat.com/show_bug.cgi?id=482903)

---- Files affected:
SOURCES:
   rpm-debugedit-workaround.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-debugedit-workaround.patch
diff -u /dev/null SOURCES/rpm-debugedit-workaround.patch:1.1
--- /dev/null	Sun Apr 12 15:38:01 2009
+++ SOURCES/rpm-debugedit-workaround.patch	Sun Apr 12 15:37:55 2009
@@ -0,0 +1,29 @@
+diff -urN rpm-4.5/doc/rpmbuild.8 rpm-4.5.new/doc/rpmbuild.8
+--- rpm-4.5/doc/rpmbuild.8	2009-04-12 11:29:27.449408696 +0200
++++ rpm-4.5.new/doc/rpmbuild.8	2009-04-12 12:04:02.462534640 +0200
+@@ -252,6 +252,13 @@
+ .SS "Temporary"
+ .PP
+ \fI/var/tmp/rpm*\fR
++.SH "BUGS"
++Extraction of the debugging data may fail if the source refer to files 
++with "//" in their path. In that case, the tool "debugedit" used by rpmbuild 
++to extract the debugging information will fail with a message "canonicalization 
++unexpectedly shrank by one character" but the binary package will be built 
++nevertheless.
++
+ .SH "SEE ALSO"
+ 
+ .nf
+diff -urN rpm-4.5/scripts/find-debuginfo.sh rpm-4.5.new/scripts/find-debuginfo.sh
+--- rpm-4.5/scripts/find-debuginfo.sh	2009-04-12 11:29:27.006092294 +0200
++++ rpm-4.5.new/scripts/find-debuginfo.sh	2009-04-12 11:59:26.240060976 +0200
+@@ -200,7 +200,7 @@
+ 
+   echo "extracting debug info from $f"
+   id=$(/usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug \
+-			      -i -l "$SOURCEFILE" "$f") || exit
++			      -i -l "$SOURCEFILE" "$f")
+   if [ -z "$id" ]; then
+     echo >&2 "*** ${strict_error}: No build ID note found in $f"
+     $strict && exit 2
================================================================


More information about the pld-cvs-commit mailing list