Bug 1402704 - hammer on rhel6 issues warnings about missing devtoolset-4
Summary: hammer on rhel6 issues warnings about missing devtoolset-4
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 08:42 UTC by Lukas Pramuk
Modified: 2017-04-25 16:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-16 14:36:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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