tags 319323 patch I believe this patch fixes this bug. I added a new --switch to dexconf which will allow the caller to specify what filename is used in the comments of the xorg.conf.
diff -ru xorg-x11-6.8.2.dfsg.1.orig/debian/local/dexconf xorg-x11-6.8.2.dfsg.1/debian/local/dexconf
--- xorg-x11-6.8.2.dfsg.1.orig/debian/local/dexconf 2005-07-30 17:32:35.000000000 -0400
+++ xorg-x11-6.8.2.dfsg.1/debian/local/dexconf 2005-07-30 19:34:48.000000000 -0400
@@ -41,6 +41,9 @@
Options:
-h, --help display this usage message and exit
-o FILE, --output=FILE write configuration file to FILE
+ --displayfilename=FILENAME FILE is the filename which should
+ be used in the comments
+
This help message is intended only as a quick reference. For a description of
the usage of $PROGNAME, see the $PROGNAME(1) manual page.
EOF
@@ -117,7 +120,7 @@
EARLYEXIT=
GETOPT_OUTPUT=$(getopt --options ho: \
- --longoptions help,output: \
+ --longoptions help,output,displayfilename: \
-n "$PROGNAME" -- "$@")
if [ $? -ne 0 ]; then
@@ -133,6 +136,7 @@
;;
-h|--help) SHOWHELP=yes EARLYEXIT=yes ;;
-o|--output) CONFIGFILE="$2"; shift ;;
+ --displayfilename) CONFIGFILEDISPLAYNAME="$2"; shift ;;
--) shift; break ;;
*)
bomb "unrecognized option \"$1\"; use \"$PROGNAME --help\" for help"
@@ -141,6 +145,10 @@
shift
done
+if [ -z "$CONFIGFILEDISPLAYNAME" ]; then
+ CONFIGFILEDISPLAYNAME=$CONFIGFILE
+fi
+
if [ -n "$SHOWHELP" ]; then
usage
fi
@@ -223,13 +231,13 @@
exec 4>"$DEXCONFTMPDIR/Header"
cat >&4 <<SECTION
-# ${CONFIGFILE##*/} ($SERVERNAME X Window System server configuration file)
+# ${CONFIGFILEDISPLAYNAME##*/} ($SERVERNAME X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
-# Edit this file with caution, and see the ${CONFIGFILE##*/} manual page.
-# (Type "man ${CONFIGFILE##*/}" at the shell prompt.)
+# Edit this file with caution, and see the ${CONFIGFILEDISPLAYNAME##*/} manual page.
+# (Type "man ${CONFIGFILEDISPLAYNAME##*/}" at the shell prompt.)
#
# This file is automatically updated on $XSERVERPKG package upgrades *only*
# if it has not been modified since the last upgrade of the $XSERVERPKG
@@ -238,8 +246,8 @@
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
-# cp $CONFIGFILE $CONFIGFILE.custom
-# md5sum $CONFIGFILE >/var/lib/xfree86/${CONFIGFILE##*/}.md5sum
+# cp ${CONFIGFILEDISPLAYNAME} ${CONFIGFILEDISPLAYNAME}.custom
+# md5sum ${CONFIGFILEDISPLAYNAME} >/var/lib/xfree86/${CONFIGFILEDISPLAYNAME##*/}.md5sum
# dpkg-reconfigure $XSERVERPKG
SECTION
Only in xorg-x11-6.8.2.dfsg.1/debian/local: dexconf~
diff -ru xorg-x11-6.8.2.dfsg.1.orig/debian/local/dexconf.1 xorg-x11-6.8.2.dfsg.1/debian/local/dexconf.1
--- xorg-x11-6.8.2.dfsg.1.orig/debian/local/dexconf.1 2005-07-30 17:32:35.000000000 -0400
+++ xorg-x11-6.8.2.dfsg.1/debian/local/dexconf.1 2005-07-30 19:36:34.000000000 -0400
@@ -114,6 +114,12 @@
.B dexconf
unconditionally overwrites its destination file if it has sufficient access
rights to do so.
+.TP
+.BI \-\-displayfilename= filename
+In the file created there are instruction in the comments which refer to the
+generated file itself. This switch will let you override the filename used
+in these commends. If ommited, the filename will default to the --output
+filename
.SH ENVIRONMENT
.TP
.B COLUMNS
Only in xorg-x11-6.8.2.dfsg.1/debian/local: dexconf.1~
diff -ru xorg-x11-6.8.2.dfsg.1.orig/debian/xserver-xorg.postinst.in xorg-x11-6.8.2.dfsg.1/debian/xserver-xorg.postinst.in
--- xorg-x11-6.8.2.dfsg.1.orig/debian/xserver-xorg.postinst.in 2005-07-30 17:32:36.000000000 -0400
+++ xorg-x11-6.8.2.dfsg.1/debian/xserver-xorg.postinst.in 2005-07-30 18:49:55.000000000 -0400
@@ -780,7 +780,7 @@
warn "overwriting possibly-customised configuration file; backup" \
"in $BACKUP_XORGCONFIG"
fi
- if dexconf -o "$NEW_XORGCONFIG"; then
+ if dexconf -o "$NEW_XORGCONFIG" --displayfilename "$XORGCONFIG"; then
if ! cmp -s "$XORGCONFIG" "$NEW_XORGCONFIG"; then
mv "$NEW_XORGCONFIG" "$XORGCONFIG"
md5sum "$XORGCONFIG" > "$XORGCONFIG_CHECKSUM"
Only in xorg-x11-6.8.2.dfsg.1/debian: xserver-xorg.postinst.in~
Attachment:
signature.asc
Description: This is a digitally signed message part