Package: pyfltk
Version: 1.1.4-2
Severity: serious
Tags: patch
Justification: FTBFS
User: [email protected]
Usertags: kfreebsd
Hi,
your package FTBFS on various archs, including Linux ones. The reason is
that some are 'linux2-*', rather than 'linux2'. The attached patch also
fixes the FTBFS on GNU/kFreeBSD.
Your package should also fail earlier, at the dh_auto_build step.
Mraw,
KiBi.
--- a/setup.py
+++ b/setup.py
@@ -76,8 +76,8 @@ elif sys.platform == 'win32' and is_msys
lib_dir_list = [fltk_lib_dir]
lib_list = ["fltk", "kernel32", "user32", "gdi32", "winspool", "comdlg32", "Comctl32", "advapi32", "shell32", "oleaut32", "odbc32", "odbccp32", "stdc++", "msvcr71"]
#link_arg_list=["-Wl,--enable-runtime-pseudo-reloc", "-Wl,--enable-auto-import"]
-elif sys.platform == 'linux2':
- print "Building for Linux"
+elif sys.platform.startswith('linux2') or sys.platform.startswith('gnukfreebsd'):
+ print "Building for Linux (or GNU/kFreeBSD)"
# ugly hack to force distutils to use g++ instead of gcc for linking
from distutils import sysconfig
# changes the linker from gcc to g++