Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687382 - sys-apps/netkit-base MCONFIG file generation uncompatible dash/(POSIX) echo
Summary: sys-apps/netkit-base MCONFIG file generation uncompatible dash/(POSIX) echo
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2019-06-04 18:53 UTC by Anon
Modified: 2021-01-07 15:22 UTC (History)
2 users (show)

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


Attachments
netkit-base-0.17-avoid-echo-with-options.patch (netkit-base-0.17-avoid-echo-with-options.patch,2.78 KB, patch)
2021-01-07 15:22 UTC, RumpletonBongworth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 RumpletonBongworth 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() {                                                                                                                                
    default                                                                                                                                    
    sed -i -e 's/^\([[:space:]]*\)echo -n /\1printf %s /' configure || die                                                                     
}
Comment 2 RumpletonBongworth 2021-01-07 15:22:37 UTC
Created attachment 681796 [details, diff]
netkit-base-0.17-avoid-echo-with-options.patch

Here's a patch, anyway.