Bug#409907: Installing lpr over lprng doesn't work

2007-02-09 Thread Craig Small
On Thu, Feb 08, 2007 at 09:36:43AM -0600, Adam Majer wrote:
 Martin Schulze wrote:
  I can't see a way of lprng postinst saying 'oh lpr is being installed'
  and not deleting the directory.
  
  I feared that...
  
  Maybe lprng postinst can check when it's going from rc to purge
  and lpr is installed not to wipe the spool directory?
 
 And vice-versa? :) Although then the permissions would be wrong on the
 spool and need to be fixed by lprng (I didn't check if lprng already
 does that)
I'll also check to see how hard it is just to use a proper lprng
spool directory.  There is a new upstream so now is probably the time to
do it.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/  MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-09 Thread Martin Schulze
Craig Small wrote:
 On Thu, Feb 08, 2007 at 09:36:43AM -0600, Adam Majer wrote:
  Martin Schulze wrote:
   I can't see a way of lprng postinst saying 'oh lpr is being installed'
   and not deleting the directory.
   
   I feared that...
   
   Maybe lprng postinst can check when it's going from rc to purge
   and lpr is installed not to wipe the spool directory?
  
  And vice-versa? :) Although then the permissions would be wrong on the
  spool and need to be fixed by lprng (I didn't check if lprng already
  does that)
 I'll also check to see how hard it is just to use a proper lprng
 spool directory.  There is a new upstream so now is probably the time to
 do it.

Thanks!

Regards,

Joey

-- 
Open source is important from a technical angle. -- Linus Torvalds

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-08 Thread Adam Majer
Martin Schulze wrote:
 I can't see a way of lprng postinst saying 'oh lpr is being installed'
 and not deleting the directory.
 
 I feared that...
 
 Maybe lprng postinst can check when it's going from rc to purge
 and lpr is installed not to wipe the spool directory?

And vice-versa? :) Although then the permissions would be wrong on the
spool and need to be fixed by lprng (I didn't check if lprng already
does that)

- Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-07 Thread Craig Small
On Wed, Feb 07, 2007 at 07:36:47AM +0100, Martin Schulze wrote:
 Purge means purge, but it shouldnt purge files/directories now owned
 by another package.  lpr/lprng are a special case I guess.

Hmm, yes I see the problem now.
So either lprng has to orphan the spool directory, in other words
it will be there if you purge lprng and do not install anything or
we get your problem described in this bug report.

I can't see a way of lprng postinst saying 'oh lpr is being installed'
and not deleting the directory.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/  MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-07 Thread Adam Majer
Craig Small wrote:
 On Wed, Feb 07, 2007 at 07:36:47AM +0100, Martin Schulze wrote:
 Purge means purge, but it shouldnt purge files/directories now owned
 by another package.  lpr/lprng are a special case I guess.
 
 Hmm, yes I see the problem now.
 So either lprng has to orphan the spool directory, in other words
 it will be there if you purge lprng and do not install anything or
 we get your problem described in this bug report.
 
 I can't see a way of lprng postinst saying 'oh lpr is being installed'
 and not deleting the directory.


One way is to have a question in the postrm on purge to check if the
directory should be removed.

I'm not sure what the best way is. I guess lpr should use /var/spool/lpr
and lprng should use /var/spool/lprng. The current state of things is
more legacy than anything. After all, no other programs should be
messing with the spool directories anyway. Messy solution, but fixes the
current problem.

- Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-07 Thread Martin Schulze
Craig Small wrote:
 On Wed, Feb 07, 2007 at 07:36:47AM +0100, Martin Schulze wrote:
  Purge means purge, but it shouldnt purge files/directories now owned
  by another package.  lpr/lprng are a special case I guess.
 
 Hmm, yes I see the problem now.
 So either lprng has to orphan the spool directory, in other words
 it will be there if you purge lprng and do not install anything or
 we get your problem described in this bug report.
 
 I can't see a way of lprng postinst saying 'oh lpr is being installed'
 and not deleting the directory.

I feared that...

Maybe lprng postinst can check when it's going from rc to purge
and lpr is installed not to wipe the spool directory?

Regards,

Joey

-- 
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect.

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-06 Thread Martin Schulze
Package: lpr, lprng
Version: 2006.11.04, 3.8.28dfsg.1-1
Severity: important

Installing lpr (by removing lprng) will leave you with no working lpr
package since /var/spool/lpd is owned daemon.lp with mode 700.  It
should've been lp.lp with mode 2775.

Purging lprng afterwards will remove /var/spool/lpd entirely, leaving
poor lpr without a spool directory at all.

I assume that there are two bugs (haven't checked the code, thus
writing only one bug report):

 1. lpr.postinst should check the permissions of /var/spool/lpd

 2. lprng.postrm should not remove /var/spool/lpd upon purge

Too bad, if only 2 is fixed, reinstalling lpr won't fix the underlying problem

Regards,

Joey

-- 
Still can't talk about what I can't talk about.  Sorry.  -- Bruce Schneier

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-06 Thread Craig Small
On Tue, Feb 06, 2007 at 10:19:51AM +0100, Martin Schulze wrote:
  2. lprng.postrm should not remove /var/spool/lpd upon purge

I cannot see the justification for this, purge means purge right?

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/  MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#409907: Installing lpr over lprng doesn't work

2007-02-06 Thread Martin Schulze
Craig Small wrote:
 On Tue, Feb 06, 2007 at 10:19:51AM +0100, Martin Schulze wrote:
   2. lprng.postrm should not remove /var/spool/lpd upon purge
 
 I cannot see the justification for this, purge means purge right?

Purge means purge, but it shouldnt purge files/directories now owned
by another package.  lpr/lprng are a special case I guess.

Regards,

Joey

-- 
Every use of Linux is a proper use of Linux.  -- Jon 'maddog' Hall

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]