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

Bug#266268: Depend on libsem-dev for !linux-gnu



At Wed, 18 Aug 2004 02:40:13 +0200,
Robert Millan wrote:
> On Wed, Aug 18, 2004 at 09:31:59AM +0900, GOTO Masanori wrote:
> > At Tue, 17 Aug 2004 11:47:06 +0200,
> > >      push @{$libc_dev_c{'Depends'}}, 'linux-kernel-headers';
> > > +} else {
> > > +    push @{$libc_dev_c{'Depends'}}, 'libsem-dev';
> > 
> > Apparently this patch is broken.  This enclosure is for
> > $DEB_HOST_GNU_SYSTEM=linux.  "(not linux) != (hurd || bsd)".
> > Please describe which $DEB_HOST_GNU_SYSTEM do you want to add it.
> 
> This is what I intended.  See the note in my previous mail:
> 
>  "(Note: linux-gnu is the exception here, not the rule.  New Glibc-based ports
>  don't necessarily include semaphores in them since none of the internal libc
>  interfaces rely on these, and in fact all new Glibc ports to the date are
>  semaphore-less.)"
> 
> If you disagree, adding it explicitly like you suggest would be fine either
> (I don't feel like discussing whether future ports of Glibc will include
> semaphores or not =).

In first, POSIX 1003.1b semaphore is coupled with pthread, but is not
same as "pthread semaphore".  It provides name space accessible
semaphore with the bonus that is userland fast locking mechanism.

I disagree because semaphore and threading implementation depends on
the system architecture.  I know there're some generic implementation
for both semaphore and pthread, so libsem-dev is not "the only one"
choise.  Thus, I think we should explicitly define which architecture
use libsem-dev.

> So the DEB_HOST_GNU_SYSTEM values that should enable this are "gnu",
> "kfreebsd-gnu" and "knetbsd-gnu".  More could be added later.

Robert, please provide patch?

BTW, I think it's valuable to add generic implementation of posix
semaphore into glibc.

Regards,
-- gotom



Reply to: