Package: jcc Version: 2.21-1.1 Severity: normal Tags: patch Usertags: kfreebsd
Please include followed patch to build jcc for kfreebsd. I've verified that produced jcc package is able to build pylucene. -- System Information: Debian Release: stretch/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.7.0+ (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages jcc depends on: ii default-jdk [java7-sdk] 2:1.8-57 ii libc6 2.23-4 ii libgcc1 1:6.1.1-11 ii libstdc++6 6.1.1-11 ii openjdk-8-jdk [java7-sdk] 8u102-b14.1-2 ii python 2.7.11-2 jcc recommends no packages. jcc suggests no packages. -- no debconf information -- WBR, Dmitry
Description: Add support for kfreebsd arches Author: Dmitry Nezhevenko <[email protected]> Last-Update: 2016-08-11 --- jcc-2.21.orig/setup.py +++ jcc-2.21/setup.py @@ -19,6 +19,8 @@ if machine.startswith("iPod") or machine platform = 'ipod' elif sys.platform == "win32" and "--compiler=mingw32" in sys.argv: platform = 'mingw32' +elif sys.platform.startswith('gnukfreebsd'): + platform = 'gnukfreebsd' else: platform = sys.platform.split('-')[0] @@ -58,7 +60,8 @@ JDK = { 'sunos5': '/usr/jdk/instances/jdk1.6.0', 'win32': JAVAHOME, 'mingw32': JAVAHOME, - 'freebsd7': '/usr/local/diablo-jdk1.6.0' + 'freebsd7': '/usr/local/diablo-jdk1.6.0', + 'gnukfreebsd': JAVAHOME, } if 'JCC_JDK' in os.environ: JDK[platform] = os.environ['JCC_JDK'] @@ -98,6 +101,8 @@ INCLUDES = { '%(mingw32)s/include/win32' %(JDK)], 'freebsd7': ['%(freebsd7)s/include' %(JDK), '%(freebsd7)s/include/freebsd' %(JDK)], + 'gnukfreebsd': ['%(gnukfreebsd)s/include' %(JDK), + '%(gnukfreebsd)s/include/bsd' %(JDK)], } CFLAGS = { @@ -109,6 +114,7 @@ CFLAGS = { 'win32': ["/EHsc", "/D_CRT_SECURE_NO_WARNINGS"], # MSVC 9 (2008) 'mingw32': ['-fno-strict-aliasing', '-Wno-write-strings'], 'freebsd7': ['-fno-strict-aliasing', '-Wno-write-strings'], + 'gnukfreebsd': ['-fno-strict-aliasing', '-Wno-write-strings'], } # added to CFLAGS when JCC is invoked with --debug @@ -120,6 +126,7 @@ DEBUG_CFLAGS = { 'win32': ['/Od', '/DDEBUG'], 'mingw32': ['-O0', '-g', '-DDEBUG'], 'freebsd7': ['-O0', '-g', '-DDEBUG'], + 'gnukfreebsd': ['-O0', '-g', '-DDEBUG'], } LFLAGS = { @@ -175,6 +182,7 @@ JAVAC = { 'win32': ['%(win32)s/bin/javac.exe' %(JDK)], 'mingw32': ['%(mingw32)s/bin/javac.exe' %(JDK)], 'freebsd7': ['javac'], + 'gnukfreebsd': ['javac'], } JAVADOC = { @@ -185,6 +193,7 @@ JAVADOC = { 'win32': ['%(win32)s/bin/javadoc.exe' %(JDK)], 'mingw32': ['%(mingw32)s/bin/javadoc.exe' %(JDK)], 'freebsd7': ['javadoc'], + 'gnukfreebsd': ['javadoc'], } try:

