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

Bug#326238: cannot sensibly run find /usr in config script



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.



Reply to: