Bug 2343226

Summary: "Bad substitution" when doing `make dist-configs` on source tree with dash as /bin/sh
Product: [Fedora] Fedora Reporter: Benjamin Poirier <bpoirier>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: acaringi, adscvr, airlied, bskeggs, hdegoede, hpa, josef, kernel-maint, linville, masami256, mchehab, ptalbert, steved, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Benjamin Poirier 2025-01-31 16:42:29 UTC
1. Please describe the problem:
Check out https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10
Run `make dist-configs` on a system where /bin/sh is dash
The output is

Building /centos-stream/redhat/configs/kernel-aarch64-automotive-rhel.config complete
Building /centos-stream/redhat/configs/kernel-aarch64-automotive-debug-rhel.config ...
Building /centos-stream/redhat/configs/kernel-aarch64-automotive-debug-rhel.config complete
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
./generate_all_configs.sh: 26: Bad substitution
head: cannot open '/centos-stream/redhat/configs/kernel-6.12.0*.config' for reading: No such file or directory
cat: '/centos-stream/redhat/configs/kernel-6.12.0*.config': No such file or directory
Processing /centos-stream/redhat/configs/kernel-6.12.0*.config ...
/centos-stream/Makefile:695: arch//Makefile: No such file or directory
make[3]: *** No rule to make target 'arch//Makefile'.  Stop.
make[2]: *** [Makefile:236: __sub-make] Error 2
make[1]: *** [Makefile:547: dist-configs] Error 1
make[1]: Leaving directory '/centos-stream/redhat'
make: *** [makefile:12: dist-configs] Error 2


2. What is the Version-Release number of the kernel:
Head of main branch

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

It works with centos-stream-9

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

See 1.

Reproducible: Always

Comment 1 Benjamin Poirier 2025-03-04 15:03:17 UTC
The following MR was opened to fix this issue
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3668