View | Details | Raw Unified | Return to bug 268745 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/creduce/Makefile (-24 / +21 lines)
Lines 1-33 Link Here
1
PORTNAME=	creduce
1
PORTNAME=	creduce
2
DISTVERSION=	2.10.0
2
DISTVERSION=	2.11.0.20220927
3
CATEGORIES=	devel
3
CATEGORIES=	devel
4
MASTER_SITES=	http://embed.cs.utah.edu/creduce/
5
4
6
MAINTAINER=	swills@FreeBSD.org
5
MAINTAINER=	swills@FreeBSD.org
7
COMMENT=	Produces small test cases
6
COMMENT=	Produces small test cases
8
WWW=		https://embed.cs.utah.edu/creduce/
7
WWW=		https://github.com/csmith-project/creduce
9
8
10
LLVM_VER=	80
9
BROKEN_FreeBSD_12_powerpc64=	fails to configure: cannot compile and link test program with selected LLVM
11
BUILD_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
10
12
RUN_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER} \
11
BUILD_DEPENDS=	${LOCALBASE}/bin/flex:textproc/flex
13
		topformflat:devel/delta \
12
LIB_DEPENDS=	libzstd.so:archivers/zstd
14
		astyle:devel/astyle \
13
RUN_DEPENDS=	topformflat:devel/delta \
15
		p5-Benchmark-Timer>=0:devel/p5-Benchmark-Timer \
14
		p5-Benchmark-Timer>=0:devel/p5-Benchmark-Timer \
16
		p5-Exporter-Lite>=0:devel/p5-Exporter-Lite \
15
		p5-Exporter-Lite>=0:devel/p5-Exporter-Lite \
17
		p5-File-Which>=0:sysutils/p5-File-Which \
16
		p5-File-Which>=0:sysutils/p5-File-Which \
18
		p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
17
		p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
19
		p5-Sys-CPU>=0:devel/p5-Sys-CPU \
18
		p5-Sys-CPU>=0:devel/p5-Sys-CPU \
20
		p5-Getopt-Tabular>=0:devel/p5-Getopt-Tabular
19
		p5-Getopt-Tabular>=0:devel/p5-Getopt-Tabular \
20
		p5-Term-ReadKey>=0:devel/p5-Term-ReadKey
21
21
22
BROKEN_FreeBSD_12_powerpc64=	fails to configure: cannot compile and link test program with selected LLVM
22
USES=		cmake gnome llvm:build,lib,run perl5
23
24
USE_CXXSTD=	c++14
25
USE_GITHUB=	yes
26
GH_ACCOUNT=	csmith-project
27
GH_TAGNAME=	8d56bee
28
USE_GNOME=	libxml2
23
29
24
GNU_CONFIGURE=	yes
30
# See clang_delta/CMakeLists.txt for more details
25
CONFIGURE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER} \
31
LDFLAGS+=	-lLLVM-${LLVM_VERSION} -L/${LOCALBASE}/llvm${LLVM_VERSION}/lib
26
		CC=${LOCALBASE}/bin/clang${LLVM_VER} \
27
		CXX=${LOCALBASE}/bin/clang++${LLVM_VER} \
28
		CPP=${LOCALBASE}/bin/clang-cpp${LLVM_VER}
29
32
30
USES=		autoreconf compiler gmake libtool perl5
33
CMAKE_OFF=	ENABLE_TRANS_ASSERT
34
CMAKE_ARGS=	-DLLVM_DIR=${LOCALBASE}/llvm${LLVM_VERSION}/lib/cmake/llvm \
35
		-DClang_DIR=${LOCALBASE}/llvm${LLVM_VERSION}/lib/cmake/clang
31
36
32
CFLAGS_powerpc64=	-mabi=elfv2
37
CFLAGS_powerpc64=	-mabi=elfv2
33
38
Lines 37-48 CFLAGS_powerpc64= -mabi=elfv2 Link Here
37
LLD_UNSAFE=	yes
42
LLD_UNSAFE=	yes
38
.endif
43
.endif
39
44
40
.include <bsd.port.pre.mk>
41
42
# Detect base system libc++ >= 14 by checking for COMPILER_VERSION.
43
# Not really the ideal way, but it should work.
44
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140
45
CXXFLAGS+=	-include ${FILESDIR}/builtin_is_constant_evaluated.h
46
.endif
47
48
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)b/devel/creduce/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1557826720
1
TIMESTAMP = 1672826549
2
SHA256 (creduce-2.10.0.tar.gz) = db1c0f123967f24d620b040cebd53001bf3dcf03e400f78556a2ff2e11fea063
2
SHA256 (csmith-project-creduce-2.11.0.20220927-8d56bee_GH0.tar.gz) = ca22cb970354823de06854c274daa6f19be85cfbf63e73e25dbd5fc744bdcbb7
3
SIZE (creduce-2.10.0.tar.gz) = 779318
3
SIZE (csmith-project-creduce-2.11.0.20220927-8d56bee_GH0.tar.gz) = 747676
(-)a/devel/creduce/files/builtin_is_constant_evaluated.h (-1 lines)
Removed Link Here
1
constexpr bool __builtin_is_constant_evaluated() { return false; }
(-)b/devel/creduce/files/patch-CMakeLists.txt (+16 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2022-09-27 05:17:27 UTC
2
+++ CMakeLists.txt
3
@@ -116,11 +116,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
4
     OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
5
   # XXX figure out how to get "-std=c++11 -fno-rtti" from LLVM.  That's how we
6
   # get those options in the Automake path...
7
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-strict-aliasing -Wall -Wextra -Wno-long-long -Wno-unused-parameter -Wno-missing-field-initializers")
8
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-strict-aliasing -Wall -Wextra -Wno-long-long -Wno-unused-parameter -Wno-missing-field-initializers")
9
   if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
10
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden")
11
   endif()
12
-  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
13
+#  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
14
 endif()
15
 
16
 ###############################################################################

Return to bug 268745