Monday, March 04, 2019

FIX: x11/jgmenu => allow building with base-gcc

Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/x11/jgmenu/patches/patch-Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Makefile
--- patches/patch-Makefile 26 Feb 2019 16:16:05 -0000 1.1
+++ patches/patch-Makefile 5 Mar 2019 01:18:56 -0000
@@ -1,9 +1,11 @@
$OpenBSD: patch-Makefile,v 1.1 2019/02/26 16:16:05 sthen Exp $

+-Wvla, -Wunused-result not understood by base-gcc
+
Index: Makefile
--- Makefile.orig
+++ Makefile
-@@ -24,7 +24,7 @@ else
+@@ -24,10 +24,10 @@ else
datarootdir= $(prefix)/share
endif

@@ -11,7 +13,11 @@ Index: Makefile
+CFLAGS += -Wall -std=gnu89
CFLAGS += -Wextra -Wdeclaration-after-statement -Wno-format-zero-length \
-Wold-style-definition -Woverflow -Wpointer-arith \
- -Wstrict-prototypes -Wunused -Wvla -Wunused-result
+- -Wstrict-prototypes -Wunused -Wvla -Wunused-result
++ -Wstrict-prototypes -Wunused
+ CFLAGS += -Wno-unused-parameter
+ CFLAGS += -DVERSION='"$(VER)"'
+
@@ -100,18 +100,18 @@ $(DEPDIR)/%.d: ;
.PRECIOUS: $(DEPDIR)/%.d

Hi ports --

x11/jgmenu doesn't have a COMPILER line set. base-gcc does not
understand all the warnings listed in the Makefile. If we remove those
warnings, then base-gcc will compile jgmenu just fine.

No bump, since this doesn't change the package in any way.

Noticed while reading through the latest macppc ports bulk logs.

OK?

~Brian

No comments:

Post a Comment