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

Bug#206524: marked as done (xserver-xfree86: XF86Config-4 is overwritten even when it is not managed by debconf)



Your message dated Thu, 21 Aug 2003 16:41:22 -0500
with message-id <20030821214122.GO27448@deadbeast.net>
and subject line Bug#206524: xserver-xfree86: XF86Config-4 is overwritten even when it is not managed by debconf
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Aug 2003 09:01:28 +0000
>From bernat@lucas.teaser.fr Thu Aug 21 04:01:24 2003
Return-path: <bernat@lucas.teaser.fr>
Received: from postfix3-1.free.fr [213.228.0.44] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19plJs-0005DG-00; Thu, 21 Aug 2003 04:01:24 -0500
Received: from lucas (unknown [82.67.232.123])
	by postfix3-1.free.fr (Postfix) with ESMTP
	id 9F478C620; Thu, 21 Aug 2003 11:01:22 +0200 (CEST)
Received: from guybrush.loria (guybrush.loria [10.0.0.8])
	by lucas (Postfix) with ESMTP
	id 69E914033; Thu, 21 Aug 2003 11:01:19 +0200 (CEST)
Received: by guybrush.loria (Postfix, from userid 500)
	id 1BC8A26D916; Thu, 21 Aug 2003 11:01:18 +0200 (CEST)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="ISO-8859-15"
From: Vincent Bernat <bernat@free.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xserver-xfree86: XF86Config-4 is overwritten even when it is not managed by
 debconf
X-Mailer: reportbug 2.22
Date: Thu, 21 Aug 2003 11:01:18 +0200
Message-Id: <[🔎] 20030821090118.1BC8A26D916@guybrush.loria>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0
	tests=BAYES_20,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 (1.174.2.15-2003-03-30-exp)

Package: xserver-xfree86
Version: 4.2.1-10
Severity: important
Tags: sid

Hello !

I have just upgraded the X server to the latest version and my XF86Config-4
was overwritten even if it was not managed by debconf (in previous upgrade,
I was asked if this file has to be overwritten by a new one or not): there
is no debconf line at the beginning or at the end of the file.

>From my understanding of the message which was at the top of the file,
deleting the entire debconf stuff should prevent the file to be altered and
this was the case until the transition to dexconf.

-- Package-specific info:
00:10.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
00:10.0 Class 0300: 1002:4c59

[useless, since this is not my true XF86Config-4]

-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux guybrush 2.4.21-ben2-guybrush.45 #1 mer jui 30 19:55:47 CEST 2003 ppc
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages xserver-xfree86 depends on:
ii  debconf                       1.3.9      Debian configuration management sy
ii  libc6                         2.3.2-3    GNU C Library: Shared libraries an
ii  xserver-common                4.2.1-10   files and utilities common to all 
ii  zlib1g                        1:1.1.4-14 compression library - runtime

-- debconf information:
* xserver-xfree86/config/device/identifier: Generic Video Card
  xserver-xfree86/config/monitor/screen-size: 17 inches (430 mm)
* xserver-xfree86/config/device/use_fbdev: false
* xserver-xfree86/config/monitor/selection-method: Medium
  xserver-xfree86/config/doublequote_in_string_error: 
  shared/default-x-server: xserver-xfree86
* xserver-xfree86/config/inputdevice/mouse/emulate3buttons: false
* xserver-xfree86/config/device/bus_id: 
* xserver-xfree86/config/inputdevice/keyboard/layout: us
  xserver-xfree86/config/monitor/horiz-sync: 28-49
* xserver-xfree86/config/monitor/identifier: Generic Monitor
  shared/no_known_x-server: 
  xserver-xfree86/autodetect_mouse: true
* xserver-xfree86/config/device/video_ram: 
* xserver-xfree86/config/monitor/mode-list: 1024x768 @ 60Hz
* xserver-xfree86/config/monitor/lcd: true
  xserver-xfree86/config/inputdevice/keyboard/internal: 
  xserver-xfree86/clobber_XF86Config-4: 
* xserver-xfree86/config/inputdevice/keyboard/rules: xfree86
  xserver-xfree86/multiple_possible_x-drivers: 
* xserver-xfree86/config/inputdevice/keyboard/model: macintosh
* xserver-xfree86/config/write_dri_section: true
* xserver-xfree86/config/device/driver: ati
  xserver-xfree86/config/monitor/vert-refresh: 43-72
* xserver-xfree86/config/display/default_depth: 24
* xserver-xfree86/config/inputdevice/mouse/zaxismapping: true
* xserver-xfree86/config/display/modes: 1024x768, 800x600, 640x480
  xserver-xfree86/config/inputdevice/mouse/retry_detection: 
* xserver-xfree86/config/device/bus_id_error: 
* xserver-xfree86/config/modules: GLcore, bitmap, dbe, ddc, dri, extmod, freetype, glx, int10, record, speedo, type1, vbe
* xserver-xfree86/config/inputdevice/keyboard/options: 
  xserver-xfree86/config/nonnumeric_string_error: 
  xserver-xfree86/config/inputdevice/mouse/protocol: ImPS/2
  shared/multiple_possible_x-servers: 
  xserver-xfree86/config/null_string_error: 
  xserver-xfree86/config/monitor/range_input_error: 
  xserver-xfree86/autodetect_video_card: true
* xserver-xfree86/config/inputdevice/keyboard/variant: 
* xserver-xfree86/config/inputdevice/mouse/port: /dev/input/mice
* xserver-xfree86/config/write_files_section: true
  xserver-xfree86/autodetect_monitor: true


---------------------------------------
Received: (at 206524-done) by bugs.debian.org; 21 Aug 2003 21:41:28 +0000
>From branden@deadbeast.net Thu Aug 21 16:41:24 2003
Return-path: <branden@deadbeast.net>
Received: from dhcp065-026-182-085.indy.rr.com (redwald.deadbeast.net) [65.26.182.85] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19pxBL-00065J-00; Thu, 21 Aug 2003 16:41:23 -0500
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id DAD1964274; Thu, 21 Aug 2003 16:41:22 -0500 (EST)
Date: Thu, 21 Aug 2003 16:41:22 -0500
From: Branden Robinson <branden@debian.org>
To: 206524-done@bugs.debian.org
Subject: Re: Bug#206524: xserver-xfree86: XF86Config-4 is overwritten even when it is not managed by debconf
Message-ID: <20030821214122.GO27448@deadbeast.net>
References: <[🔎] 20030821090118.1BC8A26D916@guybrush.loria>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="p2pkNiL1PnZBJ6Nr"
Content-Disposition: inline
In-Reply-To: <[🔎] 20030821090118.1BC8A26D916@guybrush.loria>
Mail-Copies-To: nobody
X-No-CC: I subscribe to this list; do not CC me on replies.
User-Agent: Mutt/1.5.4i
Delivered-To: 206524-done@bugs.debian.org
X-Spam-Status: No, hits=-21.8 required=4.0
	tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2,
	      QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,
	      USER_AGENT_MUTT
	autolearn=ham version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 (1.174.2.15-2003-03-30-exp)


--p2pkNiL1PnZBJ6Nr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 21, 2003 at 11:01:18AM +0200, Vincent Bernat wrote:
> I have just upgraded the X server to the latest version and my XF86Config=
-4
> was overwritten even if it was not managed by debconf (in previous upgrad=
e,
> I was asked if this file has to be overwritten by a new one or not): there
> is no debconf line at the beginning or at the end of the file.

Sigh.  I tested and tested and tested and tested and tested and tested
and tested the new code.

Okay, if your analysis is correct then there MUST exist the following
file:

/etc/X11/XF86Config-4.dpkg-old

=2E..which contains your previous, "not managed by debconf" file, utterly
unmolested.

