rpm packages asserting ownership of /usr/bin

Bug #1199000 reported by Daniel Bartholomew on 2013-07-08
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Galera
Status tracked in 3.x
2.x
Low
Alex Yurchenko
3.x
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

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

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

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  Edit
Everyone can see this information.

Other bug subscribers