Your message dated Wed, 24 Jan 2024 16:48:58 +0000 with message-id <[email protected]> and subject line Bug#304572: fixed in debconf 1.5.84 has caused the Debian Bug report #304572, regarding debconf.py:runFrontEnd() bug in execv of frontend 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.) -- 304572: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304572 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: debconf Version: 1.4.48 Severity: important /usr/lib/python2.3/site-packages/debconf.py def runFrontEnd(): if not os.environ.has_key('DEBIAN_HAS_FRONTEND'): os.environ['PERL_DL_NONLAZY']='1' os.execv(_frontEndProgram, [_frontEndProgram, sys.executable]+sys.argv) If my config program is called 'foo'. The os.execv() will execute the frontend as follows: os.execv(/usr/share/debconf/frontend, [/usr/share/debconf/frontend, /usr/bin/python, 'foo']) With debug turned on, this is what I see: $ ./foo debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied debconf (developer): frontend started debconf (developer): Trying to find a templates file.. debconf (developer): Trying /usr/bin/python.templates debconf (developer): Trying /usr/share/debconf/templates/python.templates debconf (developer): Couldn't find a templates file. debconf (developer): frontend running, package name is debconf (developer): starting /usr/bin/python ./foo I believe the proper os.execv() called should be: os.execv(_frontEndProgram, [_frontEndProgram]+sys.argv) Which results in the follow debug info: $ ./foo debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied debconf (developer): frontend started debconf (developer): Trying to find a templates file.. debconf (developer): Trying ./foo.templates debconf (developer): I guess it is ./foo.templates debconf (developer): frontend running, package name is debconf (developer): starting ./foo debconf (developer): <-- VERSION 2 -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.10-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages debconf depends on: ii debconf-i18n 1.4.48 full internationalization support ii perl-base 5.8.4-8 The Pathologically Eclectic Rubbis -- debconf information: * debconf/priority: medium * debconf/frontend: Dialog
--- End Message ---
--- Begin Message ---Source: debconf Source-Version: 1.5.84 Done: Colin Watson <[email protected]> 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. 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. Colin Watson <[email protected]> (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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 24 Jan 2024 16:20:13 +0000 Source: debconf Architecture: source Version: 1.5.84 Distribution: unstable Urgency: medium Maintainer: Debconf Developers <[email protected]> Changed-By: Colin Watson <[email protected]> Closes: 304572 682508 754123 797071 1039068 1039069 1040127 Changes: debconf (1.5.84) unstable; urgency=medium . [ Colin Watson ] * perlcritic fixes: - Move "use strict" above all code. - Avoid declaring variables in conditional statements. - Don't use bareword file/directory handles. - Make all loop iterators lexical. - Don't modify $_ in list functions. - Use bare return rather than "return undef". - Avoid two-argument open. - Use a temporary variable rather than "return sort ...". - Use ":encoding(UTF-8)" in Debconf::FrontEnd::Passthrough rather than ":utf8", since the latter does not validate the input data. - Avoid string eval in a couple of places. - Enable warnings lexically rather than using "perl -w". - Use the block form of grep and map. - Avoid combining low- and high-precedence boolean operators. - Avoid comma-separated statements. - Avoid indirect object call syntax for "new". * Reformat debconf.py using pyupgrade, black, and isort. * Adjust shell code to pass shellcheck. * Fix parsing error that resulted in some nonsense in hierarchy.txt. * dpkg-preconfigure: Print "Extracting templates from packages" to stdout, not stderr (closes: #797071). Also improves error messages if apt-extracttemplates fails (closes: #754123). * debconf-apt-progress: Handle the case of failing to exec the requested command (closes: #682508). * debconf.py: Don't pass sys.executable as an argument to the frontend (closes: #304572). This may break compatibility if the importing program isn't an executable with a #!, but that seems unlikely for programs shipped in Debian. . [ Gioele Barabucci ] * Remove previous_module from confmodules again (cf. 1.4.27/1.4.28; closes: #1040127). . [ Debconf translations ] * Romanian (Remus-Gabriel Chelu; closes: #1039068). . [ Programs translations ] * Romanian (Remus-Gabriel Chelu; closes: #1039069). Checksums-Sha1: a3dfe0e231cf996887e4ff2d92fbdc0a870d9919 2035 debconf_1.5.84.dsc fb9ba934176a684cae7b9af9b031a2aa0488961f 573828 debconf_1.5.84.tar.xz Checksums-Sha256: 4a4ebf9fece3a04df9ab1d2e75ee828c883cc9d0d79eee394a428c70fbb886a1 2035 debconf_1.5.84.dsc fe3ec1f0595e7ca80327c236f949c3b52d855466429db1b5034b95ef01a61c25 573828 debconf_1.5.84.tar.xz Files: e78d9dc2c63e053174e56d0923d60615 2035 admin optional debconf_1.5.84.dsc 6187df4f2c1273a912c574ceb5c1dc7f 573828 admin optional debconf_1.5.84.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmWxON0ACgkQOTWH2X2G UAu3EQ//T+TaIlzPzO4GWiMinm946xP5d9gY2OSyoctoxTD3IpA5teann6YEIzPq gT1Ws3HGfFLHrgEBtNQ8goybiVCA9nidmGY+unzUw0gADsjcU9LPg9EifzaZAAAG e41ZUZmft2+WrDs2Rr1vUNWrcFmZFLCG/Ts1X95Y1Mdb0HK3zowpgByptXcMF2XS DK69skpJ8HFWawDoPTTuVod8AjXO6kzhdrzakS5hMKdB9pYqWEexZ5OzQJvyBktA 0CtYLhhsOB1KJjtex5J+NdOwUEHt2qu2a0nEf1SlUWSIpm1RFBARqZ6E8viNPeWt o1NvIypP4/Zfir78kVUI5CzPgV18z8ysy7BWLhUOkD11kqG6gcVbx/VZwFBnoqV8 +SQCPgpl9ajHSKF6CNxq8j8cuptOaAwrTbEbYJpBtaz8KRroy4nfxO5/qBRaMU+h wBSRf4ONco6IK5km69kPV/jvincBWj3OnUfeA+2RWU+AainWOtH9R8pCFR7oIOW+ VZPQjgbuo3Bxl6jQCzSf1EnvXmtqydxtipSyDy1jRzZOw1LnrWHXbY1Iqd0ASz6w Az5Y0wFBzdJn276ftmwTjaupqsklmi+G/6uqKwH/v93xYyIrtpk+GEJFjZ3TMZyx JLz6qxe9l5fWQkLwh9lNNCx65ckXaAqZuWs0uE0KRftYo4JRHCo= =nelr -----END PGP SIGNATURE-----
--- End Message ---

