Bug 1402704

Summary: hammer on rhel6 issues warnings about missing devtoolset-4
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, dhlavacd, ehelms, inecas, mhulan, tstrachota
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-16 14:36:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lukas Pramuk 2016-12-08 08:42:47 UTC
Description of problem:
every hammer command on rhel6 issues warnings about missing devtoolset-4

Version-Release number of selected component (if applicable):
satellite-6.3.0-11.1.beta.el6sat.noarch (snap8)
rh-nodejs4-runtime-2.2-9.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. # hammer <any command>
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
...

Actual results:
warnings 

Expected results:
no warnings

Comment 2 Lukas Pramuk 2016-12-08 08:50:27 UTC
# tail -4  /opt/rh/rh-nodejs4/enable
# new nodejs bundles v8
# we use dts-4 in rhel6 now because gcc/g++ from official repositories
# are too old for new Node/v8 (and node-gyp)
. scl_source enable devtoolset-4

If rh-nodejs4 for rhel6 now requires devtoolset-4 then the rpm should have it in its requires, and it's not there:

# rpm -qR rh-nodejs4-runtime-2.2-9.el6.x86_64
/usr/bin/scl_source  
python(abi) = 2.6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

>>> rh-nodejs4-runtime el6 should require devtoolset-4

Comment 4 Lukas Pramuk 2016-12-08 09:38:31 UTC
Workaround is to run:

# yum install devtoolset-4-runtime

Comment 5 Tomas Strachota 2016-12-08 14:37:08 UTC
This is a packaging problem with tfm scl. The same error appears anytime you enable tfm:

$ scl enable tfm 'bash -c "whoami"'
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
tstracho

Comment 6 Eric Helms 2016-12-16 14:36:26 UTC
This is a bug in the RHSCL rh-nodejs4 collection and not our packaging. The bug has been filed previously and should propagate via updates to RHSCL. Due to that, I'm closing this BZ.

https://bugzilla.redhat.com/show_bug.cgi?id=1362169