Bug 1195391 - identify and declare bash dependencies explicitly
Summary: identify and declare bash dependencies explicitly
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dirk Mueller
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-01 12:46 UTC by Dirk Mueller
Modified: 2024-07-12 16:30 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Mueller 2022-02-01 12:46:30 UTC
There is a lot of fear that the openSUSE and SUSE distributions are, due to historic reason alone always assuming that /bin/sh is a symlink to bash, so that scripts executed with /bin/sh are actually only executable with bash. 

in order to explore that dependency, we need to figure out how many scripts actually use bash specifics when being invoked for /bin/sh and then fix these to declare the bash dependency if they have it. 

this bug is a tracker issue for fixes related to that.
Comment 1 OBSbugzilla Bot 2022-02-01 13:20:03 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/950425 Factory / rpm
Comment 2 OBSbugzilla Bot 2022-02-02 07:30:03 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/950645 Factory / ncurses
Comment 3 OBSbugzilla Bot 2022-02-02 08:20:08 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/950665 Factory / ncurses
https://build.opensuse.org/request/show/950667 Factory / go1.9
Comment 4 OBSbugzilla Bot 2022-02-02 09:40:03 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/950686 Factory / ncurses
Comment 5 Stefan Dirsch 2022-02-08 09:22:52 UTC
Is there a good reference about the differences between bourne shell and bash you could provide? 

How can I test changes easily? Do we have some small shell being compatible to bourne shell but not compatible to bash, which would be recommended for testing? Apparently using "#!/bin/sh" doesn't do the job.

What is the motivation for this? Do we plan to switch to a different shell (maybe for only some products) or do we want to be prepared for such a change - just in case? 

Thanks!
Comment 6 Stefan Dirsch 2022-02-10 09:44:34 UTC
By accident I found this:

https://build.opensuse.org/package/rdiff/openSUSE:Factory/dash?linkrev=base&rev=28

So testing with dash would be the way to go here.
Comment 7 Dirk Mueller 2022-02-10 10:23:29 UTC
(In reply to Stefan Dirsch from comment #5)

> Is there a good reference about the differences between bourne shell and
> bash you could provide? 

not really, I typically test with "dash" and use "checkbashisms" (packaged in factory and others) for clues on what goes wrong. 

> How can I test changes easily? Do we have some small shell being compatible
> to bourne shell but not compatible to bash, which would be recommended for
> testing? Apparently using "#!/bin/sh" doesn't do the job.

simply install "dash" and run the script with "dash" for local verification. (or busybox-sh if you want, which is the actual target)

> What is the motivation for this? Do we plan to switch to a different shell
> (maybe for only some products) or do we want to be prepared for such a
> change - just in case? 

For now its a correctness problem, but there's a project where we need a very minimal system, so busybox-sh will be /bin/sh (and there won't be a bin/bash). 

for openSUSE nothing is planned as far as I can say. while dash is faster in startup (and I happen to like the package maintainer), I am not planning to push it as default shell.
Comment 8 Dirk Mueller 2022-02-10 10:25:22 UTC
(In reply to Stefan Dirsch from comment #6)
> So testing with dash would be the way to go here.

Thats what I'm doing. if you want to join the effort, there are a smallish handful of graphics and xorg related packages that fail :)

my playground is https://build.opensuse.org/project/show/home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX but beware, it might also contain random other breakages, as I use this for anything that I'm experimenting with.
Comment 9 Stanislav Brabec 2022-02-17 10:22:49 UTC
Regarding the kbd submission:

When I wrote the kbdsettings script, I decided to use #!/bin/bash because I thought that ${VAR:-value if unset or null} is a bash-only feature not being a part of the standard Bourne Shell. And $(command) as well.

But maybe it is supported in all shells that can provide /bin/sh.

Is there any document, which shell features can be used with #!/bin/sh?
Comment 10 Dirk Mueller 2022-02-22 20:47:48 UTC
(In reply to Stanislav Brabec from comment #9)
> But maybe it is supported in all shells that can provide /bin/sh.

Its fine to depend on bash for now, don't worry about it. if it becomes a problem we can look at making the script posix sh compatible. 

> Is there any document, which shell features can be used with #!/bin/sh?

Well, the answer is the POSIX:2008 or SUS specification ;)

I find

https://mywiki.wooledge.org/Bashism

a good reference as well as the "checkbashism" utility.
Comment 12 OBSbugzilla Bot 2022-07-12 20:40:02 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/988728 Factory / suse-module-tools
Comment 13 OBSbugzilla Bot 2022-08-15 22:40:03 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/995234 Factory / fuse-exfat
Comment 14 OBSbugzilla Bot 2022-08-18 12:40:03 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/997731 Factory / gdk-pixbuf
https://build.opensuse.org/request/show/997732 Factory / gtk3
https://build.opensuse.org/request/show/997733 Factory / gtk2
Comment 20 Swamp Workflow Management 2022-09-07 16:24:22 UTC
SUSE-SU-2022:3153-1: An update that solves one vulnerability and has one errata is now available.

Category: security (important)
Bug References: 1194633,1195391
CVE References: CVE-2021-44648
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    gdk-pixbuf-2.42.9-150400.5.6.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    gdk-pixbuf-2.42.9-150400.5.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 21 OBSbugzilla Bot 2022-09-22 17:55:04 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/1005454 Factory / python-pytz
Comment 22 Swamp Workflow Management 2022-09-26 16:28:01 UTC
SUSE-RU-2022:3388-1: An update that has 6 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1191036,1194319,1195391,1202100,1202101,1202826
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1, google-osconfig-agent-20220801.00-150000.1.22.1
openSUSE Leap 15.3 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1, google-osconfig-agent-20220801.00-150000.1.22.1
SUSE Linux Enterprise Module for Public Cloud 15-SP4 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1
SUSE Linux Enterprise Module for Public Cloud 15-SP3 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1, google-osconfig-agent-20220801.00-150000.1.22.1
SUSE Linux Enterprise Module for Public Cloud 15-SP2 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1, google-osconfig-agent-20220801.00-150000.1.22.1
SUSE Linux Enterprise Module for Public Cloud 15-SP1 (src):    google-guest-agent-20220713.00-150000.1.29.1, google-guest-oslogin-20220721.00-150000.1.30.1, google-osconfig-agent-20220801.00-150000.1.22.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 25 Swamp Workflow Management 2022-11-29 14:20:25 UTC
SUSE-RU-2022:4268-1: An update that has one recommended fix and contains one feature can now be installed.

Category: recommended (moderate)
Bug References: 1195391
CVE References: 
JIRA References: SLE-24655
Sources used:
SUSE Linux Enterprise Module for Containers 15-SP4 (src):    kubernetes1.23-1.23.9-150300.7.3.5
SUSE Linux Enterprise Module for Containers 15-SP3 (src):    kubernetes1.23-1.23.9-150300.7.3.5

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 27 Swamp Workflow Management 2023-01-09 14:34:04 UTC
SUSE-RU-2023:0051-1: An update that has four recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1195391,1200107,1203092,1204423
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap Micro 5.3 (src):    suse-module-tools-15.4.15-150400.3.5.1
openSUSE Leap 15.4 (src):    suse-module-tools-15.4.15-150400.3.5.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    suse-module-tools-15.4.15-150400.3.5.1
SUSE Linux Enterprise Micro 5.3 (src):    suse-module-tools-15.4.15-150400.3.5.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 32 Maintenance Automation 2023-03-02 16:30:08 UTC
SUSE-SU-2023:0603-1: An update that solves two vulnerabilities and has four fixes can now be installed.

Category: security (important)
Bug References: 1191468, 1195391, 1195838, 1202100, 1202101, 1208723
CVE References: CVE-2021-38297, CVE-2022-23806
Sources used:
Public Cloud Module 12 (src): google-guest-agent-20230221.00-1.29.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 33 Maintenance Automation 2023-03-02 16:30:16 UTC
SUSE-SU-2023:0601-1: An update that solves two vulnerabilities and has six fixes can now be installed.

Category: security (important)
Bug References: 1191468, 1194319, 1195391, 1195838, 1202100, 1202101, 1202826, 1208723
CVE References: CVE-2021-38297, CVE-2022-23806
Sources used:
Public Cloud Module 12 (src): google-osconfig-agent-20230222.00-1.20.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 34 Maintenance Automation 2023-03-02 16:30:21 UTC
SUSE-SU-2023:0600-1: An update that solves two vulnerabilities and has two fixes can now be installed.

Category: security (important)
Bug References: 1191468, 1195391, 1195838, 1208723
CVE References: CVE-2021-38297, CVE-2022-23806
Sources used:
openSUSE Leap 15.4 (src): google-guest-agent-20230221.00-150000.1.34.1
Public Cloud Module 15-SP1 (src): google-guest-agent-20230221.00-150000.1.34.1
Public Cloud Module 15-SP2 (src): google-guest-agent-20230221.00-150000.1.34.1
Public Cloud Module 15-SP3 (src): google-guest-agent-20230221.00-150000.1.34.1
Public Cloud Module 15-SP4 (src): google-guest-agent-20230221.00-150000.1.34.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 37 OBSbugzilla Bot 2023-03-20 13:25:06 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/1073225 Factory / gobject-introspection
Comment 38 Maintenance Automation 2023-03-31 08:30:04 UTC
SUSE-FU-2023:1706-1: An update that contains two features and has four feature fixes can now be installed.

Category: feature (important)
Bug References: 1195391, 1207053, 1207784, 1208751
Jira References: PED-2803, PED-3000
Sources used:
openSUSE Leap 15.4 (src): spack-0.19.1-150400.12.5.3
HPC Module 15-SP4 (src): spack-0.19.1-150400.12.5.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 39 Maintenance Automation 2023-03-31 08:30:08 UTC
SUSE-FU-2023:1705-1: An update that contains four features and has five feature fixes can now be installed.

Category: feature (important)
Bug References: 1195391, 1198212, 1207053, 1207784, 1208751
Jira References: PED-2803, PED-3000, SLE-22679, SLE-22684
Sources used:
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): clingo-5.5.0-150300.7.6.6, spack-0.19.1-150300.5.16.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): clingo-5.5.0-150300.7.6.6, spack-0.19.1-150300.5.16.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 53 Maintenance Automation 2023-09-15 08:30:09 UTC
SUSE-RU-2023:3611-1: An update that has five fixes can now be installed.

