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

Bug#223929: xserver-xfree86: dpkg-reconfigure doesn't.



tag 223929 + moreinfo unreproducible
retitle 223929 xserver-xfree86: dpkg-reconfigure does not execute postinst script
thanks

On Sat, Dec 13, 2003 at 11:24:46PM -0500, C. Scott Ananian wrote:
> Package: xserver-xfree86
> Version: 4.2.1-14
> Severity: normal
> 
> Although 'dpkg-reconfigure xserver-xfree86' is mentioned as the 
> preferred way to change X settings, when XF86Config-4 is being managed 
> by debconf, this command actually MAKES NO CHANGE to the configuration
> used by the X server.

Yes, that's expected under some circumstances.  See the Debian X FAQ,
and the top of the XF86Config-4 file you included in your report:

> # This file is automatically updated on xserver-xfree86 package upgrades *only*
> # if it has not been modified since the last upgrade of the xserver-xfree86
> # package.

> dpkg-reconfigure re-runs 
> /var/lib/dpkg/info/xserver-xfree86.config, as far as I can tell,

Yes.

> while the actually rewrite of XF86Config-4 occurs in
> /var/lib/dpkg/info/xserver-xfree86.postinst which (as far as I can tell) 
> is *not* invoked by dpkg-reconfigure.

Not true.  dpkg-reconfigure always runs the given package's postinst
script, if one is available.

You can see this for yourself by editing
/var/lib/dpkg/info/xserver-xfree86.postinst and adding a line like this:

  echo "THIS IS THE POSTINST SCRIPT RUNNING"

near the bottom, right above the "exit 0" line.  The reason for putting
it at the bottom is so you can be sure the entire script has run.

> I might have the mechanism 
> slightly wrong: I'm not a dpkg expert.  But the outcome (whatever the 
> means) is certain: XF86Config-4 is not regenerated by dpkg-reconfigure.
> Even if the file is removed, dpkg-reconfigure makes no output.
> Running
>   dexconf -o /etc/X11/XF86Config-4
> manually after dpkg-reconfigure does the trick.
>   --scott

Sounds to me like you have modified this configuration file, and so the
package maintainer scripts are trying not to clobber changes, just as
dpkg tries not to clobber modified conffiles.

Have you read the part of the XF86Config-4 file you included that says
the following?:

> # If you have edited this file but would like it to be automatically updated
> # again, run the following commands as root:
> #
> #   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
> #   md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
> #   dpkg-reconfigure xserver-xfree86

-- 
G. Branden Robinson                |     I suspect Linus wrote that in a
Debian GNU/Linux                   |     complicated way only to be able to
branden@debian.org                 |     have that comment in there.
http://people.debian.org/~branden/ |     -- Lars Wirzenius

Attachment: signature.asc
Description: Digital signature


Reply to: