Commit 267e00d6 authored by Benjamin Drung's avatar Benjamin Drung

Server JRE: Exclude libs that pull in X11

Some libraries of the server JRE are linked against X11. Ignore them in
the dh_shlibdeps run to avoid a dependency on X11.
parent 38d508d2
......@@ -70,6 +70,18 @@ j2se_rules() {
cat << EOF
#!/usr/bin/make -f
# Exclude libraries that pull in ALSA or OpenGL which are not needed in normal operation
EXCLUDE_LIBS = \\
--exclude=avplugin \\
--exclude=fxavcodecplugin \\
--exclude=libjsoundalsa.so \\
EOF
for lib in $exlude_libs; do
printf '\t--exclude=%s \\\n' "$lib"
done
cat << EOF
\$(NULL)
%:
dh \$@
......@@ -77,7 +89,7 @@ override_dh_compress:
dh_compress \$(shell find $j2se_name/man/ -type f ! -name '*.gz' -printf '${jvm_base##/}/%p\n')
override_dh_shlibdeps:
dh_shlibdeps --exclude=fxavcodecplugin --exclude=avplugin -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//')
dh_shlibdeps \$(EXCLUDE_LIBS) -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//')
override_dh_strip_nondeterminism:
# Disable dh_strip_nondeterminism to speed up the build
......
......@@ -81,6 +81,7 @@ EOF
oracle_jre_bin_jre="policytool"
oracle_jre_lib_hl="jexec"
j2se_package="$j2se_vendor-java$j2se_release-server-jre"
exlude_libs="appletviewer libawt_xawt.so libsplashscreen.so policytool"
j2se_run
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment