[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#196158: portability in s-s-d



On Wed, Oct 29, 2003 at 04:14:56PM +0100, Robert Millan wrote:
> retitle 196158 [ARCH] portability in start-stop-daemon
> thanks
> 
> Hi!
> 
> I had a look at getting s-s-d properly ported for freebsd-i386, but I'm
> getting into trouble due to the way portability is handled in s-s-d.

Yes. I started splitting it into separate files, with a view towards
untangling the mess. Unfortunately, I didn't finish.

> In our case, we want FreeBSD-style /procfs, but the C library is Glibc. So
> if we match the generic FreeBSD rule that brings us BSD libc headers (and
> specific functions) which we don't have.

Actually, using /proc on FreeBSD isn't a very good idea, since procfs is
deprecated, and rumour has it will eventually go away. FreeBSD folks
evidently believe /proc is a security hazard. That's why it isn't
mounted by default, and isn't used by anything in the standard FreeBSD
userland.

Problem is, the alternatives, sysctl or libkvm, both make use of binary
interfaces, and that introduces some major headaches. The best approach
I've been able to think of is to move the pid_is_* functionality into a
library, at least for freebsd-i386.  That way kernel upgrades won't
require recompiling dpkg every so often... We'd have to fix the library,
but that's not quite so obnoxious.

> I'm thinking on rewriting the portability detection in S-S-D for using
> autoconf checks and detecting each feature specificaly. If you want, I
> can do that and send a patch. I understand that this could possibly
> break things, so I'd rather wait untill the Sarge release is finished.

Good idea.

> In the meantime, please apply my other patch for triplet handling:
> 
>   #211566: dpkg: triplet fixes for "freebsd-i386"

Does this patch handle wildcards? i386-freebsd5.0-gnu and the like are
going to be a problem. I'd look at your patch, but bts looks down.

> -- 
> Robert Millan
> 
> "[..] but the delight and pride of Aule is in the deed of making, and in the
> thing made, and neither in possession nor in his own mastery; wherefore he
> gives and hoards not, and is free from care, passing ever on to some new work."
> 
>  -- J.R.R.T, Ainulindale (Silmarillion)
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: