Bug 1259751

Summary: ksh syntax error from /etc/profile.d/scl-init.sh
Product: [Fedora] Fedora Reporter: Tom Horsley <horsley1953>
Component: scl-utilsAssignee: Panu Matilainen <pmatilai>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bkabrda, ed.greshko, hhorak, jorton, jzeleny, lkardos, wjyoung65
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:03:46 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:
Embargoed:

Description Tom Horsley 2015-09-03 13:24:58 UTC
Description of problem:

I modified /etc/profile to tell me which profile.d script it was running
so I could see which one caused a syntax error:

Running profile for /etc/profile.d/scl-init.sh
/etc/profile[69]: .: syntax error: `(' unexpected

The user that gets this error has his shell set to /bin/ksh which comes
from the ksh-20120801-24.fc22.x86_64 package.

Version-Release number of selected component (if applicable):
scl-utils-2.0.1-2.fc22.x86_64


How reproducible:
every time

Steps to Reproduce:
1.log in as user that has /bin/ksh shell
2.see syntax error message
3.

Actual results:
syntax error

Expected results:
no error

Additional info:

I have no idea why scl-utils is installed (or what it does, since the web page referenced in the rpm info is way to cryptic to understand), but nothing seemed to depend on it so I solved the problem with "dnf erase scl-utils". I just figured I should record this bug in case anyone cared.

Comment 1 Ľuboš Kardoš 2015-09-03 13:44:39 UTC
This should be fixed in upstream: https://github.com/sclorg/scl-utils/commit/c0f59882fddfd57439d773e74377e89acc826150 and I will push this into fedora too.

Basically scl-utils is a tool for using Software Collections and Software Collections is technology that makes possible to build and concurrently install multiple versions of the same RPM packages on a system.

Comment 2 Ed Greshko 2015-09-03 14:41:00 UTC
The problem with the script is that it is "bash" specific.

bash uses the format

function scl()

while in ksh it is simply

scl()

I suppose the it would be wise for the script to execute differently based on the calling shell.

Comment 3 Tom Horsley 2016-01-27 12:48:20 UTC
This is still busted in fedora 23, so apparently the upstream fix never got pushed (or wasn't really a fix :-).

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

Comment 5 Fedora End Of Life 2016-07-19 17:46:20 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 Honza Horak 2017-02-14 17:25:05 UTC
There was no release after this issue was reported, that would seem to fix this, so re-opening to check whether it was properly fixed or not. My suspicion is it was not.

Comment 7 Wayne Young 2017-03-09 14:13:52 UTC
Can confirm that I see this problem in Fedora25. RPM reports scl-utils-2.0.1-10.fc25.x86_64

Comment 8 Panu Matilainen 2017-03-20 10:26:44 UTC
Fixed upstream but pending Fedora fix -> moving to POST

Comment 9 Fedora End Of Life 2017-11-16 19:33:41 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-12-12 10:03:46 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.