git: 27a1e7c8264d - main - devel/libunwind: Fix PLIST

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 17:40:21 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=27a1e7c8264d8c71a6024cb3c50f59ef14dbe4e1

commit 27a1e7c8264d8c71a6024cb3c50f59ef14dbe4e1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-09 17:40:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 17:40:12 +0000

    devel/libunwind: Fix PLIST
    
    Reported by:    jbeich
---
 devel/libunwind/Makefile  |  3 +++
 devel/libunwind/pkg-plist | 44 --------------------------------------------
 2 files changed, 3 insertions(+), 44 deletions(-)

diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile
index 289f16f2fb1f..dd063441eb05 100644
--- a/devel/libunwind/Makefile
+++ b/devel/libunwind/Makefile
@@ -40,9 +40,12 @@ PLIST_SUB+=	COREDUMP=""
 
 .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/pkg-plist b/devel/libunwind/pkg-plist
index 452043a8325e..c1040317d779 100644
--- a/devel/libunwind/pkg-plist
+++ b/devel/libunwind/pkg-plist
@@ -31,50 +31,6 @@ libdata/pkgconfig/libunwind-generic.pc
 libdata/pkgconfig/libunwind-ptrace.pc
 libdata/pkgconfig/libunwind-setjmp.pc
 libdata/pkgconfig/libunwind.pc
-libexec/libunwind/Gperf-simple
-libexec/libunwind/Gperf-trace
-libexec/libunwind/Gtest-bt
-libexec/libunwind/Gtest-concurrent
-libexec/libunwind/Gtest-exc
-libexec/libunwind/Gtest-init
-libexec/libunwind/Gtest-resume-sig
-libexec/libunwind/Gtest-resume-sig-rt
-libexec/libunwind/Gtest-trace
-libexec/libunwind/Gx64-test-dwarf-expressions
-libexec/libunwind/Lperf-simple
-libexec/libunwind/Lperf-trace
-libexec/libunwind/Lrs-race
-libexec/libunwind/Ltest-bt
-libexec/libunwind/Ltest-concurrent
-libexec/libunwind/Ltest-exc
-libexec/libunwind/Ltest-init
-libexec/libunwind/Ltest-init-local-signal
-libexec/libunwind/Ltest-mem-validate
-libexec/libunwind/Ltest-nocalloc
-libexec/libunwind/Ltest-nomalloc
-libexec/libunwind/Ltest-resume-sig
-libexec/libunwind/Ltest-resume-sig-rt
-libexec/libunwind/Ltest-trace
-libexec/libunwind/Ltest-varargs
-libexec/libunwind/Lx64-test-dwarf-expressions
-libexec/libunwind/check-namespace.sh
-libexec/libunwind/forker
-libexec/libunwind/mapper
-libexec/libunwind/run-ptrace-mapper
-libexec/libunwind/run-ptrace-misc
-libexec/libunwind/test-async-sig
-libexec/libunwind/test-flush-cache
-libexec/libunwind/test-init-remote
-libexec/libunwind/test-mem
-libexec/libunwind/test-proc-info
-libexec/libunwind/test-ptrace
-libexec/libunwind/test-ptrace-misc
-libexec/libunwind/test-reg-state
-libexec/libunwind/test-runner
-libexec/libunwind/test-setjmp
-libexec/libunwind/test-static-link
-libexec/libunwind/test-strerror
-libexec/libunwind/x64-unwind-badjmp-signal-frame
 share/man/man3/_U_dyn_cancel.3.gz
 share/man/man3/_U_dyn_register.3.gz
 share/man/man3/libunwind-coredump.3.gz