Xorg FHS violation in X Window System Components

linux fan linuxscratch at gmail.com
Thu Oct 7 07:07:36 PDT 2010


Instead of making symlinks as per the note regarding FHS guidelines
violation in "X Window System Components", the following can
effectively put system.twmrc, app-defaults, and xinit under /etc/X11
directly:

case $(basename "$PWD") in #lib
  # ...
  libXt-[0-9]*)
    ./configure $XORG_CONFIG --with-appdefaultdir=/etc/X11/app-defaults
  ;;
esac


case $(basename "$PWD") in #app
  twm-[0-9]*)
    sed -i -e '/^rcdir =/s,^\(rcdir = \).*,\1/etc/X11,' src/Makefile.in
  ;;
  xinit-[0-9]*)
    sed -i -e '/^XINITDIR =/s,$(libdir),/etc,' Makefile.in
  ;;
esac



More information about the blfs-dev mailing list