Bug 949833

Summary: RFE: Provide macro to create scl wrapper for binaries
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: scl-utilsAssignee: Joe Orton <jorton>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jzeleny
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1058796, 1369788, 1371936, 1372700, 1390495    
Bug Blocks: 960574, 965565    

Description Vít Ondruch 2013-04-09 06:35:19 UTC
In ruby193 SCL, there is available %{_root_bindir}/%{scl_prefix}ruby, i.e. ruby193-ruby to provide easy way how to execute ruby from SCL, without need of calling "scl enable ruby193 'ruby'". It is created by following snippet:



# Create the %%{_root_bindir} wrapper:
%if 0%{?scl:1}
mkdir -p %{buildroot}%{_root_bindir}
cat > %{buildroot}%{_root_bindir}/%{scl_prefix}ruby << 'EOF'
#!/bin/bash

COMMAND="ruby $@"
scl enable %{scl} "$COMMAND"
EOF
chmod a+x %{buildroot}%{_root_bindir}/%{scl_prefix}ruby
%endif



Since this very useful concept and is requested to be added also for other packages, it would be nice, if there is available some rpm macro, such as %scl_bin_wrapper, which would create the wrapper for us.

Comment 1 Marcela Mašláňová 2014-03-12 14:35:55 UTC
It's not sure if wrappers were to be included in collections. Let's leave it open, because automatic providing of wrappers would be much better than creating them manually.

Comment 2 Vít Ondruch 2014-03-12 14:41:52 UTC
There might be better solution as proposed in bug 1058796

Comment 3 Jan Zeleny 2014-04-08 11:46:10 UTC
Upstream ticket:
https://fedorahosted.org/SoftwareCollections/ticket/3

Comment 4 Fedora Admin XMLRPC Client 2016-05-30 14:58:31 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2016-10-12 08:02:07 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin user for bugzilla script actions 2023-09-05 00:53:40 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.