Category: recommended (moderate)
Bug References: 1195391, 1205161, 1207778, 1213240, 1214140
Sources used:
openSUSE Leap 15.4 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
openSUSE Leap 15.5 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Micro for Rancher 5.3 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Micro 5.3 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Micro for Rancher 5.4 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Micro 5.4 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
Basesystem Module 15-SP4 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
Basesystem Module 15-SP5 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
Desktop Applications Module 15-SP4 (src): brltty-6.4-150400.4.3.3, pulseaudio-15.0-150400.4.2.2
Desktop Applications Module 15-SP5 (src): brltty-6.4-150400.4.3.3, pulseaudio-15.0-150400.4.2.2
Development Tools Module 15-SP4 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
Development Tools Module 15-SP5 (src): brltty-6.4-150400.4.3.3, sysuser-tools-3.2-150400.3.5.3, pulseaudio-15.0-150400.4.2.2
SUSE Package Hub 15 15-SP4 (src): pulseaudio-15.0-150400.4.2.2
SUSE Package Hub 15 15-SP5 (src): pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Workstation Extension 15 SP4 (src): pulseaudio-15.0-150400.4.2.2
SUSE Linux Enterprise Workstation Extension 15 SP5 (src): pulseaudio-15.0-150400.4.2.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 56 OBSbugzilla Bot 2024-02-01 13:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1195391) was mentioned in
https://build.opensuse.org/request/show/1143345 Factory / python-pytz
Comment 58 Maintenance Automation 2024-06-19 08:30:29 UTC
SUSE-SU-2024:2077-1: An update that solves one vulnerability and has two security fixes can now be installed.

Category: security (important)
Bug References: 1195391, 1219276, 1223903
CVE References: CVE-2022-48622
Maintenance Incident: [SUSE:Maintenance:34160](https://smelt.suse.de/incident/34160/)
Sources used:
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Manager Proxy 4.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Manager Retail Branch Server 4.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Manager Server 4.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
openSUSE Leap 15.4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
openSUSE Leap Micro 5.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
openSUSE Leap Micro 5.4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
openSUSE Leap 15.5 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Micro 5.3 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Micro 5.4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Micro 5.5 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
Basesystem Module 15-SP5 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 59 Maintenance Automation 2024-06-19 08:30:34 UTC
SUSE-SU-2024:2076-1: An update that solves one vulnerability and has two security fixes can now be installed.

Category: security (important)
Bug References: 1195391, 1219276, 1223903
CVE References: CVE-2022-48622
Maintenance Incident: [SUSE:Maintenance:34195](https://smelt.suse.de/incident/34195/)
Sources used:
openSUSE Leap 15.6 (src):
 gdk-pixbuf-2.42.12-150600.3.3.1
Basesystem Module 15-SP6 (src):
 gdk-pixbuf-2.42.12-150600.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 60 Maintenance Automation 2024-07-12 16:30:40 UTC
SUSE-SU-2024:2077-2: An update that solves one vulnerability and has two security fixes can now be installed.

Category: security (important)
Bug References: 1195391, 1219276, 1223903
CVE References: CVE-2022-48622
Maintenance Incident: [SUSE:Maintenance:34160](https://smelt.suse.de/incident/34160/)
Sources used:
SUSE Linux Enterprise Micro 5.5 (src):
 gdk-pixbuf-2.42.12-150400.5.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.