Package: pacparser Version: 1.0.9-1 Severity: important Tags: patch User: debian-...@lists.debian.org Usertags: kfreebsd
Hi, your package FTBFS on GNU/kFreeBSD. The attached patch makes it build fine, faking the Linux case in the main Makefile, and matching gnukfreebsd* (the python strings for GNU/kFreeBSD) in setup.py. If upstream wants to write a different check for the main Makefile, uname -s returns “GNU/kFreeBSD”. Thanks for considering. Mraw, KiBi.
Index: pacparser-1.0.9/Makefile =================================================================== --- pacparser-1.0.9.orig/Makefile 2009-12-04 22:53:29.000000000 +0000 +++ pacparser-1.0.9/Makefile 2009-12-04 22:53:47.000000000 +0000 @@ -18,7 +18,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA -OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/)) +OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/ | sed 's,GNU/kFreeBSD,Linux,')) ifeq ($(OS_ARCH),Linux) SO_SUFFIX = so Index: pacparser-1.0.9/pymod/setup.py =================================================================== --- pacparser-1.0.9.orig/pymod/setup.py 2009-12-04 22:54:02.000000000 +0000 +++ pacparser-1.0.9/pymod/setup.py 2009-12-04 22:54:21.000000000 +0000 @@ -35,7 +35,7 @@ target = sys.argv[1] ver = sys.version[0:3] -if sys.platform.startswith("linux") or sys.platform == "darwin": +if sys.platform.startswith("linux") or sys.platform == "darwin" or sys.platform.startswith("gnukfreebsd"): os.system('make %s PY_VER="%s"' % (target, ver)) if sys.platform == 'win32':