2005-07-24 22:15:22 |
Jared Warren |
description |
$ 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
$
-----
The problem is that debian/tmp/hugs/usr/lib/hugs contains no files at this point in the script. 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 |
$ 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 |
|