Skip to content
Snippets Groups Projects
Commit 238d3c82 authored by gregor herrmann's avatar gregor herrmann
Browse files

debian/rules: don't build JNI extension on some architectures

where it seems to have problems.

Closes: #754755
parent 01f0932c
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,15 @@ CDBS_DEPENDS_$(pkg) = $(deps)
export JAVA_HOME=/usr/lib/jvm/default-java
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
NO_JNI_ARCH = hppa hurd-i386 mips mipsel
ifeq (,$(filter $(DEB_HOST_ARCH), $(NO_JNI_ARCH)))
# Have testsuite use JNI
export PERL_INLINE_JAVA_JNI=1
else
# Don't build JNI extension
DEB_MAKEMAKER_USER_FLAGS = BUILD_JNI=0
endif
# Put aside upstream cruft during build
DEB_UPSTREAM_CRUFT_MOVE = t/t13.txt
......@@ -58,6 +65,7 @@ DEB_UPSTREAM_CRUFT_MOVE = t/t13.txt
# Have testsuite use the C locale's decimal point
DEB_MAKE_CHECK_TARGET += LC_NUMERIC=C
ifeq (,$(filter $(DEB_HOST_ARCH), $(NO_JNI_ARCH)))
binary-post-install/$(pkg)::
chrpath -d $(cdbs_curdestdir)$(perlpath)/auto/Inline/Java/JNI/JNI.so
......@@ -67,3 +75,4 @@ binary-post-install/$(pkg)::
$(cdbs_curdestdir)$(perlpath)/Inline/Java/*.jar
dh_link usr/share/$(pkg)/InlineJavaServer.jar $(perlpath)/Inline/Java/InlineJavaServer.jar \
usr/share/$(pkg)/InlineJavaUser.jar $(perlpath)/Inline/Java/InlineJavaUser.jar
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment