Re: Package Configuration
On Thu, Aug 19, 2010 at 04:36:49PM +0100, Chris Baines wrote: > I would be happy for you to file a bug as I am not that familiar with > the Debian policy on this, and have little experience filing bugs. Done. See http://bugs.debian.org/593628 and follow up to 593...@bugs.debian.org if you like. -- { IRL(Jeremy_Stanley); PGP(97AE496FC02DEC9FC353B2E748F9961143495829); SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org); MUD(kin...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); } -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100819180227.gd2...@yuggoth.org
Re: Package Configuration
On Thu, 2010-08-19 at 14:36 +, The Fungi wrote: > On Thu, Aug 19, 2010 at 02:24:51PM +, The Fungi wrote: > > On Thu, Aug 19, 2010 at 03:11:50PM +0100, Chris Baines wrote: > > > Ok, that makes my work easier. Still surprising though, I thought > > > the dpkg purge command was meant to as the man page says "remove > > > everything". Obviously it cant do this if the home directory is > > > off limits. > > > > If you can find where you read that statement, and if it was an > > official Debian document, a bug report and patch proposal are in > > order to clarify this point. > > Sorry, you said right there "dpkg [...] man page." I should read more > closely. > > [...] >purge: The package is selected to be purged (i.e. we want to >remove everything, even configuration files). > [...] >Note: some configuration files might be unknown to dpkg because >they are created and handled separately through the configuration >scripts. In that case, dpkg won't remove them by itself, but the >package's postrm script (which is called by dpkg), has to take >care of their removal during purge. > [...] > > Agreed--this is misleading, and clarification is probably in order. > File a minor/wishlist bug against dpkg (or I'll be happy to if you > prefer). > -- > { IRL(Jeremy_Stanley); PGP(97AE496FC02DEC9FC353B2E748F9961143495829); > SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511); > AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org); > MUD(kin...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); } > I would be happy for you to file a bug as I am not that familiar with the Debian policy on this, and have little experience filing bugs. Thanks, Chris -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1282232209.2790.2.ca...@chris-debian-desktop
Re: Package Configuration
On Thu, Aug 19, 2010 at 02:24:51PM +, The Fungi wrote: > On Thu, Aug 19, 2010 at 03:11:50PM +0100, Chris Baines wrote: > > Ok, that makes my work easier. Still surprising though, I thought > > the dpkg purge command was meant to as the man page says "remove > > everything". Obviously it cant do this if the home directory is > > off limits. > > If you can find where you read that statement, and if it was an > official Debian document, a bug report and patch proposal are in > order to clarify this point. Sorry, you said right there "dpkg [...] man page." I should read more closely. [...] purge: The package is selected to be purged (i.e. we want to remove everything, even configuration files). [...] Note: some configuration files might be unknown to dpkg because they are created and handled separately through the configuration scripts. In that case, dpkg won't remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge. [...] Agreed--this is misleading, and clarification is probably in order. File a minor/wishlist bug against dpkg (or I'll be happy to if you prefer). -- { IRL(Jeremy_Stanley); PGP(97AE496FC02DEC9FC353B2E748F9961143495829); SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org); MUD(kin...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); } -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100819143608.gc2...@yuggoth.org
Re: Package Configuration
On Thu, Aug 19, 2010 at 03:11:50PM +0100, Chris Baines wrote: > Ok, that makes my work easier. Still surprising though, I thought > the dpkg purge command was meant to as the man page says "remove > everything". Obviously it cant do this if the home directory is > off limits. If you can find where you read that statement, and if it was an official Debian document, a bug report and patch proposal are in order to clarify this point. -- { IRL(Jeremy_Stanley); PGP(97AE496FC02DEC9FC353B2E748F9961143495829); SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org); MUD(kin...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); } -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100819142449.gb2...@yuggoth.org
Re: Package Configuration
Hi, Chris Baines writes: > Sorry for the ambiguous message subject, one of the packages I am > building creates configuration files in the users home directory. > However when I purge the package these files do not get deleted. That is how a package should behave: the package manager must never touch files in home directories. Doing so would create undesired effects on multi-user systems or when the home directory is shared between systems (in this case the package manager might not even have write permission there anyway). Regards, Ansgar -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87aaoi7l7k@marvin.43-1.org
Re: Package Configuration
On Thu, 2010-08-19 at 13:58 +, The Fungi wrote: > Package scripts shouldn't ever mess directly with files in homedirs. > It's fine that the packaged application itself may create user > configuration and may even remove user configuration, but the > packaging must not. It's simply a fact of life that if you install > some packaged application and run it, and then uninstall that > application later, you're likely to have cruft in your home > directory. On Thu, 2010-08-19 at 08:55 -0500, Matt Zagrabelny wrote: > Others will correct me if I am wrong, I believe (policy states?) that > the home directory is "off limits" when purging packages. That is, the > files/directories created aren't config files, per se. Ok, that makes my work easier. Still surprising though, I thought the dpkg purge command was meant to as the man page says "remove everything". Obviously it cant do this if the home directory is off limits. Thanks, Chris -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1282227110.10802.9.ca...@chris-debian-desktop
Re: Package Configuration
On Thu, Aug 19, 2010 at 8:35 AM, Chris Baines wrote: > Hello Mentors, > > Sorry for the ambiguous message subject, one of the packages I am > building creates configuration files in the users home directory. > However when I purge the package these files do not get deleted. > > Does anyone know where I can find the relevant Debian documentation > describing how to setup the package so that it behaves as expected? Does > anyone know of any packages with this kind of setup so I can have an > example to work off? Others will correct me if I am wrong, I believe (policy states?) that the home directory is "off limits" when purging packages. That is, the files/directories created aren't config files, per se. HTH, -matt zagrabelny -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikd16ki3agqnc0tt8gctzsnvpttzvuf=dxyg...@mail.gmail.com
Re: Package Configuration
On Thu, Aug 19, 2010 at 02:35:13PM +0100, Chris Baines wrote: > Sorry for the ambiguous message subject, one of the packages I am > building creates configuration files in the users home directory. > However when I purge the package these files do not get deleted. > > Does anyone know where I can find the relevant Debian documentation > describing how to setup the package so that it behaves as expected? Does > anyone know of any packages with this kind of setup so I can have an > example to work off? Package scripts shouldn't ever mess directly with files in homedirs. It's fine that the packaged application itself may create user configuration and may even remove user configuration, but the packaging must not. It's simply a fact of life that if you install some packaged application and run it, and then uninstall that application later, you're likely to have cruft in your home directory. -- { IRL(Jeremy_Stanley); PGP(97AE496FC02DEC9FC353B2E748F9961143495829); SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org); MUD(kin...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); } -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100819135809.ga2...@yuggoth.org
Package Configuration
Hello Mentors, Sorry for the ambiguous message subject, one of the packages I am building creates configuration files in the users home directory. However when I purge the package these files do not get deleted. Does anyone know where I can find the relevant Debian documentation describing how to setup the package so that it behaves as expected? Does anyone know of any packages with this kind of setup so I can have an example to work off? Thanks, Chris -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1282224913.10802.3.ca...@chris-debian-desktop