Package: bluez-utils
Version: 3.1-2
Severity: serious
Tags: patch

Hello.

Some of our autobuilders do use sudo instead of fakeroot to build the
package. For some months now, the sudo package clears the environment,
so you can't use variables from the environment in debian/rules anymore.

PWD is such as environment variable; the common solution to this (common
;-) problem is to use CURDIR instead, which is a make var, not an env
var.

I'm pretty confident the attached patch will solve the issue, but it'd
be great if you can test yourself, by reproducing the problem first, and
applying the patch afterwards.

BTW, please use urgency=high for the following bluez-utils uploads that
fix RC bugs.

Thanks,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
                            Listening to: Estopa - Exiliado en el lavabo
--- rules~      2006-07-22 07:09:20.000000000 +0200
+++ rules       2006-07-22 07:09:13.000000000 +0200
@@ -12,7 +12,7 @@
 # FIXME test --enable-alsa
 # removed --enable-pcmcia --enable-dbus
 DEB_CONFIGURE_EXTRA_FLAGS := --disable-initscripts --enable-obex --enable-cups 
--enable-hid2hci --enable-bcm203x
-DEB_DESTDIR := $(PWD)/debian/tmp
+DEB_DESTDIR := $(CURDIR)/debian/tmp
 
 install/bluez-utils::
        # modutils config file
@@ -32,7 +32,7 @@
        install -D -m 0644 debian/lintian-overrides \
                $(DEB_DESTDIR)/usr/share/lintian/overrides/bluez-utils
        
-       install -m 0644 $(PWD)/hcid/passkey-agent 
$(DEB_DESTDIR)/usr/bin/passkey-agent
+       install -m 0644 $(CURDIR)/hcid/passkey-agent 
$(DEB_DESTDIR)/usr/bin/passkey-agent
 
        # have a sensible pin default, the upstream one 'BlueZ'
        # cannot be typed on a phone keypad!
@@ -40,7 +40,7 @@
 
 binary-install/bluez-pcmcia-support::
        #chmod a+x $(DEB_DESTDIR)/etc/pcmcia/bluetooth
-       chmod a+x $(PWD)/debian/bluez-pcmcia-support/lib/udev/bluetooth.sh
+       chmod a+x $(CURDIR)/debian/bluez-pcmcia-support/lib/udev/bluetooth.sh
 
 install/bluez-bcm203x::
        mkdir -p $(DEB_DESTDIR)/usr/lib/bluez-bcm203x

Reply via email to