Build failure as invalid use of return in arch-has-odm-enabled.sh removes AAEON modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-hwe-5.11 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
[Steps to reproduce from scratch]
1. Download ubuntu-
sudo apt-get update
sudo apt-get -y dist-upgrade
2. Restart, login to the updated Ubuntu, and open GNOME Terminal to type the following commands to prepare linux-hwe-5.11 build:
sudo apt-get install -y --install-suggests build-essential
sudo apt-get build-dep -y linux-image-
mkdir ~/workspace
cd ~/workspace
apt-get source linux-image-
3. Type the following command to make /bin/sh to point to bash:
sudo ln -sf bash /bin/sh
4. Type the following command to build linux-hwe-5.11 and reproduce the error:
cd ~/workspace/
time dpkg-buildpackage --no-sign -us -ui -uc --unsigned-changes
[The failure]
Step 4 terminates with the following error message, quoting:
Debug: module-
II: Checking modules for generic...
reading new modules...read 5836 modules.
reading old modules...
MISS: gpio-aaeon
MISS: hwmon-aaeon
MISS: leds-aaeon
MISS: mfd-aaeon
MISS: wdt_aaeon
NEW : ks8851_spi
NEW : ks8851_common
NEW : ks8851_par
read 5838 modules : new(3) missing(5)
EE: Missing modules (start begging for mercy)
make: *** [debian/
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
real 57m1.098s
user 554m59.082s
sys 86m12.597s
End quote.
[The error]
The executable shell script ~/workspace/
grep AAEON ~/workspace/
grep AAEON ~/workspace/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
/home/builder/
Hence, the AAEON modules are not built, resulting in the five missing modules and the build failure.
[The fix]
Replace the use of `return' in the script ~/workspace/
Debug: module-
II: Checking modules for generic...
reading new modules...read 5841 modules.
reading old modules...
NEW : ks8851_common
NEW : ks8851_par
NEW : ks8851_spi
read 5838 modules : new(3) missing(0)
II: New modules (you've been busy, wipe the poop off your nose)
II: Done
[...]
Debug: module-
II: Checking modules for lowlatency...
reading new modules...read 5842 modules.
reading old modules...
NEW : ks8851_common
NEW : ks8851_par
NEW : ks8851_spi
read 5839 modules : new(3) missing(0)
II: New modules (you've been busy, wipe the poop off your nose)
II: Done
[...]
real 64m38.885s
user 551m1.081s
sys 86m39.039s
End quote.
tags: | added: patch |