Debian Bug report logs -
#560323
debconf: document the fact that the TITLE command is deprecated
Reported by: Frans Pop <elendil@planet.nl>
Date: Thu, 10 Dec 2009 13:21:02 UTC
Severity: wishlist
Tags: patch
Found in version debconf/1.5.28
Fixed in version debconf/1.5.29
Done: Colin Watson <cjwatson@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 13:21:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Frans Pop <elendil@planet.nl>:
New Bug report received and forwarded. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 13:21:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: debconf
Version: 1.5.28
Severity: wishlist
Tags: patch
During Debian Installer installations logs frequently show the warning that
the TITLE command is deprecated, but this is currently not documented in
the debconf-devel man page.
Attached a proposed patch to fix this.
[debconf.patch (text/x-diff, inline)]
diff -ur debconf-1.5.28.orig/doc/man/debconf-devel.7 debconf-1.5.28/doc/man/debconf-devel.7
--- debconf-1.5.28.orig/doc/man/debconf-devel.7 2009-12-10 13:59:58.000000000 +0100
+++ debconf-1.5.28/doc/man/debconf-devel.7 2009-12-10 14:13:12.000000000 +0100
@@ -266,17 +266,21 @@
replies for you.
.RE
.TP
-.B TITLE string
-This sets the title debconf displays to the user. You rarely need to use
-this command since debconf can automatically generate a title based on
-your package's name.
-.TP
.B SETTITLE question
-This sets the title to the short description of the template for the
-specified question. The template should be of type title. The advantage
-this has over the TITLE command is that it allows for titles to be stored
-in the same place as the rest of the debconf questions, and allows them to
-be translated.
+.RS
+This sets the title debconf displays to the user, using the short description
+of the template for the specified question. The template should be of type
+title. You rarely need to use this command since debconf can automatically
+generate a title based on your package's name.
+.P
+Setting the title from a template means they are stored in the same place
+as the rest of the debconf questions, and allows them to be translated.
+.RE
+.TP
+.B TITLE string
+This sets the title debconf displays to the user to the specified string.
+This command is deprecated and may be removed in the future; the SETTITLE
+command should be used instead.
.TP
.B INPUT priority question
.RS
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 20:39:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 20:39:06 GMT) (full text, mbox, link).
Message #10 received at 560323@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Frans Pop wrote:
> During Debian Installer installations logs frequently show the warning that
> the TITLE command is deprecated, but this is currently not documented in
> the debconf-devel man page.
But is TITLE actually deprecated? The warning message is printed by
cdebconf, not debconf. In d-i, this makes some sense, as TITLE cannot be
localised in that environment (unless the string comes in via passthrough).
In Debian though, TITLE can be localised using gettext, and there's nothing
really wrong with doing so.
Also, note that the debconf specification in policy has not yet been updated
to document SETTITLE.
--
see shy jo
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 21:06:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 21:06:10 GMT) (full text, mbox, link).
Message #15 received at 560323@bugs.debian.org (full text, mbox, reply):
On Thursday 10 December 2009, you wrote:
> But is TITLE actually deprecated? The warning message is printed by
> cdebconf, not debconf.
Yes, I found out that this is more a cdebconf issue than a debconf one
after filing the bug.
OTOH, shouldn't the protocols be the same for both packages, especially
with a view to the planned changeover from debconf to cdebconf for the
installed system?
> In d-i, this makes some sense, as TITLE cannot be localised in that
> environment
Well, in principle you could even workaround that if SETTITLE wasn't
available:
db_metaget <some text template> description
db_title $RET
> (unless the string comes in via passthrough).
And that is exactly where most "obsolete command" warnings currently come
from :-/
> In Debian though, TITLE can be localised using gettext, and there's
> nothing really wrong with doing so.
In theory yes. But today I filed a few bugs against packages using db_title
in maintainer scripts to set hardcoded dialog titles that really should
have been translatable.
From that PoV deprecating TITLE makes sense as it forces developers to use
SETTITLE and therefore do the right thing regarding translations.
But if you feel there are valid use cases for TITLE I'm not against keeping
it, but in that case I think the deprecation warning in cdebconf should be
removed. I think D-I developers are sufficiently aware of translation
issues that they'll not use it.
Cheers,
FJP
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 21:30:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 21:30:06 GMT) (full text, mbox, link).
Message #20 received at 560323@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Frans Pop wrote:
> > (unless the string comes in via passthrough).
>
> And that is exactly where most "obsolete command" warnings currently come
> from :-/
And most of _those_ in turn are probably due to debconf communicating the
default titles it sets ("Configuring <package>"), not due to a package
calling TITLE. IIRC at least.
Maybe passthrough could use SETITLE for that, rather than TITLE. It
would have to send along info about a pretend template that had a
description consiing of the title value. Not sure about namespace issues
for that, etc.
> In theory yes. But today I filed a few bugs against packages using db_title
> in maintainer scripts to set hardcoded dialog titles that really should
> have been translatable.
>
> From that PoV deprecating TITLE makes sense as it forces developers to use
> SETTITLE and therefore do the right thing regarding translations.
From my grepping, a lintian test for "db_title <hardcoded string here>"
would be useful.
> But if you feel there are valid use cases for TITLE I'm not against keeping
> it, but in that case I think the deprecation warning in cdebconf should be
> removed. I think D-I developers are sufficiently aware of translation
> issues that they'll not use it.
I have no problem with removing that warning.
--
see shy jo
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 22:09:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 22:09:09 GMT) (full text, mbox, link).
Message #25 received at 560323@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thursday 10 December 2009, Joey Hess wrote:
> Frans Pop wrote:
> > > (unless the string comes in via passthrough).
> >
> > And that is exactly where most "obsolete command" warnings currently
> > come from :-/
>
> And most of _those_ in turn are probably due to debconf communicating
> the default titles it sets ("Configuring <package>"), not due to a
> package calling TITLE.
Right.
> Maybe passthrough could use SETITLE for that, rather than TITLE. It
> would have to send along info about a pretend template that had a
> description consiing of the title value. Not sure about namespace issues
> for that, etc.
There's a comment about that in the passthrough code, but just removing the
warning solves the problem as well.
Using TITLE in the passthrough frontend does seem natural enough. As long
as we're keeping TITLE I see no real reason to make things more complex.
> From my grepping, a lintian test for "db_title <hardcoded string here>"
> would be useful.
Agreed. I'll file a bug report.
Although there will be false positives (htdig for example has a string that
needs no translation), and even a variable can contain an untranslated
string of course.
> > But if you feel there are valid use cases for TITLE I'm not against
> > keeping it, but in that case I think the deprecation warning in
> > cdebconf should be removed. I think D-I developers are sufficiently
> > aware of translation issues that they'll not use it.
>
> I have no problem with removing that warning.
Done.
How about the attached modified patch then? Instead of warning that TITLE
is deprecated, it now explains why SETTITLE is normally to be preferred.
[debconf.patch (text/x-diff, inline)]
diff -ur debconf-1.5.28.orig/doc/man/debconf-devel.7 debconf-1.5.28/doc/man/debconf-devel.7
--- debconf-1.5.28.orig/doc/man/debconf-devel.7 2009-12-10 13:59:58.000000000 +0100
+++ debconf-1.5.28/doc/man/debconf-devel.7 2009-12-10 14:13:12.000000000 +0100
@@ -266,17 +266,21 @@
replies for you.
.RE
.TP
-.B TITLE string
-This sets the title debconf displays to the user. You rarely need to use
-this command since debconf can automatically generate a title based on
-your package's name.
-.TP
.B SETTITLE question
-This sets the title to the short description of the template for the
-specified question. The template should be of type title. The advantage
-this has over the TITLE command is that it allows for titles to be stored
-in the same place as the rest of the debconf questions, and allows them to
-be translated.
+.RS
+This sets the title debconf displays to the user, using the short description
+of the template for the specified question. The template should be of type
+title. You rarely need to use this command since debconf can automatically
+generate a title based on your package's name.
+.P
+Setting the title from a template means they are stored in the same place
+as the rest of the debconf questions, and allows them to be translated.
+.RE
+.TP
+.B TITLE string
+This sets the title debconf displays to the user to the specified string.
+Use of the SETTITLE command is normally to be preferred as it allows for
+translation of the title.
.TP
.B INPUT priority question
.RS
Added tag(s) pending.
Request was from Joey Hess <joeyh@debian.org>
to control@bugs.debian.org.
(Thu, 10 Dec 2009 22:21:12 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 23:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 23:15:05 GMT) (full text, mbox, link).
Message #32 received at 560323@bugs.debian.org (full text, mbox, reply):
On Thursday 10 December 2009, Joey Hess wrote:
> Also, note that the debconf specification in policy has not yet been
> updated to document SETTITLE.
I've submitted a patch to add it (#560411).
The spec probably could do with a general review. One thing I noted is that
the description for the "text" type could mention that it's useful for
text fragments dynamically included in other templates.
The described use of the "text" type were maybe best deprecated.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#560323; Package debconf.
(Thu, 10 Dec 2009 23:39:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Frans Pop <elendil@planet.nl>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>.
(Thu, 10 Dec 2009 23:39:07 GMT) (full text, mbox, link).
Message #37 received at 560323@bugs.debian.org (full text, mbox, reply):
On Friday 11 December 2009, Frans Pop wrote:
> The spec probably could do with a general review. One thing I noted is
> that the description for the "text" type could mention that it's useful
> for text fragments dynamically included in other templates.
OTOH, problem with the text type is that we have to force the whole string
into the short description.
So it may be even better to define a new type for that usage that returns
the full description as a single string, but including blank lines. Not
sure whether to allow the text to start in the short description, or to
define that the short description should be left empty.
Reply sent
to Colin Watson <cjwatson@debian.org>:
You have taken responsibility.
(Sun, 21 Mar 2010 21:39:21 GMT) (full text, mbox, link).
Notification sent
to Frans Pop <elendil@planet.nl>:
Bug acknowledged by developer.
(Sun, 21 Mar 2010 21:39:21 GMT) (full text, mbox, link).
Message #42 received at 560323-close@bugs.debian.org (full text, mbox, reply):
Source: debconf
Source-Version: 1.5.29
We believe that the bug you reported is fixed in the latest version of
debconf, which is due to be installed in the Debian FTP archive:
debconf-doc_1.5.29_all.deb
to main/d/debconf/debconf-doc_1.5.29_all.deb
debconf-english_1.5.29_all.deb
to main/d/debconf/debconf-english_1.5.29_all.deb
debconf-i18n_1.5.29_all.deb
to main/d/debconf/debconf-i18n_1.5.29_all.deb
debconf-utils_1.5.29_all.deb
to main/d/debconf/debconf-utils_1.5.29_all.deb
debconf_1.5.29.dsc
to main/d/debconf/debconf_1.5.29.dsc
debconf_1.5.29.tar.gz
to main/d/debconf/debconf_1.5.29.tar.gz
debconf_1.5.29_all.deb
to main/d/debconf/debconf_1.5.29_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 560323@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated debconf 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 21 Mar 2010 20:51:30 +0000
Source: debconf
Binary: debconf debconf-i18n debconf-english debconf-doc debconf-utils
Architecture: source all
Version: 1.5.29
Distribution: unstable
Urgency: low
Maintainer: Debconf Developers <debconf-devel@lists.alioth.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Description:
debconf - Debian configuration management system
debconf-doc - debconf documentation
debconf-english - small footprint English-only debconf
debconf-i18n - full internationalization support for debconf
debconf-utils - debconf utilities
Closes: 551945 556275 558085 558659 559500 560323 563577 566954 568368 568976 569254 570345 571680 573053 573057 573122 573124 573195 573202 573867 573984 574573 574759
Changes:
debconf (1.5.29) unstable; urgency=low
.
[ Programs translation update ]
* Bulgarian (Damyan Ivanov). Closes: #558085
* German (Helge Kreutzmann)
* Portuguese (Miguel Figueiredo). Closes: #569254
* Hebrew (Lior Kaplan).
* Japanese (Kenshi Muto). Closes: #573057
* Finnish (Tommi Vainikainen). Closes: #573053
* Vietnamese (Clytie Siddall). Closes: #573122
* Polish (Marcin Owsiany). Closes: #573124
* Russian (Yuri Kozlov). Closes: #573195
* Czech (Miroslav Kure). Closes: #573984
* Asturian (Marcos).
* Dutch (Frans Pop).
* Swedish (Daniel Nylander).
* Khmer (Khoem Sokhem).
* Bengali (Md. Rezwan Shahid).
* Indonesian (Parlin Imanuel).
* Catalan (Guillem Jover).
* Esperanto (Felipe Castro).
* Traditional Chinese (Kan-Ru Chen).
.
[ Manpage translation updates ]
* French (Florentin Duneau). Closes: #573867
* German (Helge Kreutzmann)
* Russian (Yuri Kozlov). Closes: #556275, #573202
.
[ Debconf translations ]
* Bengali (Sadia Afroz).
* Italian (Milo Casagrande). Closes: #559500
* Norwegian Bokmål (Hans Fredrik Nordhaug). Closes: #558659
* Swedish (Martin Bagge). Closes: #551945
* Simplified Chinese (苏运强).
* Thai (Theppitak Karoonboonyanan). Closes: #568368
* Vietnamese (Clytie Siddall). Closes: #568976
* Gujarati (Kartik Mistry). Closes: #571680
* Slovenian (Vanja Cvelbar). Closes: #570345
.
[ Joey Hess ]
* debconf-devel(7): Note why SETTITLE is generally used rather than TITLE.
Closes: #560323 (Thanks, Frans Pop)
* DbDriver::File: Open file read-write so exclusive flock locking can be
done portably. Fixes issue on Solaris. (Thanks, James Lee)
Closes: #563577
* Prevent dialog from escaping "\n" to a liternal newline in the text
it displays by doing some tricky things with UTF-8 zero-width characters.
Closes: #566954 (Thanks, Ben Hutchings)
.
[ Colin Watson ]
* Build for Python 2.6. Closes: #574759
.
[ Joey Hess ]
* Clean up use of POSIX perl module, which exports a large amount
of stuff by default. Closes: #574573
Checksums-Sha1:
6a09fb0d7c2bb80224cb4ca939795e4a90138986 1146 debconf_1.5.29.dsc
f9279f3f07167f4d8684984e9c8984aeac7f933d 768294 debconf_1.5.29.tar.gz
576db4b6aaf8c676e5a103b76f7d9bb562ed0027 149422 debconf_1.5.29_all.deb
24f57b28868bbb5d55e1d440ed5b6f408309ce3e 187186 debconf-i18n_1.5.29_all.deb
78be101887cb5ba60d35c18d97fbfdefbc883941 856 debconf-english_1.5.29_all.deb
a697021feeaaf50146e005f24f92e2b9bff6eb2d 239964 debconf-doc_1.5.29_all.deb
a166966a6f15fd4faece9ec86d2bb33bfdc7a9c5 40420 debconf-utils_1.5.29_all.deb
Checksums-Sha256:
aedc5b85f0026d1f19d0b1c57543350b97f0154bc08af42384ae6b24500abb29 1146 debconf_1.5.29.dsc
d4770139d05309ef40db6b65470a745428682ce2fea9ad22cf5fc1ff519dee85 768294 debconf_1.5.29.tar.gz
85b5d0b86b1999a3d4c0dcf6a74c11e2297fceb81d076f11c6a094900b216e31 149422 debconf_1.5.29_all.deb
b7e9e629be75a01dcff3bd5046dd48573877dc08132eef7a6d61485f9d6dffae 187186 debconf-i18n_1.5.29_all.deb
e71ade01a9b8a00e9370d70385ad53cfe7f5132391c773212dfd57ea31219c71 856 debconf-english_1.5.29_all.deb
04a31ef02818c0b71878395e7e6451939f9bfe770db9e1d65161f1e1c20ab0c2 239964 debconf-doc_1.5.29_all.deb
0e18bec6f186b2c80a0da6dfe4a4fe58593fefadf54e1f73467298bd68656a59 40420 debconf-utils_1.5.29_all.deb
Files:
1b7ee5fdd9f89ab1c0e8508f0581189a 1146 admin optional debconf_1.5.29.dsc
add5824a8bb9fc930dcc079ab11b8cf9 768294 admin optional debconf_1.5.29.tar.gz
64a3dd4f81b57fd067d183f8598ef6fd 149422 admin important debconf_1.5.29_all.deb
287584f829c13efb6bcb7eff196c9369 187186 localization important debconf-i18n_1.5.29_all.deb
20868350da7cc2f590db02a8f30afffa 856 admin extra debconf-english_1.5.29_all.deb
122535727d41c85698e991552297aad7 239964 doc optional debconf-doc_1.5.29_all.deb
66f2da0c449b41604ab5cfbc84b2ed86 40420 devel optional debconf-utils_1.5.29_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Colin Watson <cjwatson@debian.org> -- Debian developer
iD8DBQFLpozR9t0zAhD6TNERAmFBAJ9gYNBOrwFxEsmsBKKGu6cVMzL7iwCdGvck
1xc3X0T7507LB9al8H/Z/2I=
=+LxX
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 19 Apr 2010 07:33:05 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 21:25:28 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.