[Foo2zjs-maintainer] Bug#558978: foo2zjs: fix the udev rules installation

Steve Langasek steve.langasek at canonical.com
Tue Dec 1 00:53:23 UTC 2009


Package: foo2zjs
Version: 20090908dfsg-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu lucid ubuntu-patch

Hi folks,

The Ubuntu version of the foo2zjs package currently contains a considerable
delta relative to the Debian package, and it would be good to bring some of
this delta down.  Please find attached what I expect will be the first in a
series of patches to that end.

This patch addresses the fact that /etc/udev/rules.d/11-hplj10xx.rules
doesn't comply with current policy for udev rules:

 - it's installed in /etc/udev/rules.d, whereas package-provided rules
   should be installed to /lib/udev/rules.d
 - BUS=="usb" and SYSFS{var} are both deprecated
 - the provided udev rules shadow several settings that are already handled
   by the core udev rules, and should be dropped to avoid duplication
   (NAME=, MODE=)

Here are the changelog entries from the Ubuntu package that correspond to
this change:

    - debian/control: Breaks: udev (<< 136-1) to ensure the correct udev
      version is used.
    - debian/rules, debian/85-hplj10xx.rules: move the rules from
      11-hplj10xx.rules to 85-hplj10xx.rules per /etc/udev/rules.d/README,
      and include a number of updates, superseding 30-udev-rules.dpatch:
      + 'BUS=="usb"' is deprecated, replaced with 'SUBSYSTEMS=="usb"'.
      + Removed UDEV rule items which conflict with the general UDEV rules
        for USB printers: 'NAME="usb/%k"', 'MODE="0666"'.
      + Change SYSFS to ATTRS.

Since the udev rules file is at this point a complete rewrite of the
original, we've found it easier to ship a separate file under debian/
instead of continuing to patch the upstream one with dpatch; your mileage
may vary.  Ideally, these changes would all be pushed upstream in any event.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp_VI6kr
Type: text/x-diff
Size: 3873 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/foo2zjs-maintainer/attachments/20091130/e1ab2719/attachment.diff>


More information about the Foo2zjs-maintainer mailing list