Package: boost Version: 1.32.0+1.33.0-cvs20050727 Severity: important Tags: patch
Hi, boost used to compile on GNU/kFreeBSD, the OS variable being set to UNKNOWN. Unfortunately, this has changed with the newest version. Therefore, please find attached patch to add proper support for this OS. Could you apply it in then next upload? It would also be nice if you can forward it to the upstream. Thanks for your cooperation, Aurelien -- System Information: Debian Release: testing/unstable Architecture: kfreebsd-i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: GNU/kFreeBSD 5.3-17 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- boost-1.32.0+1.33.0-cvs20050727.orig/tools/build/v1/allyourbase.jam +++ boost-1.32.0+1.33.0-cvs20050727/tools/build/v1/allyourbase.jam @@ -344,6 +344,9 @@ case IRIX : RANLIB ?= "" ; + + case KFREEBSD : + CLONE ?= cp -fpd ; case LINUX : CLONE ?= cp -fpd ; --- boost-1.32.0+1.33.0-cvs20050727.orig/tools/build/v1/gcc-tools.jam +++ boost-1.32.0+1.33.0-cvs20050727/tools/build/v1/gcc-tools.jam @@ -416,7 +416,7 @@ LNOPT on $(<) = "" ; } # do we use sonames or not? - if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN) + if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD || $(OS) = KFREEBSD ) && ! $(NO_GNU_LN) { OUTTAG on $(<) = ".$(DLLVERSION)" ; SOTAG on $(<) = ".$(DLLVERSION)" ; @@ -462,7 +462,7 @@ gcc-spawn $(<) ; gcc-Link-action $(<) : $(>) ; - if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD ) && ! $(NO_GNU_LN) + if $(DLLVERSION) && $(TARGET_TYPE) in $(SHARED_TYPES) && ( $(OS) = LINUX || $(OS) = OPENBSD || $(OS) = KFREEBSD ) && ! $(NO_GNU_LN) { return "$(<[1]).$(DLLVERSION)" ; } --- boost-1.32.0+1.33.0-cvs20050727.orig/tools/build/v2/tools/rc.jam +++ boost-1.32.0+1.33.0-cvs20050727/tools/build/v2/tools/rc.jam @@ -28,6 +28,8 @@ create-empty-object $(target) : $(sources[1]) ; case "SOLARIS" : create-empty-object $(target) : $(sources[1]) ; + case "KFREEBSD" : + create-empty-object $(target) : $(sources[1]) ; case "LINUX" : create-empty-object $(target) : $(sources[1]) ; case "*" : --- boost-1.32.0+1.33.0-cvs20050727.orig/tools/build/jam_src/jam.h +++ boost-1.32.0+1.33.0-cvs20050727/tools/build/jam_src/jam.h @@ -385,6 +385,10 @@ # define OS_OPENBSD # define unix # endif +# if defined (__FreeBSD_kernel__) && !defined(__FreeBSD__) +# define OSMINOR "OS=KFREEBSD" +# define OS_KFREEBSD +# endif # ifndef OSMINOR # define OSMINOR "OS=UNKNOWN" # endif --- boost-1.32.0+1.33.0-cvs20050727.orig/tools/build/jam_src/README +++ boost-1.32.0+1.33.0-cvs20050727/tools/build/jam_src/README @@ -87,6 +87,7 @@ SunOS4.1 SUNOS Ultrix 4.2 ULTRIX BeOS BEOS * + GNU/kFreeBSD KFREEBSD * requires editing Makefile