Debconf not updating gui when ucf is used and detect a conffile-change

Bug #69051 reported by Windkracht8
34
Affects Status Importance Assigned to Milestone
ucf (Debian)
Fix Released
Unknown
ucf (Ubuntu)
Fix Released
High
Michael Vogt
update-manager (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: update-manager

1 Upgrade from dapper to edgy by running 'update-manager -c', while having previously changed a configuration file (fe: /etc/exports)
2 A 'debconf' window appears to ask if you want to keep the changed version of the file or if you want the package's version or if you want to see the difference between them.
3 Click on the 'distribution upgrade' window which then overlaps the 'debconf' window.
4 Bring the 'debconf' window back to the front.

The part of the 'debconf' window which was behind the 'distribution upgrade' window is not updating, thus leaving that part blanc.
Also when clicking 'applications', 'places' or 'system' which results in a menu overlapping the other part of the 'debconf' window. Makes the other part blanc.
Have a look at the screen shot (http://www.windkracht8.com/debconf_crash.png) for clarification.

Tags: edgy-upgrade
Revision history for this message
In , Manoj (srivasta) wrote : Debconf and displaying data to the user

severity 325576 wishlist
clone 325576 -1
reassign -1 debconf
retitle -1 WBNI there was a way to create an unknown sized debconf note
--
Troubles are like babies; they only grow by nursing.
Manoj Srivastava <email address hidden> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C

Revision history for this message
In , Manoj (srivasta) wrote : This bug can't be fixed yet

block 325576 with 325586 126753
--
Ain't no right way to do a wrong thing. The Mad Dogtender
Manoj Srivastava <email address hidden> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C

Revision history for this message
Windkracht8 (windkracht8) wrote : Depconf not updating gui

Binary package hint: update-manager

1 Upgrade from dapper to edgy by running 'update-manager -c', while having previously changed a configuration file (fe: /etc/exports)
2 A 'debconf' window appears to ask if you want to keep the changed version of the file or if you want the package's version or if you want to see the difference between them.
3 Click on the 'distribution upgrade' window which then overlaps the 'debconf' window.
4 Bring the 'debconf' window back to the front.

The part of the 'debconf' window which was behind the 'distribution upgrade' window is not updating, thus leaving that part blanc.
Also when clicking 'applications', 'places' or 'system' which results in a menu overlapping the other part of the 'debconf' window. Makes the other part blanc.
Have a look at the screen shot (http://www.windkracht8.com/debconf_crash.png) for clarification.

Michael Vogt (mvo)
Changed in update-manager:
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I can confirm this problem here in a test-upgrade. The issue is that the ucf application is used to detect changes in the configuration file and presents a nice debconf frontend. Unfortunately it starts the diff (to show the differences) in the terminal that is hidden by default.

We should change ucf to not show stuff in the terminal under X but to invoke a new window to show the diff or to let dpkg deal with the conffile. This way it will send this information over the status-fd to the update-manager and that will present a nicer and better integrated conffile prompt with similar options.

Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
In , Michael Vogt (mvo) wrote : [PATCH] use debconf to display the diff

Hi,

attached is a patch that uses debconf to display the diff. This avoids
that the GUI freeze when using the gnome debconf frontend.

It uses the "escape" capability of debconf, this is why I updated the
debconf version and removed cdebconf (it does not support this feature
currently).

Feedback is very welcome.

Cheers,
 Michael

P.S. I did the patch against a slightly older version, but it applies
fine to the latest version in unstable.

Revision history for this message
Michael Vogt (mvo) wrote :

I reject the update-manager task and move the 7.04 target to ucf.

Changed in update-manager:
status: Confirmed → Rejected
Changed in ucf:
assignee: nobody → mvo
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

I send the debdiff upstream, hoping for feedback.

Changed in ucf:
status: Unknown → Unconfirmed
Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in the latest version of our ucf package in the archive.

Changed in ucf:
status: Confirmed → Fix Released
Revision history for this message
In , Manoj (srivasta) wrote : Fix for Bug#325576 commited to version control

tags 325576 +pending
thanks
Hi,

     The following change has been committed for this bug, and so the
  fix will be in the next upload.
===================================================================
2007-05-05 GMT Manoj Srivastava <email address hidden>

    Summary:
      Add support for displaying diffs using debconf itself
    Revision:
      ucf--devel--2.0--patch-2

    Users using a Graphical frontend are surprised when the display apparently
    just blocks when they ask to see a diff (or 3-way diff) of the
    configuration file being handled, when actually the diff is displayed on
    the terminal window ucf was run on. Until the debconf-escape utility and
    the escape CAPB support, db_subst ran into newline and line length
    issues. Patch from Michael Vogt.

    Closes: Bug#325576

    * ucf (show_diff): Added a function to show the diff using debconf

    * ucf (newsum): Use it

    modified files:
     ChangeLog ucf

Revision history for this message
In , Manoj (srivasta) wrote : Bug#325576: fixed in ucf 3.001

Source: ucf
Source-Version: 3.001

We believe that the bug you reported is fixed in the latest version of
ucf, which is due to be installed in the Debian FTP archive:

ucf_3.001.dsc
  to pool/main/u/ucf/ucf_3.001.dsc
ucf_3.001.tar.gz
  to pool/main/u/ucf/ucf_3.001.tar.gz
ucf_3.001_all.deb
  to pool/main/u/ucf/ucf_3.001_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <email address hidden> (supplier of updated ucf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 5 May 2007 11:59:20 -0500
Source: ucf
Binary: ucf
Architecture: source all
Version: 3.001
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <email address hidden>
Changed-By: Manoj Srivastava <email address hidden>
Description:
 ucf - Update Configuration File: preserves user changes to config files
Closes: 325576 421141
Changes:
 ucf (3.001) unstable; urgency=low
 .
   * Bug fix: "ucf: [INTL:ru] Russian debconf template translation", thanks
     to Yuri Kozlov (Closes: #421141).
   * Bug fix: "ucf: should use debconf to display the diff results", thanks
     to Gustavo Noronha Silva. Users using a Graphical frontend are
     surprised when the display apparently just blocks when they ask to see
     a diff (or 3-way diff) of the configuration file being handled, when
     actually the diff is displayed on the terminal window ucf was run
     on. Until the debconf-escape utility and the escape CAPB support,
     db_subst ran into newline and line length issues. Patch from Michael
     Vogt. (Closes: #325576).
   * From Michael Vogt's patch: use a debconf note for the diff. updated
     dependency of debconf to 1.4.72 (this is the version that supports the
     "escape" capability)
   * Left in the debconf-2.0 as is, since I am assuming anything that
     provides debconf-2.0 should be a drop in replacement, or that should
     be considered a bug. This is a change from Michael Vogt's patch.
Files:
 1da24df27b2aa5843e3336fa2915d1ee 648 utils optional ucf_3.001.dsc
 7f2a4939bdf23dd085fa36518ebd6c5f 77055 utils optional ucf_3.001.tar.gz
 729ac93ddebdcce3f1bd506a855c09fa 57728 utils optional ucf_3.001_all.deb

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

iD8DBQFGPNcLIbrau78kQkwRAuprAJ4myNYqbDHRDtK4M0JH1EeBKnAQuwCgt1M9
CiOdTiImInKiYBztbWNTPc4=
=93rs
-----END PGP SIGNATURE-----

Changed in ucf:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.