package/smstools3: fix for recent make
PATCH 1/1 package/smstools3: fix for recent make
smstools3 defines variables in the middle of a recipe, which make-3.81 accepts, but make-3.82 and later whine about.
Fixes:
http://autobuild.buildroot.net/results/7fa/7fa839c7268256cb4f3b8728b3f50818cf3d3670/
Signed-off-by "Yann E. MORIN" <[email protected]>
Cc Romain Naour <[email protected]>
---
Note: I only have make-3.81, so I can't really test this would fix the autobuilder issue. Still, the Makefile really is wrong.
--- .../smstools3/smstools3-0000-fix-Makefile.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/smstools3/smstools3-0000-fix-Makefile.patch
package/smstools3/smstools3-0000-fix-Makefile.patch new file +29 -0
@@ -0,0 +1,29 @@ +Makefile: fix rules + +In a Makefile, recipes should follow rules, there can not be variable +definitions in-between. + +Although make-3.81 is happy about it, make-4.0 (and probably 3.82 too) +do whine loudly. + +Signed-off-by: "Yann E. MORIN" <[email protected]> + +diff -durN smstools3-3.1.15.orig/src/Makefile smstools3-3.1.15/src/Makefile +--- smstools3-3.1.15.orig/src/Makefile 2010-09-21 13:29:14.000000000 +0200 ++++ smstools3-3.1.15/src/Makefile 2014-09-01 22:27:02.719939329 +0200 +@@ -39,14 +39,13 @@ + + all: smsd + +-smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o +- + ifneq (,$(findstring SOLARIS,$(CFLAGS))) + ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS))) + override LFLAGS += -lsocket -lnsl + endif + endif + ++smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o + ifneq (,$(findstring NOSTATS,$(CFLAGS))) + $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) + else
Signature · 1 line
1.9.1
PATCH 1/1 package/smstools3: fix for recent make
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
smstools3 defines variables in the middle of a recipe, which make-3.81 accepts, but make-3.82 and later whine about.
Fixes:
Quoted 8 lines
http://autobuild.buildroot.net/results/7fa/7fa839c7268256cb4f3b8728b3f50818cf3d3670/Signed-off-by "Yann E. MORIN" <[email protected]>Cc Romain Naour <[email protected]>---
Note: I only have make-3.81, so I can't really test this would fix the autobuilder issue. Still, theMakefilereally is wrong.
Committed, thanks. Don't forget to send the patch upstream.
Signature · 1 line
Bye, Peter Korsgaard