Re: How to warn about need to port changes to new configuration file?
On 16:06 Fri 18 Jun , Thomas Hood wrote: It is planned that an upcoming version of resolvconf will add a new hook script for isc-dhcp-client which is identical to the existing one for dhcp3-client. An administrator who has made local changes to the latter hook script should probably make the same changes to the former. Is there a need to warn the administrator that he should (presumably) re-implement his changes in the new file? If so, what is the best way to warn him? Should debconf notes be used? In any case you should notice the administrator about this. Using a debconf note or a debconf question asking to keep the current modification to the new conffile should do the job. BTW for information, if your package update a same conffile, the system could be noticed to not overwrite it. Cf. Section 7.5 http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html Greetings, -- ,''`. Xavier Oswald (xosw...@debian.org) : :' : GNU/LINUX Debian Developer http://www.debian.org `. `' GPG Key: 1024D/88BBB51E `- 938D D715 6915 8860 9679 4A0C A430 C6AA 88BB B51E -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100618143132.ga27...@gmail.com
Re: How to warn about need to port changes to new configuration file?
[Thomas Hood] It is planned that an upcoming version of resolvconf will add a new hook script for isc-dhcp-client which is identical to the existing one for dhcp3-client. An administrator who has made local changes to the latter hook script should probably make the same changes to the former. Is there a need to warn the administrator that he should (presumably) re-implement his changes in the new file? If so, what is the best way to warn him? Should debconf notes be used? What about moving the file in the preinst, and/or create a symlink to/from the new location instead? I mean like renaming conffiles is normally handled. This way any local changes are kept, and the new location work without any manual intervention. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2flhbl0jsml@login2.uio.no
Re: How to warn about need to port changes to new configuration file?
On 18.06.2010 16:06, Thomas Hood wrote: It is planned that an upcoming version of resolvconf will add a new hook script for isc-dhcp-client which is identical to the existing one for dhcp3-client. An administrator who has made local changes to the latter hook script should probably make the same changes to the former. Is there a need to warn the administrator that he should (presumably) re-implement his changes in the new file? If so, what is the best way to warn him? Should debconf notes be used? I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Re: How to warn about need to port changes to new configuration file?
On Fri, Jun 18, 2010 at 10:46 AM, Michael Biebl bi...@debian.org wrote: On 18.06.2010 16:06, Thomas Hood wrote: It is planned that an upcoming version of resolvconf will add a new hook script for isc-dhcp-client which is identical to the existing one for dhcp3-client. An administrator who has made local changes to the latter hook script should probably make the same changes to the former. Is there a need to warn the administrator that he should (presumably) re-implement his changes in the new file? If so, what is the best way to warn him? Should debconf notes be used? I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling dpkg-maintscript-helper was introduced in dpkg 1.15.7.2 to provide a standard implementation of actions like this. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega james...@debian.org -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikux_6xkwud9ppo8h-_w7zn_nxnypx63gqox...@mail.gmail.com
Re: How to warn about need to port changes to new configuration file?
On Fri, Jun 18, 2010 at 04:46:15PM +0200, Michael Biebl wrote: I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling Or rather dpkg-maintscript-helper(1) . By the way, I believe that wiki page should now be heavily upgraded and/or obsoleted. I would have done it myself, but I haven't yet used dpkg-maintscript-helper, so I'm not confident enough to do that. Maybe the -dpkg people or someone that have already used the tool can review the content of that page? Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime signature.asc Description: Digital signature
Re: How to warn about need to port changes to new configuration file?
On 18.06.2010 17:15, James Vega wrote: On Fri, Jun 18, 2010 at 10:46 AM, Michael Biebl bi...@debian.org wrote: I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling dpkg-maintscript-helper was introduced in dpkg 1.15.7.2 to provide a standard implementation of actions like this. This means though, your package needs to add a versioned depends on dpkg, which imho is not so nice. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Re: How to warn about need to port changes to new configuration file?
Am 18.06.2010 18:10, schrieb Michael Biebl: On 18.06.2010 17:15, James Vega wrote: On Fri, Jun 18, 2010 at 10:46 AM, Michael Bieblbi...@debian.org wrote: I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling dpkg-maintscript-helper was introduced in dpkg 1.15.7.2 to provide a standard implementation of actions like this. This means though, your package needs to add a versioned depends on dpkg, which imho is not so nice. Much better as different solutions from different maintainers which will cause different bugs : -- /* Mit freundlichem Gruß / With kind regards, Patrick Matthäi GNU/Linux Debian Developer E-Mail: pmatth...@debian.org patr...@linux-dev.org Comment: Always if we think we are right, we were maybe wrong. */ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c1b9d54.9030...@debian.org
Re: How to warn about need to port changes to new configuration file?
On Fri, Jun 18, 2010 at 18:10:07 +0200, Michael Biebl wrote: On 18.06.2010 17:15, James Vega wrote: On Fri, Jun 18, 2010 at 10:46 AM, Michael Biebl bi...@debian.org wrote: I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling dpkg-maintscript-helper was introduced in dpkg 1.15.7.2 to provide a standard implementation of actions like this. This means though, your package needs to add a versioned depends on dpkg, which imho is not so nice. Make that pre-depends, since you need it in preinst iirc. Cheers, Julien signature.asc Description: Digital signature
Re: How to warn about need to port changes to new configuration file?
On 2010-06-18, Julien Cristau jcris...@debian.org wrote: [dpkg-maintscript-helper] This means though, your package needs to add a versioned depends on dpkg,= which imho is not so nice. Make that pre-depends, since you need it in preinst iirc. As documented in its manpage, at least. It looks a tad misleading, though: | But in many cases the operation done by the program is not critical | for the package, and instead of using a pre-dependency we can call the program | only if we know that the required command is supported by the currently | installed dpkg: | | if dpkg-maintscript-helper supports command; then | dpkg-maintscript-helper command ... | fi That should still require a pre-depends on the dpkg version containing dpkg-maintscript-helper, unless the script itself is also only called conditionally. Kind regards, Philipp Kern -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrni1n7u3.b24.tr...@kelgar.0x539.de
Re: How to warn about need to port changes to new configuration file?
On Fri, 18 Jun 2010, Philipp Kern wrote: As documented in its manpage, at least. It looks a tad misleading, though: | But in many cases the operation done by the program is not critical | for the package, and instead of using a pre-dependency we can call the program | only if we know that the required command is supported by the currently | installed dpkg: | | if dpkg-maintscript-helper supports command; then | dpkg-maintscript-helper command ... | fi That should still require a pre-depends on the dpkg version containing dpkg-maintscript-helper, unless the script itself is also only called conditionally. No, if it doesn't exist, the if test simply fails (but you get an ugly message that the script doesn't exist unless you redirect stderr to /dev/null). Cheers, -- Raphaël Hertzog Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/ My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100618185633.ga30...@rivendell
Re: How to warn about need to port changes to new configuration file?
On Fri, 18 Jun 2010, Stefano Zacchiroli wrote: On Fri, Jun 18, 2010 at 04:46:15PM +0200, Michael Biebl wrote: I assume the file in question is a conffile. If you just want to move its location, read the section Moving a conffile at http://wiki.debian.org/DpkgConffileHandling Or rather dpkg-maintscript-helper(1) . By the way, I believe that wiki page should now be heavily upgraded and/or obsoleted. I would have done it myself, but I haven't yet used dpkg-maintscript-helper, so I'm not confident enough to do that. Maybe the -dpkg people or someone that have already used the tool can review the content of that page? What do you want us to review? The work on dpkg-maintscript-helper was heavily inspired by the content of that page. Feel free to replace it by a pointer to the dpkg-maintscript-helper documentation. Cheers, -- Raphaël Hertzog Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/ My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100618185855.gb30...@rivendell
Re: How to warn about need to port changes to new configuration file?
On Fri, Jun 18, 2010 at 08:58:55PM +0200, Raphael Hertzog wrote: What do you want us to review? The work on dpkg-maintscript-helper was heavily inspired by the content of that page. Feel free to replace it by a pointer to the dpkg-maintscript-helper documentation. I was mainly concerned by people not knowing of the new tool, and continuing adding yet more copies of those snippets in the archive, partly due to the information available in that page. I've noticed only now that some pointers to dpkg-maintscript-helper were already in the page; I've hence just emphasized them a bit more in the page, and added a warning header. Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime signature.asc Description: Digital signature