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

Bug 891059

Summary: www-servers/webfs-1.21 fails to compile (DASH-SYSTEM): Make.config:1: empty variable name
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Alexey Shvetsov <alexxy>
Status: CONFIRMED ---    
Severity: normal CC: hodge
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Added patch to fix bashism

Description Agostino Sarubbo gentoo-dev 2023-01-16 07:56:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-servers/webfs-1.21 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-16 07:56:59 UTC
Created attachment 848671 [details]
build.log

build log and emerge --info
Comment 2 Watcom 2023-08-24 17:46:12 UTC
Created attachment 868641 [details, diff]
Added patch to fix bashism

This is not a bug in dash. The following line in mk/Autoconf.mk:

    @echo -e "$(make-config-q)" > $@

is a bashism. Quoting the POSIX standard for "echo":

    "Implementations shall not support any options."

The patch I attached fixes the problem by changing it to printf, which is the portable way to do it.