Re: RETRACTED msql 2.0.3-4

1998-06-15 Thread Remco Blaakmeer
On Mon, 15 Jun 1998, Santiago Vila wrote:

> -BEGIN PGP SIGNED MESSAGE-
> 
> On 14 Jun 1998, Guy Maor wrote:
> 
> > passwd is required and that is enough.  You can assume that all
> > required packages are always on the system.
> 
> I disagree. Since you are able to remove a required-but-non-essential
> package and dpkg does not complain, required-but-non-essential packages
> are not guaranteed to be always on the system.

Yes, I think you are right.

> > So it's fine if the preinst just calls useradd without any checks or
> > predependencies.
> 
> I thought that only the essential flag allows a Dependency or
> Predependency to be missing. Is this a bug in the policy manual?

It might be a bug in Guy's interpretation of the policy manual. :-)

Remco


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



Re: RETRACTED msql 2.0.3-4

1998-06-15 Thread Santiago Vila
-BEGIN PGP SIGNED MESSAGE-

On 14 Jun 1998, Guy Maor wrote:

> passwd is required and that is enough.  You can assume that all
> required packages are always on the system.

I disagree. Since you are able to remove a required-but-non-essential
package and dpkg does not complain, required-but-non-essential packages
are not guaranteed to be always on the system.

> So it's fine if the preinst just calls useradd without any checks or
> predependencies.

I thought that only the essential flag allows a Dependency or
Predependency to be missing. Is this a bug in the policy manual?

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: latin1

iQCVAgUBNYTnzSqK7IlOjMLFAQFgYwQAjc0kNIf+fSFe7LZ1A9UWk0TXbHqKTSq0
H2c9tvG1C7vZ6VMIviSQN796L005lNCYaWXEyA0oMGKHNx4T5gTErkse+44NRMfa
QRYPIf95/dRcZV589GP2hh0q+iPQROk9f6bmQ6FFDwXkax4/kO5z1fHxh9hFMfoe
h0fKtm51W90=
=S1g0
-END PGP SIGNATURE-


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



Re: RETRACTED msql 2.0.3-4

1998-06-14 Thread Guy Maor
James Troup <[EMAIL PROTECTED]> writes:

> My original objection was going to be base around the fact that passwd
> is Essential, but it turns out it isn't, my bad.  I'd hate to be part
> of the current `Let's make foo Essential: yes and part of the base
> system, in fact let's make it the kernel' trend, but wouldn't it make
> some sense to make passwd Essential as it is the only sane way for
> maintainer scripts to add/remove/toy with users?

passwd is required and that is enough.  You can assume that all
required packages are always on the system.  Essential packages are
the subset of required that if you remove them, you won't even be able
to put them back.

So it's fine if the preinst just calls useradd without any checks or
predependencies.


Guy


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



Re: RETRACTED msql 2.0.3-4

1998-06-10 Thread Martin Schulze
On Wed, Jun 10, 1998 at 07:49:48AM +0200, Scott Hanson wrote:

> > > The problem is that the _preinst_ might use the programs useradd and
> > > groupadd.  These are not in the base system nor essential.  They're
> > > included in the passwd package.  They might use configuration files
> > > that might not be configured when using a normal Dependency.
> > > 
> > > Is there another way to solve this?  
> > 
> > As I haven't received an appropriate alternative, may I move the
> > files out of the REJECT directory and back into the Incoming?
> > 
> 
> I'll soon be implementing a user for mysql-server... if noone has any
> better ideas, I'll implement a similar pre-dependency to that Joey is
> using for msql.

That spoken, I'm moving the files back into the Incoming directory.

Regards,

Joey

-- 
  / Martin Schulze  *  [EMAIL PROTECTED]  *  26129 Oldenburg /
 / Beware of bugs in the above code; I have only /
/  proved it correct, not tried it.  -- Donald E. Knuth /


pgpCJ7B6q7o03.pgp
Description: PGP signature


Re: RETRACTED msql 2.0.3-4

1998-06-10 Thread Scott Hanson

Martin Schulze <[EMAIL PROTECTED]> writes:
> On Mon, Jun 08, 1998 at 12:55:53PM +0200, Martin Schulze wrote:
---snip--- 
> > The problem is that the _preinst_ might use the programs useradd and
> > groupadd.  These are not in the base system nor essential.  They're
> > included in the passwd package.  They might use configuration files
> > that might not be configured when using a normal Dependency.
> > 
> > Is there another way to solve this?  
> 
> As I haven't received an appropriate alternative, may I move the
> files out of the REJECT directory and back into the Incoming?
> 

I'll soon be implementing a user for mysql-server... if noone has any
better ideas, I'll implement a similar pre-dependency to that Joey is
using for msql.

Scott

-- 
Scott Hanson <[EMAIL PROTECTED]>  <[EMAIL PROTECTED]>
Johmsweg 9, D-21266 Jesteburg, Germany


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



Re: RETRACTED msql 2.0.3-4

1998-06-09 Thread Martin Schulze
On Mon, Jun 08, 1998 at 12:55:53PM +0200, Martin Schulze wrote:
> I have moved msql 2.0.3-4 into Incoming/REJECT
> 
> - Forwarded message from James Troup <[EMAIL PROTECTED]> -
> 
> [EMAIL PROTECTED] (Martin Schulze) writes:
> 
> >* Added pre-dependency for passwd to msqld as its tools are used
> >  in the preinst.
> 
> You're meant to obtain a consensus on debian-devel before doing this
> (Policy 2.3.4).
> 
> -- 
> James
> ~Yawn And Walk North~
> 
> - End forwarded message -
> 
> Does anybody object?
> 
> The problem is that the _preinst_ might use the programs useradd and
> groupadd.  These are not in the base system nor essential.  They're
> included in the passwd package.  They might use configuration files
> that might not be configured when using a normal Dependency.
> 
> Is there another way to solve this?  

As I haven't received an appropriate alternative, may I move the
files out of the REJECT directory and back into the Incoming?

Regards,

Joey

-- 
  / Martin Schulze  *  [EMAIL PROTECTED]  *  26129 Oldenburg /
 /  No question is too silly to ask, /
/   but, of course, some are too silly to answer.  -- perl book /


pgpW5itkmkqaM.pgp
Description: PGP signature


Re: RETRACTED msql 2.0.3-4

1998-06-08 Thread Martin Schulze
On Mon, Jun 08, 1998 at 02:26:09PM +0200, Richard Braakman wrote:
> Martin Schulze wrote:
> > The problem is that the _preinst_ might use the programs useradd and
> > groupadd.
> 
> Why not do it in the postinst, at configure time?  Then a normal
> dependency is enough.

Because the uid should be present when the packge gets unpackaged.

> If the user or group does not exist on the system, dpkg will use the
> numeric IDs instead.

which could also be used by another id - btw. common situation
some time ago, dunno if it's still the case.

Regards,

Joey

-- 
  / Martin Schulze  *  [EMAIL PROTECTED]  *  26129 Oldenburg /
 / http://home.pages.de/~joey/
/ The only stupid question is the unasked one   /


pgpNe0MYZPOWJ.pgp
Description: PGP signature


Re: RETRACTED msql 2.0.3-4

1998-06-08 Thread Richard Braakman
Martin Schulze wrote:
> The problem is that the _preinst_ might use the programs useradd and
> groupadd.

Why not do it in the postinst, at configure time?  Then a normal
dependency is enough.

If the user or group does not exist on the system, dpkg will use the
numeric IDs instead.

Richard Braakman


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



Re: RETRACTED msql 2.0.3-4

1998-06-08 Thread Martin Schulze
On Mon, Jun 08, 1998 at 12:17:52PM +0100, James Troup wrote:
> Martin Schulze <[EMAIL PROTECTED]> writes:
> 
> > >* Added pre-dependency for passwd to msqld as its tools are used
> > >  in the preinst.
> >
> > Does anybody object?
> 
> My original objection was going to be base around the fact that passwd
> is Essential, but it turns out it isn't, my bad.  I'd hate to be part
> of the current `Let's make foo Essential: yes and part of the base
> system, in fact let's make it the kernel' trend, but wouldn't it make
> some sense to make passwd Essential as it is the only sane way for
> maintainer scripts to add/remove/toy with users?

Seconded.

> > The problem is that the _preinst_ might use the programs useradd and
> > groupadd.  These are not in the base system nor essential.
> 
> No, they _are_ part of the base system and they _are_ Priority:
> Required.

Hmm, you're right.  Now I see them.  Dunno why I missed this.

> > Is there another way to solve this?
> 
> Possibly not.

*ponder*  Being part of the base system is sufficient, isn't it?

Well, still s/o could remove the package, then you're lost...

Regards,

Joey

-- 
  / Martin Schulze  *  [EMAIL PROTECTED]  *  26129 Oldenburg /
 / http://home.pages.de/~joey/
/ The only stupid question is the unasked one   /


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



Re: RETRACTED msql 2.0.3-4

1998-06-08 Thread James Troup
Martin Schulze <[EMAIL PROTECTED]> writes:

> >* Added pre-dependency for passwd to msqld as its tools are used
> >  in the preinst.
>
> Does anybody object?

My original objection was going to be base around the fact that passwd
is Essential, but it turns out it isn't, my bad.  I'd hate to be part
of the current `Let's make foo Essential: yes and part of the base
system, in fact let's make it the kernel' trend, but wouldn't it make
some sense to make passwd Essential as it is the only sane way for
maintainer scripts to add/remove/toy with users?
 
> The problem is that the _preinst_ might use the programs useradd and
> groupadd.  These are not in the base system nor essential.

No, they _are_ part of the base system and they _are_ Priority:
Required.

> Is there another way to solve this?

Possibly not.

-- 
James
~Yawn And Walk North~


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



Re: RETRACTED msql 2.0.3-4

1998-06-08 Thread Santiago Vila
-BEGIN PGP SIGNED MESSAGE-

On Mon, 8 Jun 1998, Martin Schulze wrote:

> [...]
> Does anybody object?
> 
> The problem is that the _preinst_ might use the programs useradd and
> groupadd.  These are not in the base system nor essential.  They're
> included in the passwd package.  They might use configuration files
> that might not be configured when using a normal Dependency.
> 
> Is there another way to solve this?

Maybe there is another way: preinst could do a check to see whether the
programs and/or configuration files it needs are available or not and exit
with an error if that is not the case.

However, this would have almost exactly the same effect than a
Pre-Dependency (dpkg receives an error and it does not install the
package).

Perhaps the difference is that if you add a Pre-Depends, apt and
pkg-order will benefit from it, since they follow the optimal order, but
if the Pre-Dependency is done "by hand" in the preinst, they will
not benefit.

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: latin1

iQCVAgUBNXvGpiqK7IlOjMLFAQE80gP/bfU3g3Cb0cGCdR2dYf4VJuUf5VPeu8AM
CWdW1GN4A5ONOlQGiN1IcAoDL+4uS4nK0/tGqtuMjSkjxcqHeokA+1iX62G2r9qQ
Fo2yB2+p63M0xJI5FYHhbaE8IELxgrmXTUiwtGnRB+Uh7Cveaquzx9lHMroRzTNw
Xf4hhrzzTDA=
=RVsC
-END PGP SIGNATURE-


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



RETRACTED msql 2.0.3-4

1998-06-08 Thread Martin Schulze
I have moved msql 2.0.3-4 into Incoming/REJECT

- Forwarded message from James Troup <[EMAIL PROTECTED]> -

[EMAIL PROTECTED] (Martin Schulze) writes:

>* Added pre-dependency for passwd to msqld as its tools are used
>  in the preinst.

You're meant to obtain a consensus on debian-devel before doing this
(Policy 2.3.4).

-- 
James
~Yawn And Walk North~

- End forwarded message -

Does anybody object?

The problem is that the _preinst_ might use the programs useradd and
groupadd.  These are not in the base system nor essential.  They're
included in the passwd package.  They might use configuration files
that might not be configured when using a normal Dependency.

Is there another way to solve this?  

Regards,

Joey

-- 
  / Martin Schulze  *  [EMAIL PROTECTED]  *  26129 Oldenburg /
 / http://home.pages.de/~joey/
/ The only stupid question is the unasked one   /


pgpKhfRlSAdTc.pgp
Description: PGP signature