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

Bug 687382

Summary: sys-apps/netkit-base MCONFIG file generation uncompatible dash/(POSIX) echo
Product: Gentoo Linux Reporter: Anon <shguy>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: jstein, kfm
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: netkit-base-0.17-avoid-echo-with-options.patch

Description Anon 2019-06-04 18:53:23 UTC
On line 336 of the configure script '-n' is passed to echo.
Since POSIX echo doesn't support any arguments,
'-n' is treated as a regular string.

This results in ```MCONFIG:1: *** missing separator.  Stop.```, on execution of make.

The easiest solution would be to merge date into the same echo command:

echo '# Generated by configure (confgen version 2) on' $(date)
Comment 1 Kerin Millar 2021-01-07 15:13:21 UTC
I don't particularly approve of using sed in this way, but it could be used to resolve the issue, as happens in some other ebuilds. For example:

src_prepare() {                                                                                                                                
    sed -i -e 's/^\([[:space:]]*\)echo -n /\1printf %s /' configure || die                                                                     
Comment 2 Kerin Millar 2021-01-07 15:22:37 UTC
Created attachment 681796 [details, diff]

Here's a patch, anyway.