Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2020 11:38:17 +0100
From:      Hinnerk van Bruinehsen <hvbruinehsen@stackptr.de>
To:        ports@freebsd.org
Subject:   cereal: fails to build on pure 64 bit systems
Message-ID:  <20200125103817.t52lmveitniux3dz@T3n3br4s.fritz.box>

next in thread | raw e-mail | index | archive | help

--jdidelxiozlbmcnt
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

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

--jdidelxiozlbmcnt
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
	filename="0001-cereal-fix-build-on-non-multilib-systems.patch"

>From 4e864fb1ab54ea3a21460320dab6aa6963dee52b Mon Sep 17 00:00:00 2001
From: Hinnerk van Bruinehsen <hvbruinehsen@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


--jdidelxiozlbmcnt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200125103817.t52lmveitniux3dz>