Package: viewmol
Version: 2.4.1-10
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> make[1]: Entering directory `/build/buildd/viewmol-2.4.1/source'
> /bin/sh getmachine viewmol
> getmachine: line 126: .config.GNU/kFreeBSD: No such file or directory
> getmachine: line 145: .config.GNU/kFreeBSD: No such file or directory
> getmachine: line 163: .config.GNU/kFreeBSD: No such file or directory
> getmachine: line 180: .config.GNU/kFreeBSD: No such file or directory
> getmachine: line 202: .config.GNU/kFreeBSD: No such file or directory
> getmachine: line 203: .config.GNU/kFreeBSD: No such file or directory
> dirname: extra operand `/usr/lib/python2.4/config/libpython2.4-pic.a'
> Try `dirname --help' for more information.
> getmachine: line 212: .config.GNU/kFreeBSD: No such file or directory
> Sorry, I don't know the operating system 'GNU/kFreeBSD'.
> Edit 'getmachine' to include the required options.
> make[1]: *** [viewmol] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=viewmol>.

Please find attached a patch to fix this, which allows your package to
build fine at least on GNU/kFreeBSD, and possibly on GNU(/Hurd) as well.

Cheers,

-- 
Cyril Brulebois
--- viewmol-2.4.1/source/getmachine     2007-03-20 17:07:15.000000000 +0100
+++ viewmol-2.4.1/source/getmachine     2007-03-20 17:07:16.000000000 +0100
@@ -92,6 +92,15 @@
 target=$1
 os=`uname -s`
 
+case $os in
+    GNU/k*BSD | GNU)
+       # GNU variants are treated like Linux
+        os=Linux
+    ;;
+    *)
+    ;;
+esac
+
 # Check, whether configuration file is up to date
 if [ -f .config.$os ]
 then
--- viewmol-2.4.1/source/install        2007-03-20 17:07:15.000000000 +0100
+++ viewmol-2.4.1/source/install        2007-03-20 17:07:16.000000000 +0100
@@ -40,6 +40,10 @@
   IRIX*)   dir="${os}_`hinv | awk '/CPU:/ {print $3}' | cut -d/ -f2`"
            dirorig="IRIX_R5000"
            ;;
+  GNU/k*BSD | GNU*)
+           dir=Linux
+           dirorig=Linux
+           ;;
   *)       dir="$os"
            dirorig="$os"
            ;;

Reply via email to