Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117739 - sys-apps/compare and media-gfx/imagemagick conflict
Summary: sys-apps/compare and media-gfx/imagemagick conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 06:57 UTC by Rodrigo Queiro
Modified: 2006-09-14 00:24 UTC (History)
2 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 Rodrigo Queiro 2006-01-04 06:57:10 UTC
Both sys-apps/compare and media-gfx/imagemagick create /usr/bin/compare (and the corresponding manpage. This means one ebuild will overwrite the other.

It can be fixed by modifying the sys-apps/compare ebuild to install to use a different name, say compare-binary.
Comment 1 SpanKY gentoo-dev 2006-01-04 19:37:02 UTC
either change the package compare or we can add blockers, doesnt matter much to be either way ... how about you Stuart ?
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2006-02-13 13:32:22 UTC
I'm happy for us to add blockers.

Best regards,
Stu
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2006-06-11 07:34:01 UTC
Blocker added.

Best regards,
Stu
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2006-06-15 03:46:16 UTC
Stuart, this doesn't suffice. Please make sure that you always block packages mutually. Right now you can still inatll imagemagick, despite having compare installed.
Comment 5 Rodrigo Queiro 2006-06-15 09:36:55 UTC
Also, I would say that blockers isn't a solution. Because imagemagick is such a common application, this has the effect of stopping most people using compare. You might as well just remove compare from portage and call it a bug fix. It would be so simple to have the compare ebuild simply use another binary name, as the sys-apps/rename ebuild does (it installs as /usr/bin/renamexm to avoid conflict with sys-apps/util-linux).

To make it easier, here is the code that I think should be put into the compare ebuild:

src_install() {
    OBJ=${PN}/OBJ/`ls ${PN}/OBJ`
    dobin ${OBJ}/${PN} binary-compare || die
    doman ${PN}/${PN}.1 binary-compare.1
}

pkg_postinst() {
    ewarn "This has been renamed to 'binary-compare' to avoid"
    ewarn "a naming conflict with media-gfx/imagemagick."
}
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2006-06-18 23:56:38 UTC
Carlo: imagemagick isn't my package.  I've reassigned to the graphics herd, for them to add the blocker to imagemagick.

Rodrigo: $UPSTREAM calls the installed file 'compare'.  If you'd like to see it installed with a different name, please convince them to adopt a change first.

Best regards,
Stu
Comment 7 SpanKY gentoo-dev 2006-09-14 00:24:06 UTC
fixed in imagemagick-6.2.9.5