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

Bug#363362: marked as done (x11-common: postinst fails if /usr/X11R6/bin is not empty)



Your message dated Sat, 22 Apr 2006 09:36:04 -0400
with message-id <20060422133603.GA7066@localdomain>
and subject line Bug#363533: Package installation requires directory /usr/X11R6/bin to be removed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: x11-common
Version: 1:7.0.14
Severity: grave

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.


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.
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
  `-  Debian GNU/Linux -- The power of freedom


--- End Message ---
--- Begin Message ---
On Wed, Apr 19, 2006 at 07:47:06PM +0300, Sami J. Laine wrote:
> Package: x11-common
> Version: 7.0.14
> 
> Preconfiguring packages ...
> Setting up x11-common (7.0.14) ...
> rmdir: /usr/X11R6/bin: Directory not empty
> x11-common postinst error: 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.
> dpkg: error processing x11-common (--configure):
>  subprocess post-installation script returned error exit status 74
> Errors were encountered while processing:
>  x11-common
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I think error messages tell it all. It's possible to evade problem
> by doing something like mv /usr/X11R6/bin /usr/X11R6/bin.b && apt-get
> install x11-common ... but my opinion is that this is way too
> complex for normal user.

This is by design in order to force a clean upgrade. x11-common should
conflict with every package in Debian that installs files to this dir. If
you install unofficial stuff there by hand, then you're surely capable of
moving it out of the way later. Closing this bug.

 - David Nusinow

--- End Message ---

Reply to: