Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
3
support-jdk11.diff: Fix build with current JDK. (Closes: #899123)
· 4a428f8b
Timo Aaltonen
authored
Dec 06, 2018
4a428f8b
control, rules: Build with default jdk again.
· 09050779
Timo Aaltonen
authored
Dec 06, 2018
09050779
releasing package nuxwdog version 1.0.5-2
· 3410b6f3
Timo Aaltonen
authored
Dec 06, 2018
3410b6f3
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
3410b6f3
nuxwdog (1.0.5-2) unstable; urgency=medium
* support-jdk11.diff: Fix build with current JDK. (Closes: #899123)
* control, rules: Build with default jdk again.
-- Timo Aaltonen <tjaalton@debian.org> Thu, 06 Dec 2018 01:22:15 +0200
nuxwdog (1.0.5-1) unstable; urgency=medium
* New upstream release.
...
...
debian/control
View file @
3410b6f3
...
...
@@ -7,7 +7,7 @@ Build-Depends:
ant,
chrpath,
debhelper (>= 11),
openjdk-8
-jdk,
default
-jdk,
javahelper,
libkeyutils-dev,
libnspr4-dev,
...
...
debian/patches/fix-javac-path.diff
View file @
3410b6f3
...
...
@@ -7,7 +7,7 @@ index 86f06a2..5fab113 100644
],
[case $host in
*-*-linux*)
- javac_exe=`/usr/sbin/alternatives --display javac | grep link | cut -c27-`
- javac_exe=`/usr/sbin/alternatives --display javac | grep link |
head -n 1 |
cut -c27-`
+ javac_exe=`readlink -e /usr/bin/javac`
jni_path=`dirname $javac_exe`/../include
jni_inc="-I$jni_path -I$jni_path/linux"
...
...
debian/patches/series
View file @
3410b6f3
support-jdk11.diff
fix-javac-path.diff
fix-nspr-include-path.diff
debian/patches/support-jdk11.diff
0 → 100644
View file @
3410b6f3
diff --git a/build.xml b/build.xml
index ebf18a2..a3b088e 100644
--- a/build.xml
+++ b/build.xml
@@ -82,13 +82,12 @@
description="--> generate jni header files">
<echo message="${begin.build.jni.headers.log.message}"/>
<mkdir dir="${build.dir}/include"/>
- <exec executable="javah" failonerror="true">
+ <exec executable="javac" failonerror="true">
<arg value="-classpath"/>
<arg value="${build.classes}:${jss.jar}:${ldapjdk.jar}"/>
- <arg value="-jni"/>
- <arg value="-d"/>
+ <arg value="-h"/>
<arg value="${build.dir}/include"/>
- <arg value="com.redhat.${product.prefix}${product}.WatchdogClient"/>
+ <arg value="${src.dir}/com/redhat/${product.prefix}${product}/WatchdogClient.java"/>
</exec>
<echo message="${end.build.jni.headers.log.message}"/>
</target>
diff --git a/m4/nuxwdog.m4 b/m4/nuxwdog.m4
index 86f06a2..bc8076b 100644
--- a/m4/nuxwdog.m4
+++ b/m4/nuxwdog.m4
@@ -81,7 +81,7 @@
AC_ARG_WITH(jni-inc, [ --with-jni-inc=PATH NUXWDOG jni.h header path],
],
[case $host in
*-*-linux*)
- javac_exe=`/usr/sbin/alternatives --display javac | grep link | cut -c27-`
+ javac_exe=`/usr/sbin/alternatives --display javac | grep link | head -n 1 | cut -c27-`
jni_path=`dirname $javac_exe`/../include
jni_inc="-I$jni_path -I$jni_path/linux"
if test -f "$jni_path"/jni.h
debian/rules
View file @
3410b6f3
...
...
@@ -24,8 +24,6 @@ ifeq ($(DEB_HOST_ARCH_BITS), 64)
confflags += --enable-64bit
endif
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(DEB_BUILD_ARCH)
# main packaging script based on dh7 syntax
%:
dh $@ --no-parallel --with javahelper
...
...
@@ -35,7 +33,7 @@ override_dh_auto_configure:
override_dh_auto_clean:
if [ -f "Makefile" ]; then make -j1 distclean; fi
JAVA_HOME=/usr/lib/jvm/default-java
dh_auto_clean -- ${ant_flags}
dh_auto_clean -- ${ant_flags}
rm -f lib/perl/Nuxwdogclient/Makefile.real.old
if [ -d "stash" ]; then mv stash/*.inc lib/perl/Nuxwdogclient; rmdir stash; fi
...
...