Gentoo Archives: gentoo-dev

From: justin <jlec@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: new eclass - pkgconfig.eclass
Date: Thu, 29 Nov 2012 09:30:26
Message-Id: 50B72B07.9060402@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: new eclass - pkgconfig.eclass by "Michał Górny"
1 On 29/11/12 09:52, Michał Górny wrote:
2 > On Thu, 29 Nov 2012 08:52:01 +0100
3 > justin <jlec@g.o> wrote:
4 >
5 >> The only remaining problem is on the implementation side. As you can
6 >> imagine, this effort is nothing in which the upstreams are really
7 >> interested in. Therefore most of our .pc files are created inside the
8 >> ebuild. Eventually they will find their way back upstream, but currently
9 >> this is something gentoo specific, it's about choices.
10 >>
11 >> The eclass should just be a reduction of redundant code. And of course
12 >> its not meant to be a replacement to upstream work on packages with sane
13 >> buildsystems. Its just a last resort for corner cases like our
14 >> lapack/blas stuff, which do not have any reasonable option.
15 >>
16 >> I hope this clears my intention and makes it reasonable to have this eclass,
17 >
18 > Nope, it doesn't. If the pkg-config file is created within an ebuild
19 > (or eclass), it is *completely unsuitable* to go anywhere.
20 >
21 > You should write a template, preferably 'mostly' compatible with
22 > the build system and put it into FILESDIR. Even if it's going to be
23 > redundant. This way, we have a simple, ready, clean, constant file
24 > which can be sent upstream or copied by any other distro. It also makes
25 > clear that the file is Gentoo-specific.
26 >
27 >
28
29 Just to be clear on some points.
30
31 1.
32 We are _not_ talking about packages like e.g. gnome libs which have
33 upstreams who know how to work with buildsystem and use sane standard
34 ones. Those love to accept patches making things smoother.
35 Most of the sci upstreams are using custom shell scripts or badly
36 written makefiles. They normal don't get the point in accepting things
37 from us.
38
39 2.
40 Even if we would directly start working with upstream on a solution, we
41 would not have something in broad distribution downstream before we all
42 will retire from gentoo.
43 (If you like, you can go to intel and tell them to have a buildsystem
44 which creates the necessary files. This will not happen in near future.)
45
46 3.
47 Most distribution, as they happen to be binary, only build against one
48 implementation usually the reference. And a significantly large number
49 even rename their libraries. So no sense to convince them to use
50 standard pc files. So no need for us to force a solution with upstream
51 now, before proceeding with gentoo.
52
53 We need to think about gentoo now. Therefore a manual creation of those
54 files is what we are doing now. With or without an eclass.
55
56
57 Now back to your good argument. You are right, we should work with some
58 sort of template. I think for the reference implementations this can be
59 realized quite easily, as they moved to cmake quite recently. For most
60 of the others it will be quite some work. We will take a look into their
61 buildsystem and see what we can achieve.
62
63
64 Thanks,
65 Justin

Attachments

File name MIME type
signature.asc application/pgp-signature