Bug 56111 - scripts/link-vmlinux.sh requires bash but declares #!/bin/sh
Summary: scripts/link-vmlinux.sh requires bash but declares #!/bin/sh
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-02 15:51 UTC by Lauri Kasanen
Modified: 2013-04-02 15:51 UTC (History)
0 users

See Also:
Kernel Version: 3.8.4, 3.9-rc5
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description Lauri Kasanen 2013-04-02 15:51:15 UTC
With busybox ash as /bin/sh, the kernel build (3.8.4) fails in scripts/link-vmlinux.sh with:

scripts/link-vmlinux.sh: trap: line 105: ERR: invalid signal specification

According to Denys Vlasenko, trapping ERR is not defined in POSIX, so it seems to be a bashism:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#trap

Regression, since the linking was done in a Makefile before 3.5.

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