From nobody Wed Apr 27 16:53:47 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E5D7F19970DC; Wed, 27 Apr 2022 16:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpPwC68Yyz4X0g; Wed, 27 Apr 2022 16:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651078427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VcRR8G2DD1D44mLGjYtA+Nnm8DMI0PeRFYGYzXYBDmI=; b=XhdAqpuEPHEzRDjfh8sO3Vi25BlpxVBDLNZElAadwEgZWZY9lA5OaW8vLiKD9miWI0d4Qp BWbEo+xfDV8XjtcN4Q6llMMnW6tk0UHB9fue3GckUhcVw3eYjtOfL/f3veCeVRyshKEj3R S4ArRc1Im3ujsniAw5mxXdSKkxmkBAbggFfVojdBNHRD+FdBLkaP5Sz95vAohsHhBzy/mD fkY6/Mnfr3BWyL9x6CRJeeqg9z7rT+SbE5qfmV7tlZkQ55RmYqXMDamuePGMvf7g9i5cTh uz4O08Jl9PYV2HjJTkYQcX+FSqPe1QgcMKi/5VMWuDPI5Z3zmNMfmaswuZe03Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B339E27A4A; Wed, 27 Apr 2022 16:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23RGrlN9043340; Wed, 27 Apr 2022 16:53:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23RGrlI9043339; Wed, 27 Apr 2022 16:53:47 GMT (envelope-from git) Date: Wed, 27 Apr 2022 16:53:47 GMT Message-Id: <202204271653.23RGrlI9043339@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tijl Coosemans Subject: git: 975a5c105757 - main - devel/libunwind: use base system unwind.h List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tijl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 975a5c1057579603c4041c2b8e3ac0933ea0eb89 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651078427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VcRR8G2DD1D44mLGjYtA+Nnm8DMI0PeRFYGYzXYBDmI=; b=XRdM26HQ62P9HirF5hvRadUGbq/M/+qKJp//T8MbOidEgHgFG5fn642fW6FGTheVlfnOJI T+Lf//isWakGfP39QP+3J2XOfXcSu5uj08/h4YZQdqu0M6fcxO/vYlQQl8/2WhuOpHJy0T 8U8ew2QgE1iA3+Q0qim7GwwExVbWRG7GH1+rhDglOfFcKPUqA98ExmaVQLCTJSgSI5YUdZ Com/oPZNx6LjItd/dFyOHlMZdW7jK9ASIY3CBjCeVMtViU3dTZB3OoOboyh4dtsH80Vwwi xtFXBhIlScRGlMX+KtQ0+5KvekWfjJhrXFSwH/J/1Ys+XO41iibwefHQHrP0yQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651078427; a=rsa-sha256; cv=none; b=D++tq2YmU+eukKf9MoifqydJD21bQOwxqRg9k0QfVviWPIeQJq5tbfPd4Sp/w+4XO24ifo osmayP5Sx7fClX34oo1+JGcb1h4LvluPZCWB28InjnqRg1QtFBBmrN16/kw/v17ZjwwQml tN6zM2e8CGDl0WZGgesmw+hkDR0LQHeP5ixIrkIyaZ4QoVkinJitTggTuwpL4hScYMqd3k XgGtTb1uJayfe/nYV/kE58xmGUwcjhHdmXulVhXEutImIsmo46/V9Mz2AyDRReNALs+Uli 8/VUw81B/arseo/2GrLLDHA7mXmAoxboUnGM6CVNluq8uvnfxHAI6JTbQxjlqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=975a5c1057579603c4041c2b8e3ac0933ea0eb89 commit 975a5c1057579603c4041c2b8e3ac0933ea0eb89 Author: Tijl Coosemans AuthorDate: 2022-04-27 16:51:01 +0000 Commit: Tijl Coosemans CommitDate: 2022-04-27 16:53:02 +0000 devel/libunwind: use base system unwind.h - Add --disable-cxx-exceptions so libunwind does not implement the _Unwind_* API and does not use its internal unwind.h. The base system libgcc_s provides this API. This was already the upstream default for most architectures. - Add --disable-unwind-header to prevent installation of unwind.h. Instead, install an unwind.h that forwards to the base system unwind.h, but not on FreeBSD 14 where all implementations of unwind.h (base, lang/gcc*, and devel/llvm*) are compatible. PR: 263370 Approved by: sunpoet --- devel/libunwind/Makefile | 11 ++++++++++- devel/libunwind/files/unwind.h | 26 ++++++++++++++++++++++++++ devel/libunwind/pkg-plist | 1 - 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile index a404f9df3595..5ab156895129 100644 --- a/devel/libunwind/Makefile +++ b/devel/libunwind/Makefile @@ -2,6 +2,7 @@ PORTNAME= libunwind PORTVERSION= 20211201 # This is the release date on https://download.savannah.gnu.org/releases/libunwind/ +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= SAVANNAH \ https://github.com/libunwind/libunwind/releases/download/v${PORTVERSION}/ @@ -17,7 +18,9 @@ ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le USES= compiler:c11 cpe libtool pathfix pkgconfig -CONFIGURE_ARGS= ac_cv_path_LATEX2MAN=${TRUE} +CONFIGURE_ARGS= --disable-cxx-exceptions \ + --disable-unwind-header \ + ac_cv_path_LATEX2MAN=${TRUE} GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes @@ -34,4 +37,10 @@ PLIST_SUB+= COREDUMP="" PLIST_SUB+= COREDUMP="@comment " .endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400052 +PLIST_FILES+= include/unwind.h +post-install: + ${INSTALL_DATA} ${FILESDIR}/unwind.h ${STAGEDIR}${PREFIX}/include +.endif + .include diff --git a/devel/libunwind/files/unwind.h b/devel/libunwind/files/unwind.h new file mode 100644 index 000000000000..2d79ed4428de --- /dev/null +++ b/devel/libunwind/files/unwind.h @@ -0,0 +1,26 @@ +#ifndef _LIBUNWIND_UNWIND_H +#define _LIBUNWIND_UNWIND_H + +#if __has_include("/usr/include/unwind.h") +#include "/usr/include/unwind.h" +#elif __has_include("/usr/include/c++/v1/unwind.h") + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(__arm__) && !defined(__ARM_DWARF_EH__) +#include "/usr/include/c++/v1/unwind-arm.h" +#else +#include "/usr/include/c++/v1/unwind-itanium.h" +#endif + +#ifdef __cplusplus +} +#endif + +#else +#include_next +#endif + +#endif diff --git a/devel/libunwind/pkg-plist b/devel/libunwind/pkg-plist index a776ec5d56b2..73e648228c4a 100644 --- a/devel/libunwind/pkg-plist +++ b/devel/libunwind/pkg-plist @@ -4,7 +4,6 @@ include/libunwind-dynamic.h include/libunwind-ptrace.h include/libunwind-%%ARCH%%.h include/libunwind.h -include/unwind.h %%COREDUMP%%lib/libunwind-coredump.a %%COREDUMP%%lib/libunwind-coredump.so %%COREDUMP%%lib/libunwind-coredump.so.0