Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373783 - =app-misc/pip-1.2-r1 stable request (was app-misc/pip-1.2 has file collisions with dev-python/pip-1.0.1)
Summary: =app-misc/pip-1.2-r1 stable request (was app-misc/pip-1.2 has file collisions...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2011-07-02 08:24 UTC by u235ly
Modified: 2012-12-03 21:04 UTC (History)
3 users (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 u235ly 2011-07-02 08:24:25 UTC
Both of app-misc/pip-1.2 and dev-python/pip-1.0.1 want to install /usr/bin/pip, causing file collisions.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-python/pip
2. emerge app-misc/pip
Actual Results:  
>>> Installing (1 of 1) app-misc/pip-1.2
 * checking 11 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 * 	/usr/bin/pip
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-python/pip-1.0.1
 * 	/usr/bin/pip
 * 
 * Package 'app-misc/pip-1.2' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.

Expected Results:  
A clean install.
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-07-05 11:24:49 UTC
Not sure what we should do here. Just block the other?
Comment 2 u235ly 2011-07-07 13:30:59 UTC
I suggest renaming the executable of app-misc/pip to gpip like we did to
the ebuild file of sys-process/parallel.
Originally, sys-process/parallel installs a file /usr/bin/parallel which
conflicts with sys-apps/moreutils. See bug 349225 for their solution.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-07-17 14:03:27 UTC
Rename is fine with me
Comment 4 Sergey Popov gentoo-dev 2012-10-26 07:55:10 UTC
Suggest this simple patch to solve this issue:

--- pip-1.2.ebuild.orig      2011-01-05 19:26:31.000000000 +0300
+++ pip-1.2.ebuild           2012-10-26 11:52:34.594542768 +0400
@@ -12,3 +12,8 @@
 SLOT="0"
 KEYWORDS="~amd64 x86 ppc"
 IUSE=""
+
+src_install() {
+       perl-module_src_install
+       mv "${D}"/usr/bin/{pip,gpip} || die 'rename failed'
+}

Not sure, but i think we should bump revision and also add apropriate informational message in pkg_postinst
Comment 5 Sergey Popov gentoo-dev 2012-10-31 11:55:42 UTC
+*pip-1.2-r1 (31 Oct 2012)
+
+  31 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> +pip-1.2-r1.ebuild:
+  Revision bump: fix for bug #373783, bump to EAPI 4

Will close this after stabilizing new revision and dropping old one
Comment 6 Sergey Popov gentoo-dev 2012-12-02 10:38:35 UTC
More than 30 days in tree, no open bugs.

Arches, please test and mark stable =app-misc/pip-1.2-r1

Target keywords: amd64 ppc x86
Comment 7 Sergey Popov gentoo-dev 2012-12-02 10:41:05 UTC
amd64 stable
Comment 8 Agostino Sarubbo gentoo-dev 2012-12-03 19:39:28 UTC
ppc stable
Comment 9 Agostino Sarubbo gentoo-dev 2012-12-03 21:04:27 UTC
x86 stable. Last arch, closing