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

Re: have i to uncomment module xtt ?



On Sun, Sep 08, 2002 at 04:04:46PM -0700, J. Imlay wrote:
> And actually the reason I even came accross this was last time I ran
> apt-get upgrade on my friends machine, (debian unstable) it upgraded her
> XFree86 and the configure scripts uncommented both and rather broke Xf86.

Not by default it didn't:

Template: xserver-xfree86/config/modules
Type: multiselect
Choices: GLcore, bitmap, dbe, ddc, dri, extmod, freetype, glx, int10, record, speedo, type1, vbe, xtt
Default: GLcore, bitmap, dbe, ddc, dri, extmod, freetype, glx, int10, record, speedo, type1, vbe
Description: Select the XFree86 server modules that should be loaded by default.

> I probably should have filed a bug report but I don't really have any more
> specific information.

The only way both were selected was if someone or something told debconf
to select them both.

My own configuration script is not such a "something".

# server modules to load
# XXX: damnit, explicitly loading the dri module is broken for sunffb users :-P
db_get xserver-xfree86/config/device/driver
if [ "$ARCH" = "sparc" -a "$RET" = "sunffb" ]; then
  MODULE_LIST="GLcore, bitmap, dbe, ddc, extmod, freetype, glx, int10, record, speedo, type1, vbe"
else
  MODULE_LIST="GLcore, bitmap, dbe, ddc, dri, extmod, freetype, glx, int10, record, speedo, type1, vbe"
fi
auto_answer db_input low xserver-xfree86/config/modules "$MODULE_LIST"
db_go


### MODULE

if [ "$FORMAT" = "3" ]; then
  # module list may be null
  db_get shared/xfree86v3/config/modules || true
  if [ -n "$RET" ]; then
    # debconf doesn't return the list in the format we need
    MODULES=$( echo $(IFS=", "; set -- $RET; while [ $# -gt 0 ]; do echo $1; shift; done) )
    printf "Section \"Module\"\n" > $DEXCONFTMPDIR/Module
    for MODULE in $MODULES; do
      printf "\tLoad\t\"$MODULE.so\"\n" >> $DEXCONFTMPDIR/Module
    done
    printf "EndSection\n" >> $DEXCONFTMPDIR/Module
  fi
else
  # module list may be null
  db_get xserver-xfree86/config/modules || true
  if [ -n "$RET" ]; then
    # debconf doesn't return the list in the format we need
    MODULES=$( echo $(IFS=", "; set -- $RET; while [ $# -gt 0 ]; do echo $1; shift; done) )
    printf "Section \"Module\"\n" > $DEXCONFTMPDIR/Module
    for MODULE in $MODULES; do
      printf "\tLoad\t\"$MODULE\"\n" >> $DEXCONFTMPDIR/Module
    done
    printf "EndSection\n" >> $DEXCONFTMPDIR/Module
  fi
fi

-- 
G. Branden Robinson                |      "There is no gravity in space."
Debian GNU/Linux                   |      "Then how could astronauts walk
branden@debian.org                 |       around on the Moon?"
http://people.debian.org/~branden/ |      "Because they wore heavy boots."

Attachment: pgpNu8MedE8au.pgp
Description: PGP signature


Reply to: