summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2021-11-21 19:42:19 -0800
committerSam James <sam@gentoo.org>2021-11-22 05:21:19 +0000
commit1f77a5bf9a17c7959a39efdf97c1d8b40e42f0ff (patch)
treef6c3a7169d3578cec1df97a20ab877b01197e298 /x11-apps
parentprofiles/arch: unmask USE=audit (diff)
downloadgentoo-1f77a5bf9a17c7959a39efdf97c1d8b40e42f0ff.tar.gz
gentoo-1f77a5bf9a17c7959a39efdf97c1d8b40e42f0ff.tar.bz2
gentoo-1f77a5bf9a17c7959a39efdf97c1d8b40e42f0ff.zip
x11-apps/mesa-progs: Fix install with slibtool
[sam: Not ideal either way but this avoids installing a load of stuff via the install target only to throw it away.] Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-apps')
-rw-r--r--x11-apps/mesa-progs/mesa-progs-8.4.0-r1.ebuild13
-rw-r--r--x11-apps/mesa-progs/mesa-progs-9999.ebuild13
2 files changed, 20 insertions, 6 deletions
diff --git a/x11-apps/mesa-progs/mesa-progs-8.4.0-r1.ebuild b/x11-apps/mesa-progs/mesa-progs-8.4.0-r1.ebuild
index ee75c1fc23ec..cafb05dd7c1a 100644
--- a/x11-apps/mesa-progs/mesa-progs-8.4.0-r1.ebuild
+++ b/x11-apps/mesa-progs/mesa-progs-8.4.0-r1.ebuild
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
media-libs/glew
virtual/glu
x11-base/xorg-proto"
+BDEPEND="sys-apps/grep
+ sys-apps/file"
PATCHES=(
"${FILESDIR}"/${P}-improve-printing.patch
@@ -59,10 +61,15 @@ src_compile() {
}
src_install() {
- dobin src/xdemos/{glxgears,glxinfo}
+ local demo='src/xdemos'
if use egl; then
- dobin src/egl/opengl/egl{info,gears_x11}
+ demo="${demo} src/egl/opengl"
- use gles2 && dobin src/egl/opengles2/es2{_info,gears_x11}
+ use gles2 && demo="${demo} src/egl/opengles2"
fi
+
+ # Ensure only the binaries are installed and not a similarly named wrapper script
+ find ${demo} -type f -print0 |
+ xargs -0 file | grep executable | grep ELF | cut -f 1 -d : |
+ xargs -I '{}' dobin '{}' || die
}
diff --git a/x11-apps/mesa-progs/mesa-progs-9999.ebuild b/x11-apps/mesa-progs/mesa-progs-9999.ebuild
index 8da112519962..413b7365eaf8 100644
--- a/x11-apps/mesa-progs/mesa-progs-9999.ebuild
+++ b/x11-apps/mesa-progs/mesa-progs-9999.ebuild
@@ -32,6 +32,8 @@ RDEPEND="
DEPEND="${RDEPEND}
virtual/glu
x11-base/xorg-proto"
+BDEPEND="sys-apps/grep
+ sys-apps/file"
src_prepare() {
default
@@ -55,10 +57,15 @@ src_compile() {
}
src_install() {
- dobin src/xdemos/{glxgears,glxinfo}
+ local demo='src/xdemos'
if use egl; then
- dobin src/egl/opengl/egl{info,gears_x11}
+ demo="${demo} src/egl/opengl"
- use gles2 && dobin src/egl/opengles2/es2{_info,gears_x11}
+ use gles2 && demo="${demo} src/egl/opengles2"
fi
+
+ # Ensure only the binaries are installed and not a similarly named wrapper script
+ find ${demo} -type f -print0 |
+ xargs -0 file | grep executable | grep ELF | cut -f 1 -d : |
+ xargs -I '{}' dobin '{}' || die
}