1 |
On Fri, 15 Mar 2013 11:32:31 +0100 |
2 |
Alexis Ballier <aballier@g.o> wrote: |
3 |
|
4 |
> On Sun, 10 Mar 2013 14:42:43 +0100 |
5 |
> Michał Górny <mgorny@g.o> wrote: |
6 |
> > > Let alone qmake, how do you suggest dealing with *-config scripts? |
7 |
> > > Some packages are just not written with multilib in mind, or have |
8 |
> > > to maintain historical compatibility which was not, wrapping the |
9 |
> > > problematic binaries is one solution to this. I've not seen any |
10 |
> > > other solution. |
11 |
> > |
12 |
> > Choose optimal solution per-package. In case of freetype, the solution |
13 |
> > is simple enough: make multilib-aware packages use pkg-config. |
14 |
> > fontconfig does exactly that, and in the earlier version it was enough |
15 |
> > to export something like FREETYPE_CONFIG='pkg-config freetype2' |
16 |
> > (or ac_cv...). |
17 |
> |
18 |
> In this case there's also cmake, and all the other build system types, |
19 |
> maybe even custom ones. pkg-config should be prefered over *-config |
20 |
> scripts in 99% of the cases I'd say; however, setting FREETYPE_CONFIG |
21 |
> isn't less of a hack than the bin wrapper if patches for using |
22 |
> pkg-config to detect freetype are not merged upstream. |
23 |
|
24 |
Yes, the freetype case has already been solved through removing |
25 |
the trouble-making part of header (it wasn't actually ever used) which |
26 |
made the headers compatible. |
27 |
|
28 |
In the longer run, we need more tools for that. During the weekend I'll |
29 |
attempt to write an acceptably good header wrapping function. |
30 |
|
31 |
We may also want a simpler ignore/exclude option but not sure how to do |
32 |
it properly. Certainly I wouldn't want the function to dumbly ignore |
33 |
the whole file, esp. considering that its contents (and thus |
34 |
ABI-specific data) can change over time (versions). |
35 |
|
36 |
-- |
37 |
Best regards, |
38 |
Michał Górny |