Bug 1250318 - rh-vagrant1-vagrant owns unexpected files
Summary: rh-vagrant1-vagrant owns unexpected files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: softwarecollections.org
Classification: Community
Component: sclo-vagrant1
Version: 1.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Pavel Valena
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-05 07:01 UTC by Lukáš Zachar
Modified: 2016-01-06 17:10 UTC (History)
2 users (show)

Fixed In Version: sclo-vagrant1-vagrant-1.7.4-3.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-06 17:10:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukáš Zachar 2015-08-05 07:01:32 UTC
Description of problem:

Package creates, 
* on rhel-6:
/etc/rpm/macros.vagrant.rh-vagrant1
/vagrant

* on rhel-7:
/usr/lib/rpm/macros.d/macros.vagrant.rh-vagrant1

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):
rh-vagrant1-vagrant-1.7.2-5.el6.noarch
rh-vagrant1-vagrant-1.7.2-5.el7.noarch

How reproducible:
always

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


Actual results:
rh-vagrant1-vagrant 

Expected results:
1. no such file
2/3. rh-vagrant1-build

Additional info:

Comment 1 Vít Ondruch 2015-08-06 12:30:01 UTC
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 ....

Comment 7 Pavel Valena 2016-01-06 17:10:08 UTC
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.


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