Your message dated Wed, 24 Apr 2013 10:32:42 +0000
with message-id <[email protected]>
and subject line Bug#577127: fixed in ucf 3.0026
has caused the Debian Bug report #577127,
regarding ucf fails when VERBOSE is set to 1 in /etc/ucf.conf
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
577127: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577127
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ucf
Version: 3.0025
Severity: normal
Tags: patch
As the subject says, ucf fails with error code 20 when VERBOSE is set
to 1 in /etc/ucf.conf. Actually it is debconf's
/usr/share/debconf/confmodule which fails and subsequently topples
ucf. The problem seems to be, that some of the messages in ucf are
written to stdout instead of stderr, which confuses confmodule's
function _db_cmd when reading _db_internal_line. I believe the same is
true when DEBUG is set > 0 in ucf.conf, but I had no time to test it
in more detail.
I have been able to reproduce this consistently on Lenny and sid with
php5-cli, but I think I also encountered the same issue a couple of
months ago with nfs-common. I am pretty sure it affects every package
which uses ucf.
The last line executed before ucf aborts is the following (found with
set -x):
RET='20 Unsupported command "egrep" (full line was "egrep
[[:space:]]\/etc\/php5\/cli\/php\.ini$ /var/lib/ucf/hashfile")
received from confmodule.'
I attached a patch, diffed against ucf-3.0025 in sid, which simply
redirects the few verbose messages written to stdout to stderr.
Actually "git blame" tells me that the lines in question have been in
the code since 2004, so I can't help wondering whether it has been
broken for the last 6 years, or if something changed in debconf.
I have not been able to figure out yet, why this only happens when the
variables are set in ucf.conf, but not when the cli switches
(--verbose/--debug) are used. But somehow using the switches and using
ucf.conf results in different behavior, which I think may be a bug in
itself.
I hope the bug will be properly reported, this is my first time using
reportbug.
Thanks for your work on Debian!
Kind regards,
Aljoscha Lautenbach
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ucf depends on:
ii coreutils 8.4-2 GNU core utilities
ii debconf 1.5.30 Debian configuration management sy
ucf recommends no packages.
ucf suggests no packages.
-- debconf information:
ucf/changeprompt: keep_current
ucf/conflicts_found:
ucf/title:
* ucf/show_diff:
* ucf/changeprompt_threeway: keep_current
--- ucf.orig 2010-04-09 22:43:53.000000000 +0200
+++ ucf.new 2010-04-09 22:43:43.000000000 +0200
@@ -155,8 +155,8 @@
if [ "X$docmd" = "XYES" ]; then
set +e
if [ "X$VERBOSE" != "X" ]; then
- echo "egrep -v [[:space:]]${safe_dest_file}$ $statedir/hashfile"
- egrep -v "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" \
+ echo >&2 "egrep -v [[:space:]]${safe_dest_file}$ $statedir/hashfile"
+ egrep -v "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" >&2 \
|| true;
fi
#echo "egrep -v [[:space:]]${safe_dest_file}$ $statedir/hashfile"
@@ -170,7 +170,7 @@
set -e
fi
fi
- test -n "$VERBOSE" && echo "The cache file is $cached_file"
+ test -n "$VERBOSE" && echo >&2 "The cache file is $cached_file"
if [ ! -z "$cached_file" -a -f "$statedir/cache/$cached_file" ]; then
$action rm -f "$statedir/cache/$cached_file"
fi
@@ -197,9 +197,9 @@
if [ "X$docmd" = "XYES" ]; then
set +e
if [ "X$VERBOSE" != "X" ]; then
- echo "(egrep -v \"[[:space:]]${safe_dest_file}$\" \"$statedir/hashfile\";"
- egrep -v "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" || true;
- md5sum "$orig_new_file" | sed "s|$orig_new_file|$dest_file|" ;
+ echo >&2 "(egrep -v \"[[:space:]]${safe_dest_file}$\" \"$statedir/hashfile\";"
+ egrep -v "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" >&2 || true;
+ md5sum "$orig_new_file" | sed "s|$orig_new_file|$dest_file|" >&2;
fi
egrep -v "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" > \
"$statedir/hashfile.tmp" || true;
@@ -513,8 +513,8 @@
if [ -e "$statedir/hashfile" ]; then
if [ "X$VERBOSE" != "X" ]; then
echo >&2 "The hash file exists"
- echo egrep "[[:space:]]${safe_dest_file}$" "$statedir/hashfile"
- egrep "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" || true
+ echo >&2 egrep "[[:space:]]${safe_dest_file}$" "$statedir/hashfile"
+ egrep "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" >&2 || true
fi
lastsum=$(egrep "[[:space:]]${safe_dest_file}$" "$statedir/hashfile" | \
awk '{print $1;}' )
--- End Message ---
--- Begin Message ---
Source: ucf
Source-Version: 3.0026
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.
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 protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (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 protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 24 Apr 2013 03:10:05 -0700
Source: ucf
Binary: ucf
Architecture: source all
Version: 3.0026
Distribution: experimental
Urgency: low
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description:
ucf - Update Configuration File(s): preserve user changes to config fil
Closes: 573455 574266 577127 577582 596452 631231 638187 670711
Changes:
ucf (3.0026) experimental; urgency=low
.
* Acknowledge NMUs. Thanks, bubulle.
* Bug fix: "starting a new shell fails from console", thanks to EmaRsk
(Closes: #574266). The fix was provided by Aaron Hope <[email protected]>
* Bug fix: "$PAGER ignored", thanks to David Fries (Closes: #596452).
* Bug fix: "ucf fails when VERBOSE is set to 1 in /etc/ucf.conf", thanks
to Aljoscha Lautenbach (Closes: #577127). The same bug was also
repprted as "--verbose option changes return code", thanks to Frank
Küster (Closes: #631231).
* Bug fix: "Small typo in ucf help", thanks to Tomasz Muras
(Closes: #577582).
* Bug fix: "ucfr exits successfully despite syntax error", thanks to
Sven Joachim (Closes: #573455).
* Bug fix: "ucfr should collapse duplicate slashes in paths", thanks to
Olivier Berger (Closes: #638187).
* Bug fix: "should be tagged Multi-Arch: foreign", thanks to
[email protected] (Closes: #670711).
Checksums-Sha1:
db106c9af65da64c091e33f71ca07d0b1db2df29 1290 ucf_3.0026.dsc
29a5cf994822558db175d1a442cd32b084756604 80932 ucf_3.0026.tar.gz
c347f4187a867b9645c52acd0e4eac48628fd3e4 71228 ucf_3.0026_all.deb
Checksums-Sha256:
43e83b3b3d821b5d9de4579b1f1487cd60f18ca737b8d2b211a76dfcfabbcdc9 1290
ucf_3.0026.dsc
19ebbbe2d609e37d3d866f4e68d2eb39d62b87f95e77fa3607c89efe5ee9d40b 80932
ucf_3.0026.tar.gz
8cf84ead0437c06621f5140af576cdc94a1a4a8d3f4a5c7edee5fbd4afd01db8 71228
ucf_3.0026_all.deb
Files:
8b798a00ec95f4a0c5b434227aa8b5a5 1290 utils standard ucf_3.0026.dsc
c5e24218e39718ccbb308d1934df3d10 80932 utils standard ucf_3.0026.tar.gz
646cc0a400523b050481f8a2ae54ec4a 71228 utils standard ucf_3.0026_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQFtBAEBCgBXBQJRd7EeUBSAAAAAABsALHNyaXZhc3RhQGdvbGRlbi1ncnlwaG9u
LmNvbUFCQTcxMDI1QTFCNUE4OEE0RTVGNjhDMjM2QkQ3MjBGNkY1NzY0NzJfMjIx
AAoJEDa9cg9vV2RyyoEIAIePGoxZ4FTdlnj6dRNhCxXgc+PI+iePgQAi1TY84fde
Gl//CXCIXHPEHBIw7uMUBXYTIZJEpwcaxGa9XX0l5SoHymjItOoEaG0Ln06DbLOh
JaCsBGQbqQZyTE2JFmGUxGBmhgns49GJKQdUVHXcbsYWw3/6mbTQR1kIDgitTLfQ
dUSUSuC/B0G682YBcVHW9IPlP8F1NOhRq/qe7ununBPC4B/Ao+CJkZ6PSFD5XIFt
cOLS7RfBiMAUkyM7P1aoOSmmk9ZDNVdxHVLjwER7/bfQUeXMKsNDyA6zV92u6jjZ
SpSb8rwh/gceRX8ecH72pfXbWMZw3tTZzfyWb7wyVOI=
=R0k7
-----END PGP SIGNATURE-----
--- End Message ---