Bug 1048622 - python-cssmin provides /usr/bin/cssmin which conflicts with ycssmin
Summary: python-cssmin provides /usr/bin/cssmin which conflicts with ycssmin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cssmin
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Krizek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-05 22:37 UTC by Dan Callaghan
Modified: 2014-03-01 07:13 UTC (History)
3 users (show)

Fixed In Version: python-cssmin-0.2.0-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-15 06:59:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2014-01-05 22:37:54 UTC
Description of problem:
python-cssmin and ycssmin both provide /usr/bin/cssmin which conflicts.

Version-Release number of selected component (if applicable):
python-cssmin-0.1.4-5.fc19.noarch

How reproducible:
always

Steps to Reproduce:
1. yum install python-cssmin ycssmin
or any other yum transaction which pulls in both of those packages.

Actual results:
Transaction Check Error:
  file /usr/bin/cssmin conflicts between attempted installs of ycssmin-1.0.1-3.fc19.noarch and python-cssmin-0.1.4-5.fc19.noarch

Expected results:
No conflict.

Additional info:
I've filed this against python-cssmin since ycssmin seems to have claimed the name first (judging by git commit dates). But considering how many "CSS minification" implementations exist right now, I would suggest that neither package should own /usr/bin/cssmin. Either way, the implicit file conflict is a bug.

Comment 1 Martin Krizek 2014-01-06 13:04:25 UTC
Thanks for filling the bug. Do you have a suggestion regarding the new name of the file?

Comment 2 Stephen Gallagher 2014-01-06 13:18:40 UTC
The problem is that there are plenty of other packages that rely on /usr/bin/cssmin being ycssmin (it's coded into their build-systems). Martin: do you know if python-cssmin takes all of the same arguments? Looking it up, python-cssmin is apparently a python port of ycssmin. If that's the case, we might be able to hack together an 'alternatives' solution here.

Comment 3 Martin Krizek 2014-01-06 14:14:10 UTC
(In reply to Stephen Gallagher from comment #2)
> The problem is that there are plenty of other packages that rely on
> /usr/bin/cssmin being ycssmin (it's coded into their build-systems). Martin:
> do you know if python-cssmin takes all of the same arguments?

Seems like the ycssmin binary only reads stdin (please correct me if I am wrong) while the python-cssmin binary does the same and in addition takes -h, --help, --version, -w, --wrap arguments.

Comment 4 Dan Callaghan 2014-02-10 02:55:48 UTC
So I guess the two possibilities are to rename python-cssmin's binary to /usr/bin/python-cssmin (because ycssmin got there first) or to set up alternatives to manage /usr/bin/cssmin as a symlink.

Either way I'd appreciate a fix for this since it is breaking our builds due to the rpm file conflict.

Comment 5 Fedora Update System 2014-02-10 12:43:56 UTC
python-cssmin-0.2.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-cssmin-0.2.0-1.fc20

Comment 6 Fedora Update System 2014-02-10 12:44:52 UTC
python-cssmin-0.2.0-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-cssmin-0.2.0-1.fc19

Comment 7 Fedora Update System 2014-02-10 12:46:17 UTC
python-cssmin-0.2.0-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-cssmin-0.2.0-1.el6

Comment 8 Fedora Update System 2014-02-11 19:13:27 UTC
Package python-cssmin-0.2.0-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-cssmin-0.2.0-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-0510/python-cssmin-0.2.0-1.el6
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-02-15 06:59:37 UTC
python-cssmin-0.2.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-02-22 00:53:56 UTC
python-cssmin-0.2.0-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-03-01 07:13:46 UTC
python-cssmin-0.2.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.