[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#363362: x11-common: postinst fails if /usr/X11R6/bin is not empty



severity 363362 important
thanks

On Tue, Apr 18, 2006 at 07:30:53PM +0200, Josselin Mouette wrote:

> The postinst contains the following:
> if [ -d "/usr/X11R6/bin" ] && [ ! -L /usr/X11R6/bin ]; then
>   rmdir "/usr/X11R6/bin" || die "Could not remove /usr/X11R6/bin. Is not 
> yet empty. Please remove any items still in the directory. You can move 
> them back after the install has completed successfully."
> fi

> When I met this error I first checked whether it was April 1st or 
> something. I don't think this is acceptable to stomp on such a minor 
> error, especially when previous upgrades happen to let some files in 
> this place. Please consider moving these files to /usr/bin directly if 
> they don't conflict with anything, or backuping them elsewhere.

This is a duplicate of bug #362885.  Unless you can come up with a better
upgrade path than the one that's been implemented, it's also a non-bug.

> BTW, the following is also incorrect:
> if ! [ -e "/usr/X11R6/bin" ]; then
>   ln -s /usr/bin /usr/X11R6/bin || die "Could not link /usr/bin to 
> /usr/X11R6/bin"
> fi

> it should be: "ln -s ../bin /usr/X11R6/bin" instead. See policy 10.5.

Correct, this is a policy bug as you say.  It's a severity: important one,
though.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature


Reply to: