--- 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 ---
- To: 326238-done@bugs.debian.org
- Subject: Re: Bug#326238: cannot sensibly run find /usr in config script
- From: David Nusinow <dnusinow@speakeasy.net>
- Date: Wed, 18 Oct 2006 22:45:29 -0400
- Message-id: <20061019024529.GI4507@verizon.net>
- In-reply-to: <17176.32853.830992.820006@davenant.relativity.greenend.org.uk>
- References: <17176.32853.830992.820006@davenant.relativity.greenend.org.uk>
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 ---