Report forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson <ian@chiark.greenend.org.uk>:
Bug#8814; Package dpkg.   debian-bugs-dist@lists.debian.orgIan Jackson <ian@chiark.greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Nicolas Lichtmaier <nick@Feedback.com.ar>:
New bug report received and forwarded. Copy sent to Ian Jackson <ian@chiark.greenend.org.uk>.   Nicolas Lichtmaier <nick@Feedback.com.ar>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at submit) by bugs.debian.org; 17 Apr 1997 17:44:57 +0000 Received: (qmail 23729 invoked from network); 17 Apr 1997 17:44:56 -0000 Received: from unknown (HELO zaratustra.feedback.com.ar) (root@200.5.76.7) by master.debian.org with SMTP; 17 Apr 1997 17:43:53 -0000 Received: from newton (root@dialup5S2.Feedback.com.ar [200.5.76.123]) by zaratustra.feedback.com.ar (8.7.3/8.7.3) with ESMTP id OAA28244 for ; Thu, 17 Apr 1997 14:43:41 -0300 Received: by newton id m0wHkh2-000kI1C (Debian Smail-3.2 1996-Jul-4 #2); Thu, 17 Apr 1997 03:29:16 -0300 (ARST) Message-Id: Date: Thu, 17 Apr 1997 03:29:16 -0300 (ARST) From: Nicolas Lichtmaier Subject: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. To: submit@bugs.debian.org X-Mailer: bug 2.92 Package: dpkg Version: 1.4.0.8 I have this: $ l /etc/cron.weekly/man* -rwxr-xr-x 1 root root 148 Mar 31 1996 /etc/cron.weekly/man* -rwxr-xr-x 1 root root 255 Feb 26 15:08 /etc/cron.weekly/man-db* $ dpkg -l man man-db Desired=Unknown/Install/Remove/Purge | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-===============-==============-============================================ rc man 2.3.10-18 Display the on-line manual. ii man-db 2.3.10-33 Display the on-line manual. When a package is removed (not purged) it removes itself from rc scripts, and from places like that. However, executable conffiles executed by run-parts are still executed. dpkg can chmod -x file or something... This can turn into annoying behaviours... in this example, the catpages would be created twice!   Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson <ian@chiark.greenend.org.uk>:
Bug#8814; Package dpkg.   debian-bugs-dist@lists.debian.orgIan Jackson <ian@chiark.greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to Herbert Xu <herbert@greathan.apana.org.au>:
Extra info received and forwarded to list. Copy sent to Ian Jackson <ian@chiark.greenend.org.uk>.   Herbert Xu <herbert@greathan.apana.org.au>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814) by bugs.debian.org; 17 Apr 1997 23:47:36 +0000 Received: (qmail 30999 invoked from network); 17 Apr 1997 23:47:33 -0000 Received: from greathan.apana.org.au (root@203.14.152.113) by master.debian.org with SMTP; 17 Apr 1997 23:47:29 -0000 Received: from greathan (herbert@localhost [127.0.0.1]) by greathan.apana.org.au (8.8.5/8.8.5) with SMTP id JAA19440; Fri, 18 Apr 1997 09:45:48 +1000 Sender: herbert@greathan.apana.org.au Message-ID: <3356B63F.1B3E04C7@greathan.apana.org.au> Date: Fri, 18 Apr 1997 09:45:47 +1000 From: Herbert Xu Organization: Core X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.29 i586) MIME-Version: 1.0 To: Nicolas Lichtmaier , 8814@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nicolas Lichtmaier wrote: > When a package is removed (not purged) it removes itself from rc scripts, > and from places like that. However, executable conffiles executed by > run-parts are still executed. dpkg can chmod -x file or something... > This can turn into annoying behaviours... in this example, the catpages > would be created twice! Does run-parts actually check the execution rights? It should if it doesn't. -- Debian GNU/Linux 1.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} Home Page: http://greathan.apana.org.au/~herbert/ PGP Key: http://greathan.apana.org.au/~herbert/pubkey.txt   Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson <ian@chiark.greenend.org.uk>:
Bug#8814; Package dpkg.   debian-bugs-dist@lists.debian.orgIan Jackson <ian@chiark.greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Acknowledgement sent to =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>:
Extra info received and forwarded to list. Copy sent to Ian Jackson <ian@chiark.greenend.org.uk>.   =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814) by bugs.debian.org; 22 Apr 1997 01:46:21 +0000 Received: (qmail 2714 invoked from network); 22 Apr 1997 01:46:19 -0000 Received: from unknown (HELO zaratustra.feedback.com.ar) (root@200.5.76.7) by master.debian.org with SMTP; 22 Apr 1997 01:46:17 -0000 Received: from newton (root@dialup8S3.Feedback.com.ar [200.5.76.139]) by zaratustra.feedback.com.ar (8.7.3/8.7.3) with ESMTP id WAA28360; Mon, 21 Apr 1997 22:42:06 -0300 Received: from localhost by newton with esmtp id m0wJUWm-000kFmC (Debian Smail-3.2 1996-Jul-4 #2); Mon, 21 Apr 1997 22:37:52 -0300 (ARST) Date: Mon, 21 Apr 1997 22:37:51 -0300 (ARST) From: =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= X-Sender: nick@newton To: Herbert Xu , 8814@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. In-Reply-To: <3356B63F.1B3E04C7@greathan.apana.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 18 Apr 1997, Herbert Xu wrote: > Does run-parts actually check the execution rights? It should if it > doesn't. Don't know, but seems to... $ strings /bin/run-parts | grep exe execl failed to exec %s: %s run-parts: component %s is not an executable plain file --=20 Nicol=E1s Lichtmaier.- nick@feedback.com.ar   Acknowledgement sent to Ian Jackson <ian@chiark.greenend.org.uk>:
Extra info received and filed, but not forwarded.   Ian Jackson <ian@chiark.greenend.org.uk>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814-quiet) by bugs.debian.org; 11 May 1997 22:23:35 +0000 Received: (qmail 28465 invoked from network); 11 May 1997 22:23:34 -0000 Received: from chiark.greenend.org.uk (root@194.217.216.25) by master.debian.org with SMTP; 11 May 1997 22:23:33 -0000 Received: by chiark.greenend.org.uk id m0wQh1P-0004oPC (Debian /\oo/\ Smail3.1.29.1 #29.37); Sun, 11 May 97 23:23 BST Message-Id: Date: Sun, 11 May 97 23:23 BST From: Ian Jackson To: Nicolas Lichtmaier , Debian developers list , 8814-quiet@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. In-Reply-To: References: Nicolas Lichtmaier writes ("Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled."): ... > $ l /etc/cron.weekly/man* > -rwxr-xr-x 1 root root 148 Mar 31 1996 /etc/cron.weekly/man* > -rwxr-xr-x 1 root root 255 Feb 26 15:08 /etc/cron.weekly/man-db* ... > rc man 2.3.10-18 Display the on-line manual. > ii man-db 2.3.10-33 Display the on-line manual. > > When a package is removed (not purged) it removes itself from rc scripts, > and from places like that. However, executable conffiles executed by > run-parts are still executed. dpkg can chmod -x file or something... > This can turn into annoying behaviours... in this example, the catpages > would be created twice! I think that dealing with this is the responsibility of the package which creates the /etc/cron.*/ script, not of dpkg, just as packages which provide /etc/rc*.d/ scripts should check whether they are still installed. Who is our policy manual editor ? Can this please be mentioned in the policy manual ? Thanks, Ian.   Acknowledgement sent to =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>:
Extra info received and filed, but not forwarded.   =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814-quiet) by bugs.debian.org; 13 May 1997 02:19:28 +0000 Received: (qmail 32645 invoked from network); 13 May 1997 02:19:26 -0000 Received: from unknown (HELO zaratustra.feedback.com.ar) (root@200.5.76.7) by master.debian.org with SMTP; 13 May 1997 02:19:25 -0000 Received: from newton (root@dialup3S0.Feedback.com.ar [200.5.76.111]) by zaratustra.feedback.com.ar (8.7.3/8.7.3) with ESMTP id WAA28656; Mon, 12 May 1997 22:29:52 -0300 Received: from localhost by newton with esmtp id m0wR5ut-000kFgC (Debian Smail-3.2 1996-Jul-4 #2); Mon, 12 May 1997 21:58:11 -0300 (ARST) Date: Mon, 12 May 1997 21:58:11 -0300 (ARST) From: =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= X-Sender: nick@localhost To: Ian Jackson cc: Debian developers list , 8814-quiet@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 11 May 1997, Ian Jackson wrote: > I think that dealing with this is the responsibility of the package > which creates the /etc/cron.*/ script, not of dpkg, just as packages > which provide /etc/rc*.d/ scripts should check whether they are still > installed. 1) There's no easy/fast way for a script to check the status of its package (grep through the whole status file?). 2) It would be needed to have this fixed in *lots* of packages, and many newly created packages may have this problem, or handle this in a buggy way. If it gets fixed in dpkg somehow.. well... no more trouble. --=20 Nicol=E1s Lichtmaier.- nick@feedback.com.ar   Acknowledgement sent to =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>:
Extra info received and filed, but not forwarded.   =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= <nick@Feedback.com.ar>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814-quiet) by bugs.debian.org; 13 May 1997 02:21:17 +0000 Received: (qmail 50 invoked from network); 13 May 1997 02:21:17 -0000 Received: from cartridge.i-connect.net (qmailr@206.190.143.12) by master.debian.org with SMTP; 13 May 1997 02:21:17 -0000 Received: (qmail 21327 invoked from network); 13 May 1997 02:21:13 -0000 Received: from unknown (HELO zaratustra.feedback.com.ar) (root@200.5.76.7) by cartridge.i-connect.net with SMTP; 13 May 1997 02:21:11 -0000 Received: from newton (root@dialup3S0.Feedback.com.ar [200.5.76.111]) by zaratustra.feedback.com.ar (8.7.3/8.7.3) with ESMTP id XAA31480; Mon, 12 May 1997 23:01:12 -0300 Received: from localhost by newton with esmtp id m0wR6nL-000kP2C (Debian Smail-3.2 1996-Jul-4 #2); Mon, 12 May 1997 22:54:27 -0300 (ARST) Date: Mon, 12 May 1997 22:54:26 -0300 (ARST) From: =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= X-Sender: nick@localhost To: Christian Hudon cc: Ian Jackson , Debian developers list , 8814-quiet@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. In-Reply-To: <19970512220507.11636@pianocktail.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 12 May 1997, Christian Hudon wrote: > What's wrong with inserting a=20 > test -x /usr/path/to/file/in/package/that/installs/cron/entry || exit 0 > at the top of the cron file? Just like we do with init.d files... Unless > I'm really missing something, this would fix all the problems. No need to > get dpkg involved. IMHO, this should be mandated by the policy manual, if > it isn't already... Ups.. you're right... This would fix most problems... and that is what should be done... But: Should scripts of deconfigured packages still be executed? The package may be conflicting with another one... --=20 Nicol=E1s Lichtmaier.- nick@feedback.com.ar   Acknowledgement sent to "Christian Hudon" <chudon@ee.mcgill.ca>:
Extra info received and filed, but not forwarded.   "Christian Hudon" <chudon@ee.mcgill.ca>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814-quiet) by bugs.debian.org; 13 May 1997 20:19:30 +0000 Received: (qmail 1310 invoked from network); 13 May 1997 20:19:28 -0000 Received: from ppp-5200-1624.mtl.total.net (HELO pianocktail.org) (207.139.113.38) by master.debian.org with SMTP; 13 May 1997 20:19:27 -0000 Received: (qmail 1979 invoked by uid 501); 13 May 1997 02:05:27 -0000 From: "Christian Hudon" Message-ID: <19970512220507.11636@pianocktail.org> Date: Mon, 12 May 1997 22:05:07 -0400 To: =?iso-8859-1?Q?Nicol=E1s_Lichtmaier?= Cc: Ian Jackson , Debian developers list , 8814-quiet@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. References: Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-md5; boundary=t7VIuEGZ6dlpu13q X-Mailer: Mutt 0.71 In-Reply-To: =?iso-8859-1?Q?=3CPine=2ELNX=2E3=2E96=2E970512215520=2E246D-100000=40loc?= =?iso-8859-1?Q?alhost=3E=3B_from_=22Nicol=E1s_Lichtmaier=22_on_Mon=2C_Ma?= =?iso-8859-1?Q?y_12=2C_1997_at_09=3A58=3A11PM_-0300?= --t7VIuEGZ6dlpu13q Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: Main Body On May 12, Nicol=E1s Lichtmaier wrote >=20 > 1) There's no easy/fast way for a script to check the status of its > package (grep through the whole status file?). >=20 > 2) It would be needed to have this fixed in *lots* of packages, and many > newly created packages may have this problem, or handle this in a buggy > way. If it gets fixed in dpkg somehow.. well... no more trouble. What's wrong with inserting a=20 test -x /usr/path/to/file/in/package/that/installs/cron/entry || exit 0 at the top of the cron file? Just like we do with init.d files... Unless I'm really missing something, this would fix all the problems. No need to get dpkg involved. IMHO, this should be mandated by the policy manual, if it isn't already... Christian --t7VIuEGZ6dlpu13q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.3i iQCVAwUBM3fMZo4/+LDuJkz5AQE1sQQApFc8XvBIrolVcT8/ZHCbBaXqDnpuwzUy OaMNhfpPWWUyDG2kFgIdqzAk4IeV7oR7p/I2/+XxveaQEMpXAtCSkH2cUfFDFZ7Q IcOgidOlsD/rwZZxat5vnjtk4FbbCgRP6Wa7qxlwFczS8PZ/Mz+3WaNS185MmKNe m7j6YUdzGHo= =4C4Y -----END PGP SIGNATURE----- --t7VIuEGZ6dlpu13q--   Acknowledgement sent to Christian Schwarz <schwarz@monet.m.isar.de>:
Extra info received and filed, but not forwarded.   Christian Schwarz <schwarz@monet.m.isar.de>  Sorry, this message was lost when this bug report was restored from a backup.   Received: (at 8814-quiet) by bugs.debian.org; 14 May 1997 12:51:15 +0000 Received: (qmail 14857 invoked from network); 14 May 1997 12:51:14 -0000 Received: from cartridge.i-connect.net (qmailr@206.190.143.12) by master.debian.org with SMTP; 14 May 1997 12:51:14 -0000 Received: (qmail 11727 invoked from network); 14 May 1997 12:51:13 -0000 Received: from nymphe.m.isar.de (root@193.141.69.3) by cartridge.i-connect.net with SMTP; 14 May 1997 12:51:11 -0000 Received: (from Umonet@localhost) by nymphe.m.isar.de (8.6.13/ny-1.1) with UUCP id OAA06153; Wed, 14 May 1997 14:45:57 +0200 Received: from klee.painters.net (schwarz@klee [10.1.1.8]) by monet.painters.net (8.8.5/8.8.5) with ESMTP id OAA08779; Wed, 14 May 1997 14:02:34 +0200 Received: from localhost (schwarz@localhost) by klee.painters.net (8.8.5/8.8.5) with SMTP id OAA03082; Wed, 14 May 1997 14:02:54 +0200 X-Authentication-Warning: klee.painters.net: schwarz owned process doing -bs Date: Wed, 14 May 1997 14:02:54 +0200 (CEST) From: Christian Schwarz X-Sender: schwarz@klee To: Ian Jackson cc: Debian developers list , 8814-quiet@bugs.debian.org Subject: Re: Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 11 May 1997, Ian Jackson wrote: > Nicolas Lichtmaier writes ("Bug#8814: dpkg: Executable conffiles in /etc/cron.*/ run even if package is deinstalled."): > ... > > $ l /etc/cron.weekly/man* > > -rwxr-xr-x 1 root root 148 Mar 31 1996 /etc/cron.weekly/man* > > -rwxr-xr-x 1 root root 255 Feb 26 15:08 /etc/cron.weekly/man-db* > ... > > rc man 2.3.10-18 Display the on-line manual. > > ii man-db 2.3.10-33 Display the on-line manual. > > > > When a package is removed (not purged) it removes itself from rc scripts, > > and from places like that. However, executable conffiles executed by > > run-parts are still executed. dpkg can chmod -x file or something... > > This can turn into annoying behaviours... in this example, the catpages > > would be created twice! > > I think that dealing with this is the responsibility of the package > which creates the /etc/cron.*/ script, not of dpkg, just as packages > which provide /etc/rc*.d/ scripts should check whether they are still > installed. > > Who is our policy manual editor ? Can this please be mentioned in the > policy manual ? That's me. I'll include it in the next release of the Policy Manual. Thanks, Chris -- Christian Schwarz schwarz@monet.m.isar.de, schwarz@schwarz-online.com, Debian is looking schwarz@debian.org, schwarz@mathematik.tu-muenchen.de for a logo! Have a look at our drafts PGP-fp: 8F 61 EB 6D CF 23 CA D7 34 05 14 5C C8 DC 22 BA at http://fatman.mathematik.tu-muenchen.de/~schwarz/debian-logo/   Reply sent to Christian Schwarz <schwarz@monet.m.isar.de>:
You have taken responsibility.   Christian Schwarz <schwarz@monet.m.isar.de>  Sorry, this message was lost when this bug report was restored from a backup.   Done: Christian Schwarz <schwarz@monet.m.isar.de>; Maintainer for dpkg is Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>.

