The sysroot is duplicated when using ${pc_sysrootdir}/${prefix} or similar #123

Closed
opened 2017-07-14 15:49:46 +00:00 by hwti · 2 comments
hwti commented 2017-07-14 15:49:46 +00:00 (Migrated from github.com)

With wayland-protocols.pc, with https://lists.freedesktop.org/archives/wayland-devel/2017-July/034419.html applied :

prefix=/usr
datarootdir=${prefix}/share
pkgdatadir=${pc_sysrootdir}/${datarootdir}/wayland-protocols

Name: Wayland Protocols
Description: Wayland protocol files
Version: 1.9
$ PKG_CONFIG_SYSROOT_DIR=/sysroot pkgconf --variable=pkgdatadir wayland-protocols
/sysroot//sysroot/usr/share/wayland-protocols

So when using ${pc_sysrootdir} to make pkg-config work, it breaks pkgconf.
Since pkgconf seems to add the sysroot to all variables looking like an absolute path, I think it should check for duplicates when a variable starts with ${pc_sysrootdir}.

With wayland-protocols.pc, with https://lists.freedesktop.org/archives/wayland-devel/2017-July/034419.html applied : ``` prefix=/usr datarootdir=${prefix}/share pkgdatadir=${pc_sysrootdir}/${datarootdir}/wayland-protocols Name: Wayland Protocols Description: Wayland protocol files Version: 1.9 ``` ``` $ PKG_CONFIG_SYSROOT_DIR=/sysroot pkgconf --variable=pkgdatadir wayland-protocols /sysroot//sysroot/usr/share/wayland-protocols ``` So when using ${pc_sysrootdir} to make pkg-config work, it breaks pkgconf. Since pkgconf seems to add the sysroot to all variables looking like an absolute path, I think it should check for duplicates when a variable starts with ${pc_sysrootdir}.

interestingly, it's supposed to be checking. i'm going to dig on this.

interestingly, it's supposed to be checking. i'm going to dig on this.
hwti commented 2017-07-17 01:08:05 +00:00 (Migrated from github.com)

Thanks

Thanks
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#123
There is no content yet.