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

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



Package: libc0.3-dev
Version: 2.3.2.ds1-16
Severity: important
Tags: patch sid

Hi,

libsem-dev, a library that implements pthread-based semaphores on !linux-gnu
ports, is now in the archive.

The functionality covered by libsem is equivalent to the semaphore api that
linuxthreads/nptl provide in Glibc for linux-gnu.  Therefore, on !linux-gnu
systems libc-dev should depend on libsem-dev so that libc-dev fits as a drop-in
replacement for libc6-dev.  This will make libsem-dev a de-facto build
essential.  Since packages out there already assume semaphores are part of the
build-essential suite, that should be ok.

(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.)

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.2.1-5
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)
--- glibc-2.3.2.ds1/debian/sysdeps/depflags.pl~	2004-08-17 09:39:02.000000000 +0200
+++ glibc-2.3.2.ds1/debian/sysdeps/depflags.pl	2004-08-17 11:39:24.000000000 +0200
@@ -35,6 +35,8 @@
     push @{$libc_dev_c{'Replaces'}}, ('man-db (<= 2.3.10-41)', 'gettext (<= 0.10.26-1)',
 		'ppp (<= 2.2.0f-24)', 'libgdbmg1-dev (<= 1.7.3-24)');
     push @{$libc_dev_c{'Depends'}}, 'linux-kernel-headers';
+} else {
+    push @{$libc_dev_c{'Depends'}}, 'libsem-dev';
 }
 
 # ${glibc}-doc is suggested by $libc_c and $libc_dev_c.

Reply to: