Bug 2343226 - "Bad substitution" when doing `make dist-configs` on source tree with dash as /bin/sh
Summary: "Bad substitution" when doing `make dist-configs` on source tree with dash as...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-31 16:42 UTC by Benjamin Poirier
Modified: 2025-03-04 15:03 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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