On Fri, Dec 28, 2007 at 03:53:35PM +0100, Robert Bihlmeyer wrote:
> With /bin/sh being dash this package fails to build due to a bashism in line
> 51 of debian/rules:
>               cp $${f/libmtp$(SOVERSION)/libmtp} $$f ;        \
> 
> The attached patch fixes it.

> diff -u libmtp-0.2.4/debian/rules\~ libmtp-0.2.4/debian/rules
> --- libmtp-0.2.4/debian/rules~        2007-12-28 15:52:37.000000000 +0100
> +++ libmtp-0.2.4/debian/rules 2007-12-28 15:46:00.000000000 +0100
> @@ -3,6 +3,7 @@
>  include /usr/share/cdbs/1/rules/debhelper.mk
>  include /usr/share/cdbs/1/class/autotools.mk
>  
> +SHELL=/bin/bash
>  DEB_DH_INSTALL_SOURCEDIR = debian/tmp
>  DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
>  XP = xsltproc -''-nonet
> 
> Diff finished at Fri Dec 28 15:52:44

Here are two other suggestions:

--- debian/rules.orig   2007-12-28 18:25:29.789566860 -0500
+++ debian/rules        2007-12-28 18:26:41.019523788 -0500
@@ -48,7 +48,7 @@
                libmtp.rules
        # Rename udev and hotplug files
        for f in $(UDEVFILES) ; do                              \
-               cp $${f/libmtp$(SOVERSION)/libmtp} $$f ;        \
+               cp libmtp$${f#libmtp$(SOVERSION)} $$f ; \
        done
 
 binary-predeb/libmtp$(SOVERSION)::



--- debian/rules.orig   2007-12-28 18:25:29.789566860 -0500
+++ debian/rules        2007-12-28 18:27:30.348957989 -0500
@@ -48,7 +48,7 @@
                libmtp.rules
        # Rename udev and hotplug files
        for f in $(UDEVFILES) ; do                              \
-               cp $${f/libmtp$(SOVERSION)/libmtp} $$f ;        \
+               cp libmtp.$${f#*.} $$f ;        \
        done
 
 binary-predeb/libmtp$(SOVERSION)::



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

Reply via email to