pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52453: openjdk8 doesn't declare buildlink3 library paths



>Number:         52453
>Category:       pkg
>Synopsis:       openjdk8 doesn't declare buildlink3 library paths
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 02 12:15:00 +0000 2017
>Originator:     William Welliver
>Release:        7.1
>Organization:
N/A
>Environment:
NetBSD netbsd.localdomain 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
OpenJDK8 provides libraries for linking a JVM in order to provide a C-language interface to the JVM (called JNI). These libraries are in a non-standard location, so the buildlink3.mk file would need to specify them in order for packages to be able to link properly against them. Currently, this isn't included in the buildlink3.mk file, so packages that do detect their location won't be able to actually use them as the compiler wrappers will remove any -L and -rpath args.




>How-To-Repeat:
Attempt to link a program against -ljvm and friends. Even if the proper locations are included, cwrappers will remove the arguments that specify them.
>Fix:
This patch allows the java shared libraries to be linked. A variant of this patch also likely applies to openjdk7.

netbsd# diff buildlink3.mk.orig buildlink3.mk
6a7
> LIBDIR_ARCH=    ${MACHINE_ARCH:S/x86_64/amd64/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
8a10,11
> BUILDLINK_LIBDIRS.openjdk8+=java/openjdk8/jre/lib/${LIBDIR_ARCH}/server
> BUILDLINK_LIBDIRS.openjdk8+=java/openjdk8/jre/lib/${LIBDIR_ARCH}


Home | Main Index | Thread Index | Old Index