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

Bug#326238: marked as done (cannot sensibly run find /usr in config script)



Your message dated Wed, 18 Oct 2006 22:45:29 -0400
with message-id <20061019024529.GI4507@verizon.net>
and subject line Bug#326238: cannot sensibly run find /usr in config script
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: xserver-xorg
Version: 6.8.2.dfsg.1-6

In the config script I see:

  DRIVER_DIR=/usr/X11R6/lib/modules/drivers

  # Build list of available video drivers, omitting the atimisc, r128, and
  # radeon sub-modules (the ati driver knows when and how to load these).
  # v4l is not a display driver, and dummy is for advanced users.
  DRIVER_LIST="$(echo $(find "$DRIVER_DIR" -name '*_drv.o' 2>/dev/null \
			| sed 's|^.*/\(.*\)_drv\.o|\1|' \
			| egrep -v '(atimisc|dummy|r128|radeon|v4l)' | sort) \
		 | sed 's/ /, /g')"

This isn't very good.  Depending on the circumstances, the config
script is often run without the drivers unpacked, and sometimes even
without that directory.  These problems cause spurious messages about
missing directories and lack of driver modules, and cause xserver-xorg
to unpredictably fall back to the hardcoded default lists.  This is
not a reliable way to carry on.

Either:
 - xserver-xorg should know somehow which drivers there are going to
   be, or
 - configuration should be deferred until the postinst

Ian.


--- End Message ---
--- Begin Message ---
On Fri, Sep 02, 2005 at 05:39:49PM +0100, Ian Jackson wrote:
> Package: xserver-xorg
> Version: 6.8.2.dfsg.1-6
> 
> In the config script I see:
> 
>   DRIVER_DIR=/usr/X11R6/lib/modules/drivers
> 
>   # Build list of available video drivers, omitting the atimisc, r128, and
>   # radeon sub-modules (the ati driver knows when and how to load these).
>   # v4l is not a display driver, and dummy is for advanced users.
>   DRIVER_LIST="$(echo $(find "$DRIVER_DIR" -name '*_drv.o' 2>/dev/null \
> 			| sed 's|^.*/\(.*\)_drv\.o|\1|' \
> 			| egrep -v '(atimisc|dummy|r128|radeon|v4l)' | sort) \
> 		 | sed 's/ /, /g')"
> 
> This isn't very good.  Depending on the circumstances, the config
> script is often run without the drivers unpacked, and sometimes even
> without that directory.  These problems cause spurious messages about
> missing directories and lack of driver modules, and cause xserver-xorg
> to unpredictably fall back to the hardcoded default lists.  This is
> not a reliable way to carry on.
> 
> Either:
>  - xserver-xorg should know somehow which drivers there are going to
>    be, or
>  - configuration should be deferred until the postinst

Now that we've moved the configuration to the postinst, I'm closing this
bug. Thanks Ian.

 - David Nusinow

--- End Message ---

Reply to: