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

Bug#213503: glibc: some GNU/KNetBSD fixes



Package: glibc
Severity: wishlist

Ok, same for GNU/KNetBSD. Obviously it's the Glibc-based version otherwise
it wouldn't make much sense to fix the Glibc package =)

This patch includes a few minor fixes to support GNU/KNetBSD in
the files specific to the Debian package. NetBSD's kernel (KNetBSD)
is not supported in upstream sources though (and won't be for a long time).

A note on debian/sysdeps/soname.mk. I moved the non-Linux-based systems out
of the main ifeq branch into system-specific sections. This way it improves
readability and only falls back to "libc6" for Linux-based systems.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.2.25 #1 Fri Jun 20 19:28:33 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

diff -Nur glibc-2.3.2.old/debian/sysdeps/knetbsd-gnu.mk glibc-2.3.2/debian/sysdeps/knetbsd-gnu.mk
--- glibc-2.3.2.old/debian/sysdeps/knetbsd-gnu.mk	1970-01-01 00:00:00.000000000 +0000
+++ glibc-2.3.2/debian/sysdeps/knetbsd-gnu.mk	2003-09-30 23:50:55.000000000 +0000
@@ -0,0 +1,5 @@
+threads = no
+config-os = knetbsd-gnu
+add-ons = 
+NO_TEST = yes
+extra_config_options := 
diff -Nur glibc-2.3.2.old/debian/sysdeps/soname.mk glibc-2.3.2/debian/sysdeps/soname.mk
--- glibc-2.3.2.old/debian/sysdeps/soname.mk	2003-09-30 23:49:48.000000000 +0000
+++ glibc-2.3.2/debian/sysdeps/soname.mk	2003-09-30 23:55:14.000000000 +0000
@@ -1,19 +1,20 @@
-# alpha-linux uses 6.1 as libc's soname
-ifeq ($(DEB_HOST_GNU_TYPE),alpha-linux)
-  libc = libc6.1
-else
-  ifeq ($(DEB_HOST_GNU_TYPE),ia64-linux)
+ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+  ifeq ($(DEB_HOST_GNU_CPU),alpha)
     libc = libc6.1
   else
-    # libc0.3 for hurd
-    ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
-      libc = libc0.3
+    ifeq ($(DEB_HOST_GNU_CPU),ia64)
+      libc = libc6.1
     else
-      ifeq ($(DEB_HOST_GNU_SYSTEM),kfreebsd-gnu)
-        libc = libc1
-      else
-        libc = libc6
-      endif
+      libc = libc6
     endif
   endif
 endif
+ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
+  libc = libc0.3
+endif
+ifeq ($(DEB_HOST_GNU_SYSTEM),kfreebsd-gnu)
+  libc = libc1
+endif
+ifeq ($(DEB_HOST_GNU_SYSTEM),knetbsd-gnu)
+  libc = libc1
+endif

Reply to: