Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74722 - zlib - "broken" symlink when ROOT is not /
Summary: zlib - "broken" symlink when ROOT is not /
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-16 21:51 UTC by David Bélanger
Modified: 2004-12-17 00:26 UTC (History)
0 users

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


Attachments
Fixes the bug (root.patch,461 bytes, patch)
2004-12-16 21:53 UTC, David Bélanger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Bélanger 2004-12-16 21:51:21 UTC
When I emerge zlib to a different ROOT than /, the ${ROOT}/usr/lib/libz.so symlink points to /lib/libz.so.  See patch attached.


Reproducible: Always
Steps to Reproduce:

1. mkdir /usr/local/cross-root
2. ROOT=/usr/local/cross-root emerge -av zlib
3.

Actual Results:  
I get symlink
/usr/local/cross-root/usr/lib/libz.so -> /lib/libz.${PV}



Expected Results:  
symlink
/usr/local/cross-root/usr/lib/libz.so -> /usr/local/cross-root/lib/libz.${PV}

So I can compile (cross-compile in my case) applications linked with libz.
Comment 1 David Bélanger 2004-12-16 21:53:54 UTC
Created attachment 46192 [details, diff]
Fixes the bug
Comment 2 SpanKY gentoo-dev 2004-12-17 00:26:59 UTC
err that's a bad idea and not really how ROOT is supposed to be utilized

setup your LDFLAGS to do -L${ROOT}/lib and -L${ROOT}/usr/lib and you should be fine