Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258100 - net-nds/ypserv abusing ${ROOT}
Summary: net-nds/ypserv abusing ${ROOT}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 258096
  Show dependency tree
 
Reported: 2009-02-08 12:04 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2010-02-23 11:37 UTC (History)
1 user (show)

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 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-02-08 12:04:12 UTC
Some notes on ROOT:

* The idea behind ROOT is that one can build a system with ROOT=/somewhere and
then chroot into it or tar up /somewhere as a system image. It is not designed
to allow the user to run /somewhere/usr/bin/foo.

* ROOT can't be used correctly in src_*, since ROOT might be different when
merging a binary package. For example, a binary package might be built with
ROOT=/ and then installed onto a system using ROOT=/somewhere.

* ROOT isn't used for library dependencies. When building, libraries, headers
etc. on / have to be used. Cross-compiling etc is done by configuring the
toolchain correctly, not by hacking ebuilds in a way that breaks binary
packages.
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-02-23 11:37:15 UTC
  23 Feb 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> +ypserv-2.22.ebuild:
  Version bump. Fix ${ROOT} abuse wrt bug #258100 by bangert. Make
  /var/yp/Makefile CONFIG_PROTECTed and provide a migration path.