Bug#808175: jffi: FTBFS on non-Linux arches

Steven Chamberlain steven at pyro.eu.org
Wed Dec 16 19:08:34 UTC 2015


Package: jffi
Version: 1.2.7-8
Severity: wishlist
Tags: patch

Hi!

jffi FTBFS on arches other than Linux, for a couple of reasons, both
fixed in the attached patches.

nonlinux_endian_h.patch:

Include the system's <endian.h> for BYTE_ORDER definitions, not just on
Linux but on other platforms too.

nonlinux_platforms.patch:

debian/rules expects an output file called ../dist/jffi-*-Linux.jar,
its name basically determined by jffi-$(uname -m)-$(uname -s).jar
That is set by build.xml, not by jni/GNUmakefile.

On kfreebsd, $(uname -s) contains a forwardslash and this is not good
in filenames.  Since the naming is inconsequential anyway, just call it
jffi-*-Linux.jar even on kfreebsd on hurd.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonlinux_platforms.patch
Type: text/x-diff
Size: 679 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20151216/48bed6a5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonlinux_endian_h.patch
Type: text/x-diff
Size: 388 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20151216/48bed6a5/attachment-0001.patch>


More information about the pkg-java-maintainers mailing list