A pkg-config file for OpenJDK

Mario Torre neugens at redhat.com
Tue Aug 5 16:03:15 UTC 2014

On Tue, 2014-08-05 at 17:42 +0200, dalibor topic wrote:
> On 04.08.2014 10:41, Mario Torre wrote:
> > If compact profiles are an issue, I would say that OpenJDK should ship
> > with a pkg-config for each of the profiles.
> OK, now let's assume that multiple profiles are installed in parallel. ;)
> Or, for a not too unusual setup, that multiple JDK/JRE versions are 
> installed in parallel.
> How does pkg-config pick the 'right' one to link against? Does the first 
> one to install the OpenJDK .pc file win? The last one? Does one need a 
> different .pc file for each major version? For each minor version?
> If I'm parsing https://bugzilla.redhat.com/show_bug.cgi?id=740762#c27 
> right it seems that the design of the feature in the context of Fedora 
> is still under discussion.
> > The whole point of pkg-config is to not worry about where things are
> > installed and what the linking/flags options are, you only need to know
> > the package name, which should be standard across distros.
> OpenJDK 8u typically gets packaged as "openjdk-8" on Debian derived 
> distributions, "java-1.8.0-openjdk" on Fedora derived ones, and 
> presumably something else somewhere else.
> In addition, the distributions tend to split OpenJDK packages in 
> different ways - See
>      java-1.8.0-openjdk-accessibility
>      java-1.8.0-openjdk-demo
>      java-1.8.0-openjdk-devel
>      java-1.8.0-openjdk-headless
>      java-1.8.0-openjdk-javadoc
>      java-1.8.0-openjdk-src
> vs.
>      openjdk-8-dbg
>      openjdk-8-demo
>      openjdk-8-doc
>      openjdk-8-jdk
>      openjdk-8-jre
>      openjdk-8-jre-headless
>      openjdk-8-jre-jamvm
>      openjdk-8-jre-zero
>      openjdk-8-source
> for a Fedora vs. Debian comparison.

Yeah, I see your point, but this is what I meant before by "those are
packaging problems", OpenJDK should not be concerned, imho.

The only issue OpenJDK should probably address is the naming of itself
in the pkg-config template, since this should likely be standard, then
everything else will be decided at packaging level[1].

Probably Omair can help us here to better understand what OpenJDK as
upstream could do though, since he has more packaging experience than I
do, I would also love some feedback from the Debian packagers (or any
other distribution that can help her).


[1] Unless you're going to do the packaging in Debian, then I see why
you want to know the answer to those tricky questions ;)

More information about the discuss mailing list