git: 3d625ec077da - main - devel/libunwind: Clean up unwind.h patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Oct 2024 05:27:26 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3d625ec077da6b99df23f7c572a87833df15a04b
commit 3d625ec077da6b99df23f7c572a87833df15a04b
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-14 05:10:58 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-14 05:25:07 +0000
devel/libunwind: Clean up unwind.h patch
- Bump PORTREVISION for package change
unwind.h was installed to /usr/include in mid-February, 2022.
Since all supported FreeBSD releases have /usr/include/unwind.h, this patch is
no longer needed.
Reviewed by: tijl
Reference: https://cgit.freebsd.org/ports/commit/?id=975a5c1057579603c4041c2b8e3ac0933ea0eb89
---
devel/libunwind/Makefile | 8 +-------
devel/libunwind/files/unwind.h | 26 --------------------------
2 files changed, 1 insertion(+), 33 deletions(-)
diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile
index 9d10b080b024..ef5cdb529801 100644
--- a/devel/libunwind/Makefile
+++ b/devel/libunwind/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libunwind
PORTVERSION= 20240221 # This is the release date on https://github.com/libunwind/libunwind/releases
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/libunwind/libunwind/releases/download/v${LIBUNWIND_VERSION}/
DISTNAME= libunwind-${LIBUNWIND_VERSION}
@@ -37,14 +38,7 @@ PLIST_SUB+= COREDUMP="@comment "
PLIST_SUB+= COREDUMP=""
.endif
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400052
-PLIST_FILES= include/unwind.h
-.endif
-
post-install:
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400052
- ${INSTALL_DATA} ${FILESDIR}/unwind.h ${STAGEDIR}${PREFIX}/include
-.endif
cd ${STAGEDIR}${PREFIX}/ && ${FIND} libexec/libunwind -type f >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/devel/libunwind/files/unwind.h b/devel/libunwind/files/unwind.h
deleted file mode 100644
index 2d79ed4428de..000000000000
--- a/devel/libunwind/files/unwind.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#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 <unwind.h>
-#endif
-
-#endif