Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890939 - sys-cluster/lmod-8.7.23 fails to compile (DASH-SYSTEM): configure: 4255: Bad substitution
Summary: sys-cluster/lmod-8.7.23 fails to compile (DASH-SYSTEM): configure: 4255: Bad ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2023-01-15 13:49 UTC by Agostino Sarubbo
Modified: 2025-01-10 16:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,48.78 KB, text/plain)
2023-01-15 13:49 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,13.73 KB, text/plain)
2023-01-15 13:49 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-01-15 13:49:04 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-cluster/lmod-8.6.14 fails to compile (DASH-SYSTEM).
Discovered on: amd64 (internal ref: dash_tinderbox)

NOTE:
(DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash.
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-15 13:49:06 UTC
Created attachment 848567 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-15 13:49:07 UTC
Created attachment 848569 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2024-03-22 08:28:57 UTC
dash_tinderbox has reproduced this issue with version 8.7.23 - Updating summary.
Comment 4 Bob Dröge 2024-12-23 10:13:58 UTC
The same issue was also encountered in https://github.com/gentoo/gentoo/pull/39798. It looks like it's because of the following substring expansions used in Lmod's configure script, which are not supported by dash:

${PATH_TO_LUA:0:1}
${PATH_TO_LUAC:0:1}
Comment 5 Bob Dröge 2024-12-23 22:22:15 UTC
This only seems to happen on systems without bash and with /bin/sh -> dash. I've opened an issue in the Lmod Github repo: https://github.com/TACC/Lmod/issues/741.
Comment 6 Larry the Git Cow gentoo-dev 2025-01-10 16:03:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f63a497166dfbfb890acb620709b7256757c6f7d

commit f63a497166dfbfb890acb620709b7256757c6f7d
Author:     Bob Dröge <b.e.droge@rug.nl>
AuthorDate: 2024-12-20 15:42:22 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-01-10 16:02:33 +0000

    sys-cluster/lmod: version bump to 8.7.55
    
    Closes: https://github.com/gentoo/gentoo/pull/39798
    Closes: https://bugs.gentoo.org/890939
    Signed-off-by: Bob Dröge <b.e.droge@rug.nl>
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sys-cluster/lmod/Manifest                          |   1 +
 ...od-8.7.55-fix-bashism-in-configure-script.patch | 256 +++++++++++++++++++++
 sys-cluster/lmod/lmod-8.7.55.ebuild                | 137 +++++++++++
 sys-cluster/lmod/lmod-9999.ebuild                  |  13 +-
 4 files changed, 402 insertions(+), 5 deletions(-)