FreeBSD Bugzilla – Attachment 229674 Details for
Bug 259998
lang/ponyc: unbreak clang 13 build, release maintainership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-lang-ponyc-unbreak-clang-13-build-release-maintainer.patch (text/plain), 4.28 KB, created by
Val Packett
on 2021-11-23 17:37:21 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Val Packett
Created:
2021-11-23 17:37:21 UTC
Size:
4.28 KB
patch
obsolete
>From f41f154c73282453de8b8c91def51e665c60d3b8 Mon Sep 17 00:00:00 2001 >From: Greg V <greg@unrelenting.technology> >Date: Tue, 23 Nov 2021 20:33:47 +0300 >Subject: [PATCH] lang/ponyc: unbreak clang 13 build, release maintainership > >--- > lang/ponyc/Makefile | 2 +- > lang/ponyc/files/patch-Makefile-ponyc | 11 +++++++++-- > 2 files changed, 10 insertions(+), 3 deletions(-) > >diff --git a/lang/ponyc/Makefile b/lang/ponyc/Makefile >index af9ac8aaa734..20f5c068d2f2 100644 >--- a/lang/ponyc/Makefile >+++ b/lang/ponyc/Makefile >@@ -1,94 +1,94 @@ > PORTNAME= ponyc > DISTVERSION= 0.33.2 > CATEGORIES= lang > >-MAINTAINER= greg@unrelenting.technology >+MAINTAINER= ports@FreeBSD.org > COMMENT= Pony language compiler > > LICENSE= BSD2CLAUSE > LICENSE_FILE= ${WRKSRC}/LICENSE > > ONLY_FOR_ARCHS= aarch64 amd64 > ONLY_FOR_ARCHS_REASON= undefined reference to __atomic_compare_exchange_8 > > BUILD_DEPENDS= llvm-link${LLVM_VERSION}:devel/llvm${LLVM_VERSION} > > FLAVORS= llvm_dynamic llvm_static > FLAVOR?= ${FLAVORS:[1]} > > llvm_dynamic_RUN_DEPENDS= llvm-link${LLVM_VERSION}:devel/llvm${LLVM_VERSION} > llvm_dynamic_CONFLICTS_INSTALL= ponyc-static > llvm_static_PKGNAMESUFFIX= -static > llvm_static_CONFLICTS_INSTALL= ponyc > .if ${FLAVOR} == llvm_static > COMMENT+= (statically linked with LLVM) > .endif > > USES= gmake ncurses compiler:c++11-lang > > LLVM_VERSION?= 70 > > PLIST_SUB= VERSION="${DISTVERSION}" PONYARCH="${PONYARCH}" > OPTIONS_SUB= yes > > USE_GITHUB= yes > GH_ACCOUNT= ponylang > > PORTDOCS= *.md > > MAKE_ENV= config=release verbose=true default_pic=true \ > prefix=${PREFIX} arch=${PONYARCH} \ > LLVM_CONFIG=llvm-config${LLVM_VERSION} > .if ${FLAVOR} == llvm_dynamic > MAKE_ENV+= link=llvm-dynamic > .else > MAKE_ENV+= link=llvm-static > .endif > > OPTIONS_DEFINE= DOCS DTRACE EXAMPLES > OPTIONS_EXCLUDE_aarch64= DTRACE > # Not enabling DTrace by default yet because it breaks --runtimebc ("super LTO"): > # https://github.com/ponylang/ponyc/issues/2915 > > DTRACE_MAKE_ENV= use=dtrace > > .include <bsd.port.pre.mk> > > # Pony defaults to 'native', which > # a) doesn't work on aarch64 > # b) is not appropriate for official OS packages > .if "${ARCH}" == aarch64 > PONYARCH?= armv8-a > .elif "${ARCH}" == amd64 > # Can't use 'x86-64' because atomics are required > PONYARCH?= core2 > .endif > > # keep in sync with all platforms where libunwind is available > .if (${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == aarch64) > LIB_DEPENDS+= libunwind.so:devel/libunwind > .endif > > .if ${CHOSEN_COMPILER_TYPE} == clang > # Building the bitcode with clangX and linking with llvmY often fails, > # so let's use the clang from the LLVM version that will be used by ponyc > CC= ${LOCALBASE}/bin/clang${LLVM_VERSION} > CXX= ${LOCALBASE}/bin/clang++${LLVM_VERSION} > MAKE_ENV+= runtime-bitcode=yes > PLIST_SUB+= BITCODE="" > .else > PLIST_SUB+= BITCODE="@comment " > .endif > > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pony/${DISTVERSION}/bin/ponyc > > post-install-DOCS-on: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR} > > post-install-EXAMPLES-on: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) > > .include <bsd.port.post.mk> >diff --git a/lang/ponyc/files/patch-Makefile-ponyc b/lang/ponyc/files/patch-Makefile-ponyc >index 2ce6a0c0e73c..e5485dae6654 100644 >--- a/lang/ponyc/files/patch-Makefile-ponyc >+++ b/lang/ponyc/files/patch-Makefile-ponyc >@@ -1,13 +1,20 @@ > Avoid hardcoding /usr/local/bin/clang70 as fallback linker > >---- Makefile-ponyc.orig 2019-11-02 05:19:12 UTC >+--- Makefile-ponyc.orig 2020-02-03 03:34:35 UTC > +++ Makefile-ponyc >-@@ -130,7 +130,7 @@ LINKER_FLAGS = -march=$(arch) -mtune=$(tune) $(LDFLAGS >+@@ -146,13 +146,13 @@ else >+ endif >+ >+ LIB_EXT ?= a >+-BUILD_FLAGS = -march=$(arch) -mtune=$(tune) -Werror -Wconversion \ >++BUILD_FLAGS = -march=$(arch) -mtune=$(tune) -Wconversion \ >+ -Wno-sign-conversion -Wextra -Wall >+ LINKER_FLAGS = -march=$(arch) -mtune=$(tune) $(LDFLAGS) > AR_FLAGS ?= rcs > ALL_CFLAGS = -std=gnu11 -fexceptions \ > -DPONY_VERSION=\"$(tag)\" -DLLVM_VERSION=\"$(llvm_version)\" \ > - -DPONY_COMPILER=\"$(CC)\" -DPONY_ARCH=\"$(arch)\" \ > + -DPONY_COMPILER=\"/usr/bin/cc\" -DPONY_ARCH=\"$(arch)\" \ > -DBUILD_COMPILER=\"$(compiler_version)\" \ > -DPONY_BUILD_CONFIG=\"$(config)\" \ > -DPONY_VERSION_STR=\"$(version_str)\" \ >-- >2.30.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259998
: 229674