Skip to content

Commit

Permalink
devel/liberasurecode: exorcise -Werror more thoroughly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
clausecker committed Feb 14, 2023
1 parent 2f04ed7 commit 6dab2ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion devel/liberasurecode/Makefile
@@ -1,12 +1,14 @@
PORTNAME= liberasurecode
PORTVERSION= 1.6.3
PORTREVISION= 1
CATEGORIES= devel

MAINTAINER= fuz@FreeBSD.org
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
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions 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

11 changes: 11 additions & 0 deletions 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 \

0 comments on commit 6dab2ad

Please sign in to comment.