Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 527644

Summary: app-shells/dash-0.5.8.1: disable LINENO support
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=526268
http://bugs.debian.org/582952
https://bugs.gentoo.org/show_bug.cgi?id=687002
https://bugs.gentoo.org/show_bug.cgi?id=714092
Whiteboard:
Package list:
Runtime testing required: ---

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-0.5.8.1 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.


[1] http://metadata.ftp-master.debian.org/changelogs//main/d/dash/dash_0.5.8-2_changelog
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23766048
[3] https://www.gnu.org/software/automake/faq/autoconf.html
Comment 1 Alexander Tsoy 2014-10-31 18:20:33 UTC
Of course, there is an alternative solution: fight with uncooperative upstreams :)
https://bugzilla.gnome.org/show_bug.cgi?id=738835
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
http://sources.gentoo.org/app-shells/dash/dash-0.5.8.1-r1.ebuild?rev=1.1
Comment 4 Alexander Tsoy 2014-10-31 21:43:44 UTC
Thanks!

(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:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582952