rpm packages asserting ownership of /usr/bin

Bug #1199000 reported by Daniel Bartholomew
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Galera
Status tracked in 3.x
2.x
Fix Committed
Low
Alex Yurchenko
3.x
Fix Released
Low
Alex Yurchenko

Bug Description

the package "galera-23.2.4-1.rhel6.x86_64" is asserting that it owns the /usr/bin directory. This leads to a conflict with the 'filesystem' package:

Transaction check error:
  file /usr/bin from install of galera-23.2.4-1.rhel6.x86_64 conflicts with file from package filesystem-3.2-10.fc19.x86_64

Removing '/usr/bin' from the %files section of the galera.spec file may solve it.

Related branches

Revision history for this message
David Kedves (kedazo) wrote :

Hello,

I can confirm this problem, the same happens (even with the latest galera RPM) on the Amazon AMI distribution:

[ec2-user@ip-10-37-188-110 ~]$ wget -q https://launchpad.net/galera/3.x/25.3.5/+download/galera-25.3.5-1.rhel6.x86_64.rpm
[ec2-user@ip-10-37-188-110 ~]$ sudo rpm -iv galera-25.3.5-1.rhel6.x86_64.rpm
Preparing packages...
 file /usr/bin from install of galera-25.3.5-1.rhel6.x86_64 conflicts with file from package filesystem-2.4.30-3.8.amzn1.x86_64
[ec2-user@ip-10-37-188-110 ~]$ cat /etc/system-release
Amazon Linux AMI release 2014.03

Revision history for this message
Nirbhay Choubey (nirbhay) wrote :

Galera package should not own or alter the attributes of /usr/bin (default _bindir),
It is normally owned by filesystem package.

Dropping the following (possibly redundant) line from the spec file should fix this
issue :

=== modified file 'scripts/packages/galera.spec'
--- scripts/packages/galera.spec 2013-12-01 16:29:42 +0000
+++ scripts/packages/galera.spec 2014-04-04 20:48:38 +0000
@@ -99,7 +99,6 @@
 %config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
 %attr(0755,root,root) %{_sysconfdir}/init.d/garb

-%attr(0755,root,root) %dir %{_bindir}
 %attr(0755,root,root) %{_bindir}/garbd

 %attr(0755,root,root) %dir %{libs}

This issue has also been reported here:
https://mariadb.atlassian.net/browse/MDEV-4218

Revision history for this message
Alex Yurchenko (ayurchen) wrote :
Revision history for this message
Joe Rocklin (joe-rocklin) wrote :

We're approaching two months since a fix has been made available for this relatively simple problem. Is there a possibility of making this patch available as an RPM that other packages (like MariaDB-Galera) could make use of to allow system updates?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.