Skip to content

Commit

Permalink
dev-java/openjdk: rebvbump :8, fix dep issues
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/685826
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <[email protected]>
  • Loading branch information
gyakovlev committed May 14, 2019
1 parent 53efa96 commit dfbf93b
Showing 1 changed file with 31 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
IUSE="alsa debug cups doc examples gentoo-vm headless-awt +jbootstrap nsplugin +pch selinux source +webstart"

CDEPEND="
COMMON_DEPEND="
media-libs/freetype:2=
media-libs/giflib:0/7
>=sys-apps/baselayout-java-0.1.0-r1
sys-libs/zlib
alsa? ( media-libs/alsa-lib )
"
# Many libs are required to build, but not to run, make is possible to remove
# by listing conditionally in RDEPEND unconditionally in DEPEND
RDEPEND="
${COMMON_DEPEND}
>=sys-apps/baselayout-java-0.1.0-r1
!headless-awt? (
x11-libs/libX11
x11-libs/libXext
Expand All @@ -41,26 +45,23 @@ CDEPEND="
x11-libs/libXt
x11-libs/libXtst
)
"

RDEPEND="
${CDEPEND}
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
selinux? ( sec-policy/selinux-java )
"

# cups headers requied to build, runtime dep is optional
DEPEND="
${CDEPEND}
net-print/cups
${COMMON_DEPEND}
app-arch/zip
app-misc/ca-certificates
dev-lang/perl
dev-libs/openssl:0
media-libs/alsa-lib
!headless-awt? (
x11-base/xorg-proto
)
net-print/cups
x11-base/xorg-proto
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXt
x11-libs/libXtst
|| (
dev-java/openjdk-bin:${SLOT}
dev-java/icedtea-bin:${SLOT}
Expand All @@ -69,8 +70,10 @@ DEPEND="
)
"

PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
PDEPEND="
webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )
"

S="${WORKDIR}/jdk${SLOT}u-jdk${MY_PV}"

Expand Down Expand Up @@ -146,8 +149,6 @@ src_configure() {
# Work around stack alignment issue, bug #647954.
use x86 && append-flags -mincoming-stack-boundary=2

append-flags -Wno-error

local myconf=(
--disable-ccache
--enable-unlimited-crypto
Expand Down Expand Up @@ -187,8 +188,10 @@ src_configure() {
}

src_compile() {
emake -j1 LOG=debug JOBS=$(makeopts_jobs)\
$(usex jbootstrap bootcycle-images images) $(usex doc docs '')
emake -j1 \
$(usex doc docs '') \
$(usex jbootstrap bootcycle-images images) \
JOBS=$(makeopts_jobs) LOG=debug
}

src_install() {
Expand All @@ -201,6 +204,12 @@ src_install() {
rm -v jre/lib/$(get_system_arch)/libjsoundalsa.* || die
fi

# stupid build system does not remove that
if use headless-awt ; then
rm -fvr jre/lib/$(get_system_arch)/lib*{[jx]awt,splashscreen}* \
{,jre/}bin/policytool bin/appletviewer || die
fi

if ! use examples ; then
rm -vr demo/ || die
fi
Expand Down

0 comments on commit dfbf93b

Please sign in to comment.