Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23102 - ebuild media-libs/tiff-3.5.7-r1.ebuild install fails when ROOT != ""
Summary: ebuild media-libs/tiff-3.5.7-r1.ebuild install fails when ROOT != ""
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-19 06:55 UTC by Martin Gadbois
Modified: 2003-06-19 23:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gadbois 2003-06-19 06:55:17 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2003-06-19 23:59:44 UTC
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.