dev-scheme/guile: Use emake install (bug #521546).
authorRyan Hill <rhill@gentoo.org>
Sat, 19 Sep 2015 01:53:16 +0000 (19:53 -0600)
committerRyan Hill <rhill@gentoo.org>
Mon, 12 Oct 2015 23:22:18 +0000 (17:22 -0600)
A sandbox violation was preventing us from using emake install rather
than einstall.

Gentoo-Bug: https://bugs.gentoo.org/521546

dev-scheme/guile/files/guile-1.8.8-sandbox.patch [new file with mode: 0644]
dev-scheme/guile/guile-1.8.8-r2.ebuild

diff --git a/dev-scheme/guile/files/guile-1.8.8-sandbox.patch b/dev-scheme/guile/files/guile-1.8.8-sandbox.patch
new file mode 100644 (file)
index 0000000..70d752f
--- /dev/null
@@ -0,0 +1,15 @@
+Prevent sandbox violation when installing
+
+https://bugs.gentoo.org/521546
+
+--- a/guile-config/Makefile.am
++++ b/guile-config/Makefile.am
+@@ -39,8 +39,3 @@ guile-config: guile-config.in ${top_builddir}/libguile/libpath.h
+           -e s:@-GUILE_VERSION-@:${GUILE_VERSION}:
+       chmod +x guile-config.tmp
+       mv guile-config.tmp guile-config
+-
+-## Get rid of any copies of the configuration script under the old
+-## name, so people don't end up running ancient copies of it.
+-install-exec-local:
+-      rm -f ${bindir}/build-guile
index 2737d570aaf334ed3048f73d9925e4f508dacb9e..619d6784961f889eac11d04aa1521c0e45e040e4 100644 (file)
@@ -34,7 +34,9 @@ src_prepare() {
                "${FILESDIR}/${P}-gcc46.patch" \
                "${FILESDIR}/${P}-gcc5.patch" \
                "${FILESDIR}/${P}-makeinfo-5.patch" \
-               "${FILESDIR}/${P}-gtexinfo-5.patch"
+               "${FILESDIR}/${P}-gtexinfo-5.patch" \
+               "${FILESDIR}/${P}-sandbox.patch"
+
        sed \
                -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g" \
                -e "/AM_PROG_CC_STDC/d" \
@@ -78,7 +80,7 @@ src_compile()  {
 }
 
 src_install() {
-       einstall
+       emake DESTDIR="${D}" install
 
        dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS