Bug 23102 - ebuild media-libs/tiff-3.5.7-r1.ebuild install fails when ROOT != ""
Bug#: 23102 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bug-wranglers@gentoo.org Reported By: martin.gadbois@colubris.com
Component: Ebuilds
URL: 
Summary: ebuild media-libs/tiff-3.5.7-r1.ebuild install fails when ROOT != ""
Keywords:  
Status Whiteboard: 
Opened: 2003-06-19 06:55 0000
Description:   Opened: 2003-06-19 06:55 0000
When installing tiff in a different directory than / using
ROOT=/home/user/gentoo,  the installation fails (permission denied) or Sandbox
failures.

Reproducible: Always
Steps to Reproduce:
1. ROOT="somedir" emerge tiff



Actual Results:  
Permission denied, and/or sandbox access violation

Expected Results:  
Correct installation

The reason is that tiff's install.sh uses the ROOT variable. Found by Yannick
Koehler. See patch.
--- tiff-3.5.7-r1.ebuild.org	2003-06-19 09:36:58.000000000 +0000
+++ tiff-3.5.7-r1.ebuild	2003-06-19 09:37:14.000000000 +0000
@@ -30,7 +30,7 @@
 src_install() {
 	dodir /usr/{bin,lib,share/man,share/doc/${PF}/html}
 	dodir /usr/share/doc/${PF}/html
-	make INSTALL="/bin/sh ${S}/port/install.sh" install || die
+	make ROOT="" INSTALL="/bin/sh ${S}/port/install.sh" install || die
 	preplib /usr
 	dodoc COPYRIGHT README TODO VERSION
 }

------- Comment #1 From Mr. Bones. 2003-06-19 23:59:44 0000 -------
I could reproduce the problem so I went ahead and applied the patch.
Thanks for the bug report Martin.

This is fixed in CVS so I'll go ahead and close the bug.  Reopen if there's
a problem.