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

Proposed patch to autotools-dev



I propose the following patch for autotools-dev; however, I would like to
get comments from the BSD folks, before filing a wishlist bug+patch. I'll
give it a few days, and if nobody strenuously objects, I'll file it in the
hopes that packages will pick it up soon.

I have attached the patch to this message; hopefully it should go through.
-- 
***************************************************************************
Joel Baker                           System Administrator - lightbearer.com
lucifer@lightbearer.com              http://users.lightbearer.com/lucifer/
Package: autotools-dev
Version: 20020621.1
Patch: 001_config_netbsd (config.{guess,sub} support for Debian/NetBSD)
Author: Joel Baker <joel@lightbearer.com>
Submitted: No

This patch adds support for the Debian/NetBSD family, using a release value
of '-debian' rather than an OS version; this field is suffixed to the OS
output, resulting in an OS of 'netbsdelf-debian'. It should be applied
against an unpacked autotools-dev directory, using -p1.

diff -urN autotools-dev-20020621.1.orig/config/config.guess autotools-dev-20020621.1/config/config.guess
--- autotools-dev-20020621.1.orig/config/config.guess	Mon Jul  1 12:16:39 2002
+++ autotools-dev-20020621.1/config/config.guess	Mon Sep  9 04:17:37 2002
@@ -168,7 +168,18 @@
 		;;
 	esac
 	# The OS release
-	release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+	# Debian GNU/NetBSD machines have a different userland, and thus, need
+	# a separate config target. However, they do not need kernel version
+	# information, so it can be replaced with a suitable tag, in the style
+	# of linux-gnu.
+	case "${UNAME_VERSION}" in
+	    Debian*)
+		release='-debian'
+		;;
+	    *)
+		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+		;;
+	esac
 	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
 	# contains redundant information, the shorter form:
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
diff -urN autotools-dev-20020621.1.orig/config/config.sub autotools-dev-20020621.1/config/config.sub
--- autotools-dev-20020621.1.orig/config/config.sub	Mon Jul  1 12:16:39 2002
+++ autotools-dev-20020621.1/config/config.sub	Sun Sep  8 22:18:42 2002
@@ -118,7 +118,7 @@
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
-  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
+  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova* | netbsdelf-debian*)
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;

Reply to: