Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203336 - ability to check for collisions with ebuild command
Summary: ability to check for collisions with ebuild command
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-25 22:12 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2008-03-02 14:23 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 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2007-12-25 22:12:57 UTC
it would be useful to be able to run something like:

ebuild /path/to/ebuild clean install check-collisions


in order to check for file system collisions before running qmerge.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 14:23:57 UTC
Not as easy as it may sound as this code is deep embedded in the merge code and intended to be called standalone. So adding such a new command to ebuild(1) qould require some nasty hacker that I'd like to avoid, or some major restructuring that isn't going to happen anytime soon.

As a workaround you can use the following pre_pkg_preinst hook in /etc/portage/bashrc:

pre_pkg_preinst() {
  if [ "$PORTAGE_CALLER" == "ebuild" -a -n "$ONLY_CHECK_COLLISIONS" ]; then
    die "just checking for collisions"
  fi
}

and instead of `ebuild ... check-collisions` call `ONLY_CHECK_COLLISIONS=1 ebuild ... qmerge`