From e0d4a5b85188e9598b8b1948b8d579d5a35b35f2 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 22 Jul 2020 10:17:26 +0000 Subject: [PATCH] net/bsdec2-image-upload: fix build on GCC architectures -W\#warnings is incorrect for GCC: cc1: error: -Werror=#warnings: No option -W#warnings MFH: 2020Q3 (fix build blanket) --- net/bsdec2-image-upload/Makefile | 10 ++++++++-- net/bsdec2-image-upload/files/extra-patch-Makefile | 10 ++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 net/bsdec2-image-upload/files/extra-patch-Makefile diff --git a/net/bsdec2-image-upload/Makefile b/net/bsdec2-image-upload/Makefile index 6d1edacba0a2..8b9aab263471 100644 --- a/net/bsdec2-image-upload/Makefile +++ b/net/bsdec2-image-upload/Makefile @@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss -USES= ssl tar:tgz uidfix +USES= compiler ssl tar:tgz uidfix CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} @@ -23,4 +23,10 @@ MAKE_ARGS+= BINDIR=${PREFIX}/bin PLIST_FILES= bin/bsdec2-image-upload -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile +.endif + +.include diff --git a/net/bsdec2-image-upload/files/extra-patch-Makefile b/net/bsdec2-image-upload/files/extra-patch-Makefile new file mode 100644 index 000000000000..fd2aeeaa7c61 --- /dev/null +++ b/net/bsdec2-image-upload/files/extra-patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig 2020-07-22 09:29:11 UTC ++++ Makefile +@@ -2,7 +2,6 @@ PROG= bsdec2-image-upload + SRCS= main.c + MAN = + WARNS ?= 3 +-CFLAGS += -Wno-error=\#warnings + BINDIR ?= /usr/local/bin + LDADD += -lcrypto -lssl +