From 6dab2add282bd1437203e9b3e629123e2d044888 Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Sat, 11 Feb 2023 14:17:39 +0100 Subject: [PATCH] devel/liberasurecode: exorcise -Werror more thoroughly Looks like upstream put a few more in after I took out all of them in the previous commit. This fixes the build with LLVM 15, which takes offence in declaring parameterless function as foo() instead of foo(void). Approved by: eduardo (mentor) Differential Revision: https://reviews.freebsd.org/D38524 --- devel/liberasurecode/Makefile | 4 +++- devel/liberasurecode/files/patch-doc_Makefile.am | 7 ++++--- devel/liberasurecode/files/patch-src_Makefile.am | 11 +++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 devel/liberasurecode/files/patch-src_Makefile.am diff --git a/devel/liberasurecode/Makefile b/devel/liberasurecode/Makefile index d4780b4349730..72677c1fcfb0e 100644 --- a/devel/liberasurecode/Makefile +++ b/devel/liberasurecode/Makefile @@ -1,5 +1,6 @@ PORTNAME= liberasurecode PORTVERSION= 1.6.3 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= fuz@FreeBSD.org @@ -7,6 +8,7 @@ COMMENT= Unified Erasure Coding interface for common storage workloads WWW= https://github.com/openstack/liberasurecode LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake pkgconfig autoreconf libtool USE_GITHUB= yes @@ -15,7 +17,7 @@ USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" \ --disable-werror - +INSTALL_TARGET= install-strip TEST_TARGET= test CFLAGS_amd64= -DINTEL_SSE2 diff --git a/devel/liberasurecode/files/patch-doc_Makefile.am b/devel/liberasurecode/files/patch-doc_Makefile.am index c866972899925..9583fce18ccf0 100644 --- a/devel/liberasurecode/files/patch-doc_Makefile.am +++ b/devel/liberasurecode/files/patch-doc_Makefile.am @@ -1,10 +1,11 @@ ---- doc/Makefile.am.orig 2022-04-12 08:07:13 UTC +--- doc/Makefile.am.orig 2022-04-08 23:59:40 UTC +++ doc/Makefile.am -@@ -1,5 +1,5 @@ +@@ -1,6 +1,6 @@ DOC_MODULE=@PACKAGE@ -HTML_DIR=$(datadir)/$(DOC_MODULE)/html -+HTML_DIR=$(docdir)/html -TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) ++HTML_DIR=$(docdir)/html +TARGET_DIR=$(HTML_DIR) all-local: html/index.html + diff --git a/devel/liberasurecode/files/patch-src_Makefile.am b/devel/liberasurecode/files/patch-src_Makefile.am new file mode 100644 index 0000000000000..604b6e39ea7eb --- /dev/null +++ b/devel/liberasurecode/files/patch-src_Makefile.am @@ -0,0 +1,11 @@ +--- src/Makefile.am.orig 2023-02-11 12:58:35 UTC ++++ src/Makefile.am +@@ -32,7 +32,7 @@ liberasurecode_la_SOURCES = \ + backends/shss/shss.c \ + backends/phazrio/libphazr.c + +-liberasurecode_la_CPPFLAGS = -Werror @GCOV_FLAGS@ ++liberasurecode_la_CPPFLAGS = @GCOV_FLAGS@ + liberasurecode_la_LIBADD = \ + builtin/null_code/libnullcode.la \ + builtin/xor_codes/libXorcode.la \