Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527644 - app-shells/dash- disable LINENO support
Summary: app-shells/dash- disable LINENO support
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2014-10-31 18:15 UTC by Alexander Tsoy
Modified: 2020-03-23 18:41 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2014-10-31 18:15:48 UTC
There are a lot of build failures reported recently which are reproducible only with dash- and /bin/sh -> dash symlink. This is because debian dropped patch "0003-VAR-Disable-LINENO-support.diff" (dash ebuilds applies all debian patches) and now using --disable-lineno configure option instead (see [1]). So please consider also disabling LINENO support in Gentoo and restore the old behavior of <dash-0.5.8.

It seems debian removes LINENO support because of a large amount of build failures, see [2] for example. From autoconf faq [3]:

"Most modern shells provide the current line number in LINENO. Its value is the line number of the beginning of the current command. M4sh, and hence Autoconf, attempts to execute configure with a shell that supports LINENO."

So if LINENO is not supported by /bin/sh, then configure prefer to reload itself in bash.

Comment 1 Alexander Tsoy 2014-10-31 18:20:33 UTC
Of course, there is an alternative solution: fight with uncooperative upstreams :)
Comment 2 SpanKY gentoo-dev 2014-10-31 19:22:12 UTC
yeah, we don't want to enable LINENO in our builds either
Comment 3 SpanKY gentoo-dev 2014-10-31 19:25:42 UTC
should be all set now in the tree; thanks for the report!

Commit message: Disable LINENO support via the new configure flag
Comment 4 Alexander Tsoy 2014-10-31 21:43:44 UTC

(In reply to Alexander Tsoy from comment #0)
> It seems debian removes LINENO support because of a large amount of build
> failures, see [2] for example.

Leaving another related link here, just in case: