[Pkg-bluetooth-maintainers] Bug#387410: bluez-utils: fails on
upgrade
Eddy Petrişor
eddy.petrisor at gmail.com
Thu Sep 14 11:22:38 UTC 2006
On 14/09/06, Steve Langasek <vorlon at debian.org> wrote:
> On Thu, Sep 14, 2006 at 12:14:11PM +0300, Eddy =?UTF-8?Q?Petri=C5=9For ?= wrote:
> > [snip]
> > # use MAKEDEV instead of the original bluez script below as
> > per policy 10.6
> > echo "Creating device nodes ..."
> > cd /dev && ./MAKEDEV bluetooth
> >
> > if [ -r /etc/bluetooth/pin ]; then
> > echo "Converting default outgoing PIN to default passkey:"
> > [snip]
>
> > Probably something like this could be the fix (for sarge upgrade path):
>
> > --- bluez-utils.postinst.orig 2006-09-11 08:26:53.000000000 +0300
> > +++ bluez-utils.postinst 2006-09-14 12:13:06.000000000 +0300
> > @@ -35,7 +35,9 @@
>
> > # use MAKEDEV instead of the original bluez script below as
> > per policy 10.6
> > echo "Creating device nodes ..."
> > - cd /dev && ./MAKEDEV bluetooth
> > + [ -e /dev/MAKEDEV ] && cd /dev
> > + [ -e /sbin/MAKDEV ] && cd /sbin
> > + ./MAKEDEV bluetooth
> >
> > if [ -r /etc/bluetooth/pin ]; then
> > echo "Converting default outgoing PIN to default passkey:"
>
> Absolutely not, MAKEDEV acts on the current directory by design. You don't
> want device files added to /sbin.
>
> You also misspelled MAKEDEV in the patch, so it wouldn't do anything anyway.
oops :-)
> Do you have the makedev package installed on your system? AFAICS, the bug
> here is that bluez-utils depends on makedev *or* udev, but calls MAKEDEV
> unconditionally in the postinst. All of my udev-using symbols do have
> /dev/MAKEDEV as a symlink to /sbin/MAKEDEV, so I don't see any other reason
> this would fail -- at least, not that it would be a bug in bluez-utils.
So I guess the idea would be something like:
if [ -f /dev/MAKEDEV ] || [ -f /sbin/MAKEDEV ] ; then
PATH=${PATH}:/sbin:. && cd /dev && MAKEDEV bluetooth
fi
In order to prevent the case where makedev is not installed/installed
in sbin/installed in /dev / not needed.
This is the current status:
merci bugs # ls /dev/M*
ls: /dev/M*: No such file or directory
merci bugs # LANG=C apt-cache policy makedev
makedev:
Installed: 2.3.1-83
Candidate: 2.3.1-83
Version table:
3.3.8.2-0 0
100 http://ftp.ro.debian.org experimental/main Packages
*** 2.3.1-83 0
900 http://ftp.ro.debian.org unstable/main Packages
100 /var/lib/dpkg/status
2.3.1-82 0
900 http://snapshot.debian.net unstable/main Packages
merci bugs # LANG=C apt-cache policy udev
udev:
Installed: 0.100-1
Candidate: 0.100-1
Version table:
*** 0.100-1 0
900 http://ftp.ro.debian.org unstable/main Packages
100 /var/lib/dpkg/status
0.098-2 0
900 http://snapshot.debian.net unstable/main Packages
--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
More information about the Pkg-bluetooth-maintainers
mailing list