pkgsrc-Bugs archive

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

pkg/52455: lang/oracle-jdk8 and lang/oracle-jre8 don't declare buildlink3 library paths



>Number:         52455
>Category:       pkg
>Synopsis:       lang/oracle-jdk8 and lang/oracle-jre8 don'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 13:55:00 +0000 2017
>Originator:     William Welliver
>Release:        pkgsrc trunk 20170802
>Organization:
N/A
>Environment:
Linux pkgsrc-pbulk.local 3.10.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
>Description:
Oracle JDK8 and JRE8 provide 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 oracle-jdk8/jre8.

[root@pkgsrc-pbulk oracle-jre8]# diff buildlink3.mk.orig buildlink3.mk
21a22,25
> LIBDIR_ARCH=    ${MACHINE_ARCH:S/x86_64/amd64/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
> BUILDLINK_LIBDIRS.openjre8+=java/oracle-8/jre/lib/${LIBDIR_ARCH}/server
> BUILDLINK_LIBDIRS.openjre8+=java/oracle-8/jre/lib/${LIBDIR_ARCH}
>

[root@pkgsrc-pbulk oracle-jdk8]# diff buildlink3.mk.orig buildlink3.mk
30a31,34
> LIBDIR_ARCH=    ${MACHINE_ARCH:S/x86_64/amd64/:S/sparc64/sparcv9/:C/^e?arm.*$/arm/}
> BUILDLINK_LIBDIRS.openjdk8+=java/oracle-8/jre/lib/${LIBDIR_ARCH}/server
> BUILDLINK_LIBDIRS.openjdk8+=java/oracle-8/jre/lib/${LIBDIR_ARCH}
> 


Home | Main Index | Thread Index | Old Index