[systemd-bugs] [Bug 89769] udev.pc should go to libdir/pkgconfig not datadir/pkgconfig
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Apr 7 06:56:34 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89769
--- Comment #8 from Marc-Antoine Perennou <Marc-Antoine at Perennou.com> ---
(In reply to Kay Sievers from comment #7)
>
> This is all wrong. $libexedir is NOT arch specific. But none of the wrong
> things here really matter.
>
> What matters is that systemd.pc and udev.pc are GENERIC files,
> not arch-dependent.
>
> The SECONDARY arch needs to find the GENERIC file, but it will not look
> into the PRIMARY arch's $libdir.
>
> These files just do not belong into $libdir, it is not what they are provided
> for and it will just not work as intended.
>
> Also, that systemd.pc carries $libdir as a variable to point out the
> PRIMARY arch, is no indication that this file should live in $libdir,
> quite the opposite is the case.
This file in itself is not arch-specific, sure, as it's only a text file.
Its contents though is arch-specific.
Just picture it this way:
I have a multiarch system (and by multiarch I do not mean multilib, but a
system which can cross-compile to random archs)
My principal arch is x86_64, and I use my multiarch system to build arm
binaries.
systemd.pc and udev.pc built for x86_64 will contain paths to my x86_64 libdir.
The libraries contained into this lib are arch-dependents. When I build
something which needs udev for x86_64, it will look for pkg-config files in my
x86_64 libdir.
Now let's say I want to cross-compile the same software for arm. If systemd
installs its udev.pc in $datadir and pkg-config reads that, it will try to link
the arm binary to the x86_64 libs. If systemd however does the right things and
installs it into the arch-specific libdir, the compilation for arm will get the
right pkg-config files for the arm libdir.
Any pkg-config file containing paths to arch-sepcific stuff such as libraries
should go into an arch-specific directory.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150407/9db6671b/attachment-0001.html>
More information about the systemd-bugs
mailing list