Package: urfkill
Version: 0.4.0-1
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch

Dear Maintainer,

The init script for urfkilld has /usr/<triplet>/urfkill/urfkilld as a path
to the urfkilld binary. This path is missing lib/.

Furthermore, it seems to me like DEB_HOST_MULTIARCH doesn't need to be
redefined, it should already be available with dh 9.

*** /tmp/tmpSBshPp/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/rules: clean up sample comments, simplify rules to make use of
    DEB_HOST_MULTIARCH as it is already available.
  * debian/urfkill.init.in: fix typo: add lib/ to the multiarch path to the
    urfkilld binary.


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 
'raring'), (100, 'raring-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-17-generic (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/rules'
--- debian/rules	2012-07-24 22:48:51 +0000
+++ debian/rules	2012-11-30 17:09:53 +0000
@@ -1,20 +1,11 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 export DEB_BUILD_HARDENING=1
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
-.PHONY: override_dh_strip override_dh_auto_clean override_dh_auto_configure
-
 debian/urfkill.init: debian/urfkill.init.in
 	sed -e "s/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g" $? > debian/`basename $? .in`
 	chmod 755 $@

=== modified file 'debian/urfkill.init.in'
--- debian/urfkill.init.in	2012-07-24 22:48:51 +0000
+++ debian/urfkill.init.in	2012-11-30 17:02:12 +0000
@@ -14,7 +14,7 @@
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC=urfkill             # Introduce a short description here
 NAME=urfkill             # Introduce the short server's name here
-DAEMON=/usr/@DEB_HOST_MULTIARCH@/urfkill/urfkilld # Introduce the server's location here
+DAEMON=/usr/lib/@DEB_HOST_MULTIARCH@/urfkill/urfkilld # Introduce the server's location here
 DAEMON_ARGS=""             # Arguments to run the daemon with
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME

Reply via email to