Hello,

the newly introduced build for cereal fails to build on my system,
because I don't have 32 bit compatibility stuff enabled.

The failure is caused by the default settings of enabling portability
testing. I have attached a patch that fixes this for me by disabling the
portability tests.

I also disabled -WError for the build, because it caused a build failure
(because of unused CFLAGS for the build, -pie in my case).
Since this is a non default setting, I guess that the last change is
debatable, but while I am a big fan of -WError during development, I
think it's not that great for packaging/distribution.

WKR
Hinnerk
>From 4e864fb1ab54ea3a21460320dab6aa6963dee52b Mon Sep 17 00:00:00 2001
From: Hinnerk van Bruinehsen <hvbruineh...@stackptr.de>
Date: Sat, 25 Jan 2020 11:28:36 +0100
Subject: [PATCH] cereal: fix build on non multilib systems

---
 devel/cereal/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/devel/cereal/Makefile b/devel/cereal/Makefile
index 67d606f608dc..ba2cb834edab 100644
--- a/devel/cereal/Makefile
+++ b/devel/cereal/Makefile
@@ -22,4 +22,7 @@ GH_ACCOUNT=	USCiLab
 
 CFLAGS+=	-Wno-unused-private-field
 
+CMAKE_ON=	SKIP_PORTABILITY_TEST
+CMAKE_OFF=	WITH_WERROR
+
 .include <bsd.port.mk>
-- 
2.25.0

_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to