Red Hat Bugzilla – Bug 1250318
rh-vagrant1-vagrant owns unexpected files
Last modified: 2016-01-06 12:10:08 EST
Description of problem:
* on rhel-6:
* on rhel-7:
IMO the rpm macro should be part of rh-vagrant1-build, the /vagrant should not be there at all (it is created only on rhel-6).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpm -qf /vagrant
2. rpm -qf /etc/rpm/macros.vagrant.rh-vagrant1
3. rpm -qf /usr/lib/rpm/macros.d/macros.vagrant.rh-vagrant1
1. no such file
2 and 3 are correct. We need to have the macros always available, since they are used by %post and %preun scriptlets.
The 1 is caused by not available bash-completion. The macro with bash completion scripts location is expanded to empty string and hence the file ends up in /. The macro now fallbacks to some better value, although it is out of /opt directory. Not sure if it is the best solution ....
Sorry the rh-vagrant1 SCL in RHEL-6 is no longer supported. Files are not available.
In RHEL-7, there is no issue (files ownership is correct).
2, file /etc/rpm/macros.sclo-vagrant1-config is now owned by sclo-vagrant1-build.
3, file /usr/lib/rpm/macros.d/macros.vagrant.sclo-vagrant1 is owned by sclo-vagrant1.