Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185834 - app-crypt/opencdk: configure process does not properly honor ROOT
Summary: app-crypt/opencdk: configure process does not properly honor ROOT
Status: VERIFIED INVALID
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: 2007-07-19 05:49 UTC by Dave Bender
Modified: 2007-07-19 07:24 UTC (History)
0 users

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


Attachments
files/opencdk-crosscompile.diff (opencdk-crosscompile.diff,408 bytes, patch)
2007-07-19 07:24 UTC, Jakub Moc (RETIRED)
Details | Diff
opencdk-0.5.7.ebuild.diff (opencdk-0.5.7.ebuild.diff,675 bytes, patch)
2007-07-19 07:24 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Bender 2007-07-19 05:49:20 UTC
for example, when opencdk's configure looks for libgcrypt-config, it fails because it looks in the build host's environment rather than the specified ROOT's environment.

Reproducible: Always

Steps to Reproduce:
1. ROOT=/blah emerge libgcrypt
2. ROOT=/blah emerge opencdk
3.

Actual Results:  
opencdk fails to emerge because it cannot find libgcrypt

Expected Results:  
install opencdk
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 05:55:15 UTC
Wrong; you always compile things against libraries in /, not in ${ROOT}. Install all dependencies properly.

NOTABUG.

Comment 2 Dave Bender 2007-07-19 06:03:31 UTC
(In reply to comment #1)
> Wrong; you always compile things against libraries in /, not in ${ROOT}.
> Install all dependencies properly.
> 
> NOTABUG.
> 

How does that make any sense when you are cross compiling? The binary format would differ. In this case the arch is the same but that should not matter.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 06:09:24 UTC
You don't cross-compile by (ab)using ROOT, that's what crossdev is for.
Comment 4 Dave Bender 2007-07-19 06:14:25 UTC
no crossdev only builds the toolchain. Emerge is for dependency analysis and program installation. Please look at this:

http://www.gentoo.org/proj/en/base/embedded/cross-development.xml

Look at section 3
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 07:24:17 UTC
Created attachment 125310 [details, diff]
files/opencdk-crosscompile.diff

If you are really interested in crosscompile, try this patch. Regardless, libgcrypt needs to be in / for this to compile.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 07:24:43 UTC
Created attachment 125311 [details, diff]
opencdk-0.5.7.ebuild.diff