Bug 1188862 - unable to build meta package due file list including some weird path
Summary: unable to build meta package due file list including some weird path
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-03 21:16 UTC by Honza Horak
Modified: 2015-02-19 09:44 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-18 14:14:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1194181 0 unspecified CLOSED create minimal environment module automatically 2021-02-22 00:41:40 UTC

Internal Links: 1194181

Description Honza Horak 2015-02-03 21:16:08 UTC
Description of problem:
I'm unable to build a simple metapackage with the following error:
File not found: /home/hhorak/rpmbuild/BUILDROOT/scl-foo42-1.0-1.fc21.x86_64/opt/rh/scl-foo42/scl-foo42

See the scl name is included twice

file list includes some weird path:
%{_scl_scripts}/%{scl}

Version-Release number of selected component (if applicable):
# rpm -q scl-utils-build
scl-utils-build-2.0.1-2.fc21.x86_64

How reproducible:
yes

Steps to Reproduce:
1. try build meta package

Actual results:
File not found: /home/hhorak/rpmbuild/BUILDROOT/scl-foo42-1.0-1.fc21.x86_64/opt/rh/scl-foo42/scl-foo42

Expected results:
No error

Additional info:
Imho the following line is simply wrong:
--- a/macros.scl-filesystem
+++ b/macros.scl-filesystem
@@ -4,7 +4,6 @@
 %dir %attr(555,root,root) %{_scl_root}
 %dir %attr(555,root,root) %{_scl_scripts}
 %{_scl_scripts}/enable
-%{_scl_scripts}/%{scl}
 %{_root_sysconfdir}/scl/modulefiles/%{scl}
 %{_root_sysconfdir}/scl/prefixes/%scl
 %{_scl_root}/bin

Comment 1 Ľuboš Kardoš 2015-02-04 11:37:08 UTC
With scl-utils-2.0 is possible to build only new type of collections (collections with env modules). That's why rpmbuild complains about a missing file. That missing file is environment module. So this is expected behaviour. 
Request to document building of new collections is in this bug 1180638.

Comment 2 Ľuboš Kardoš 2015-02-18 14:14:59 UTC
So this is expected behaviour. Closing this bug.

Comment 3 Honza Horak 2015-02-19 09:44:23 UTC
See a related bz#1194181, which proposes to generate at least minimal env. modules config automatically -- simply to not break build of existing meta packages.


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