Message received at 8814-done@bugs.debian.org:


Received: (at 8814-done) by bugs.debian.org; 13 Jul 1997 12:56:31 +0000
Received: (qmail 11832 invoked from network); 13 Jul 1997 12:56:29 -0000
Received: from nymphe.m.isar.de (root@193.141.69.3)
  by master.debian.org with SMTP; 13 Jul 1997 12:56:27 -0000
Received: (from Umonet@localhost) by nymphe.m.isar.de (8.6.13/ny-1.1) with UUCP id OAA23613; Sun, 13 Jul 1997 14:56:20 +0200
Received: from klee.painters.net (schwarz@klee [10.1.1.8])
	by monet.painters.net (8.8.5/8.8.5) with ESMTP id OAA31363;
	Sun, 13 Jul 1997 14:52:01 +0200
Received: from localhost (schwarz@localhost)
	by klee.painters.net (8.8.5/8.8.5) with SMTP id OAA10116;
	Sun, 13 Jul 1997 14:51:36 +0200
X-Authentication-Warning: klee.painters.net: schwarz owned process doing -bs
Date: Sun, 13 Jul 1997 14:51:36 +0200 (CEST)
From: Christian Schwarz <schwarz@monet.m.isar.de>
X-Sender: schwarz@klee
To: 9793-done@bugs.debian.org, 7257-done@bugs.debian.org,
        9024-done@bugs.debian.org, 11008-done@bugs.debian.org,
        8814-done@bugs.debian.org, 7129-done@bugs.debian.org,
        2717-done@bugs.debian.org, 10676-done@bugs.debian.org
Subject: bug fixed
Message-ID: <Pine.LNX.3.96.970713144819.9911R-100000@klee>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I just released version 2.2.0.0 of the Debian Policy Manual. This should
fix this bug, so I close the bug report now.


Thanks,

Chris

--                  Christian Schwarz
                   schwarz@monet.m.isar.de, schwarz@schwarz-online.com
                  schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
                       
                PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
              
 CS Software goes online! Visit our new home page at
 	                                     http://www.schwarz-online.com



Notification sent to Nicolas Lichtmaier <nick@Feedback.com.ar>:
Bug acknowledged by developer.   Nicolas Lichtmaier <nick@Feedback.com.ar>  Sorry, this message was lost when this bug report was restored from a backup.