summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2020-04-13 21:43:06 +0100
committerJames Le Cuirot <chewi@gentoo.org>2020-05-16 16:48:48 +0100
commita34ea67be66666a2cca94e28d8298e31180d37e6 (patch)
tree50082b6f254583df61c9b34834f36a32faa18243 /dev-libs/glib
parentdev-python/selenium: Use https (diff)
downloadgentoo-a34ea67be66666a2cca94e28d8298e31180d37e6.tar.gz
gentoo-a34ea67be66666a2cca94e28d8298e31180d37e6.tar.bz2
gentoo-a34ea67be66666a2cca94e28d8298e31180d37e6.zip
dev-libs/glib: Exclude nonsensical and broken libelf dep on Windows
elfutils (via libelf) does not build on Windows. gresources are not embedded within ELF binaries on that platform anyway and inspecting ELF binaries from other platforms is not that useful so exclude the dependency in this case. For what it's worth, dev-libs/libelf was tried as an alternative but while Meson did pick it up and link it, gresource.exe still reported that ELF support was missing. Closes: https://github.com/gentoo/gentoo/pull/15337 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-libs/glib')
-rw-r--r--dev-libs/glib/glib-2.64.2.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-libs/glib/glib-2.64.2.ebuild b/dev-libs/glib/glib-2.64.2.ebuild
index a1034108695a..8b05703c3473 100644
--- a/dev-libs/glib/glib-2.64.2.ebuild
+++ b/dev-libs/glib/glib-2.64.2.ebuild
@@ -20,6 +20,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~
# the check is automagic in gio/meson.build. gresource is not a multilib tool
# right now, thus it doesn't matter if non-native ABI libelf exists or not
# (non-native binary is overwritten, it doesn't matter if libelf was linked to).
+# * elfutils (via libelf) does not build on Windows. gresources are not embedded
+# within ELF binaries on that platform anyway and inspecting ELF binaries from
+# other platforms is not that useful so exclude the dependency in this case.
# * Technically static-libs is needed on zlib, util-linux and perhaps more, but
# these are used by GIO, which glib[static-libs] consumers don't really seem
# to need at all, thus not imposing the deps for now and once some consumers
@@ -36,7 +39,7 @@ RDEPEND="
kernel_linux? ( >=sys-apps/util-linux-2.23[${MULTILIB_USEDEP}] )
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
xattr? ( !elibc_glibc? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) )
- virtual/libelf:0=
+ !kernel_Winnt? ( virtual/libelf:0= )
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}"