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

Bug 508676

Summary: app-mobilephone/smstools-3.1.15 with sys-devel/make-4.0 - Makefile:51: *** recipe commences before first target. Stop.
Product: Gentoo Linux Reporter: Mike Benson <mike>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of emerge --info
Makefile patch to resolve build problem
Modified ebuild

Description Mike Benson 2014-04-25 14:09:51 UTC
Created attachment 375662 [details]
output of emerge --info

This package does not build, failing with the following error:
Makefile:51: *** recipe commences before first target.  Stop.

This problem has apparently been known upstream for some time, it is due to a missing whitespace in the topmost makefile (smstools3/src/Makefile)

A patch is enclosed which repairs the issue, and package now builds correctly.
Comment 1 Mike Benson 2014-04-25 14:14:44 UTC
Created attachment 375664 [details, diff]
Makefile patch to resolve build problem
Comment 2 Mike Benson 2014-04-25 14:15:33 UTC
Created attachment 375666 [details]
Modified ebuild
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-25 14:51:14 UTC
Comment on attachment 375666 [details]
Modified ebuild

--- smstools-3.1.15-r1.ebuild   2013-12-22 10:39:34.000000000 +0100
+++ -   2014-04-25 16:51:09.076266613 +0200
@@ -27,6 +27,7 @@
 }
 src_prepare() {
+       epatch ${FILESDIR}/3.1.15-Makefile.patch
        if use stats; then
                sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
                        "${S}/src/Makefile" || die
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2014-05-06 12:18:39 UTC
+*smstools-3.1.15-r2 (06 May 2014)
+
+  06 May 2014; Tony Vroon <chainsaw@gentoo.org> -smstools-3.1.14.ebuild,
+  -smstools-3.1.14-r1.ebuild, -smstools-3.1.14-r2.ebuild,
+  -smstools-3.1.15.ebuild, +smstools-3.1.15-r2.ebuild,
+  +files/3.1.15-makefile-whitespace.patch:
+  Fixes by Mike Benson to cope with the less forgiving behaviour of GNU Make
+  4.0; closes bug #408676.

Thank you Mike, and apologies for the delay there. Let's try to get this stable by say, the end of May?