> >From my understanding of the message which was at the top of the file,
> deleting the entire debconf stuff should prevent the file to be altered a=
nd
> this was the case until the transition to dexconf.

That method had been discarded, as noted in the NEWS.Debian file, the
package changelog, and the FAQ.

Here's the transition logic:

if [ "$1" =3D "install" -o "$1" =3D "upgrade" ]; then
  # if upgrading from < 4.2.1-10, migrate X server symlink and XF86Config-4
  # to (simplified) ucf-style handling
  if dpkg --compare-versions "$2" lt-nl "4.2.1-10"; then
    # do we have any configuration files to work with?
    if [ -e "$SERVER_SYMLINK" -o -e "$XF86CONFIG" ]; then
      # this is the preinst, so our checksum directory might not have been
      # unpacked yet (in fact, if we're upgrading from < 4.2.1-10, we expect
      # it not to be)
      if [ ! -e "$CHECKSUM_DIR" ]; then
        mkdir --mode=3D755 "$CHECKSUM_DIR"
      else
        # if the checksum pathname does exist but is not a directory, give
        # up; dpkg will probably vomit on unpack anyway
        if [ -d "$CHECKSUM_DIR" ]; then

[handling of $SERVER_SYMLINK snipped]

          # next, migrate XF86Config-4
          if [ -e "$XF86CONFIG" ]; then
            # attempt to pre-seed the md5sum file based on the current cont=
ent
            # of the file
            if db_get xserver-xfree86/manage_config_with_debconf; then
              if [ "$RET" =3D "true" ]; then
                # if the config file doesn't even exist, don't bother
                if [ -e "$XF86CONFIG" ]; then
                  # people were letting debconf "manage" the config file ev=
en
                  # though they complained when it did so, so store a backu=
p to
                  # keep people quiet
                  message "Note: migrating $XF86CONFIG away from management=
" \
                          "by debconf; backup stored in $XF86CONFIG.dpkg-ol=
d" \
                          "and MD5 checksum stored in $XF86CONFIG_CHECKSUM."
                  md5sum "$XF86CONFIG" > "$XF86CONFIG_CHECKSUM"
                  cp "$XF86CONFIG" "$XF86CONFIG.dpkg-old"
                fi
              fi
            fi
          fi
[snip]
        fi
      fi
    fi
[snip]
  fi
fi

You still had xserver-xfree86/manage_config_with_debconf answered
"true", so you got migrated, as documented:

    In the event that you have customized these configuration files, and ha=
ve
    neglected to correct debconf's notion of whether it should manage those
    files before upgrading to xfree86 4.2.1-10 or later, backups are made a=
nd
    stored in the same directory, with the suffix ".dpkg-old".  For example,
    if you have answered the "Manage XFree86 4.x server configuration file
    with debconf?" question in the affirmative, your /etc/X11/XF86Config-4
    file will be backed up in /etc/X11/XF86Config-4.dpkg-old.  Note that th=
is
    is only done *once*, on upgrades from xfree86 package versions prior to
    4.2.1-10.  If you do not like the new /etc/X11/XF86Config-4 that gets
    written, for example, either edit it or rename the .dpkg-old file to it.

Do a "rm /var/lib/xfree86/XF86Config-4.md5sum" and the package
maintainer scripts will never touch your XF86Config-4 again.

Closing this report.

--=20
G. Branden Robinson                |    Ambition: an overmastering desire
Debian GNU/Linux                   |    to be vilified by enemies while
branden@debian.org                 |    living and ridiculed by friends
http://people.debian.org/~branden/ |    when dead.        -- Ambrose Bierce

--p2pkNiL1PnZBJ6Nr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iEYEARECAAYFAj9FPIIACgkQ6kxmHytGonwQrgCfelc7jrgxLDdHHIYL2te+QxnT
qrkAnjQRmI9IqTWusEUq31IZbYbGf1OE
=p6B9
-----END PGP SIGNATURE-----

--p2pkNiL1PnZBJ6Nr--



Reply to: