Attempt to Strip Non-existant libs Causes Failure in dpkg-buildpackage

Bug #1562 reported by Jared Warren
4
Affects Status Importance Assigned to Milestone
hugs98 (Ubuntu)
Fix Released
Medium
MOTU

Bug Description

debian/rules:84 tries to run xargs strip on an empty set of files (debian/tmp/hugs/usr/lib/hugs/*.so), this causes dpkg-buildpackage to fail.

$ fakeroot dpkg-buildpackage
[...]
find /home/jared/download/hugs98-98.200503.08/debian/tmp/hugs/usr/lib/hugs -name "*.so" |xargs strip -R .comment -R .note --strip-all
Usage: strip <option(s)> in-file(s)
[...]
make: *** [debian/binary-arch.stamp] Error 123
$

-----

This patch seems to fix it:

--- debian/rules.orig 2005-07-24 15:05:40.855892736 -0700
+++ debian/rules 2005-07-24 15:06:18.417182552 -0700
@@ -81,7 +81,7 @@
        cd $(rootdir)/usr/bin && $(install_symlink) hugs98 hugs \
          && $(install_symlink) runhugs98 runhugs
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- find $(libdir) -name "*.so" |xargs strip -R .comment -R .note --strip-all
+ find $(libdir) -name "*.so" |xargs --no-run-if-empty strip -R .comment -R .note --strip-all
        strip -R .comment -R .note --strip-all $(rootdir)/usr/bin/ffihugs $(rootdir)/usr/bin/hugs98 $(rootdir)/usr/bin/runhugs98
 endif

Jared Warren (jawarren)
description: updated
summary: + debian/rules:84 tries to run xargs strip on an empty set of files
+ (debian/tmp/hugs/usr/lib/hugs/*.so), this causes dpkg-buildpackage to
+ fail.
Changed in hugs98:
assignee: nobody → motu
Changed in hugs98:
status: New → Fixed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.