git: 05917d340dee - main - devel/ivykis: fix build with lld 17

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 10 Jan 2024 17:56:03 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05917d340dee6d2bf02463af53372f2da2ecab00

commit 05917d340dee6d2bf02463af53372f2da2ecab00
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-10 17:52:00 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-10 17:55:23 +0000

    devel/ivykis: fix build with lld 17
    
    The linker version script libivykis.posix.ver refers to several inotify
    related functions, which are never used on FreeBSD since we do not
    support the inotity interface. This causes errors with lld 17, so add a
    post-patch that deletes the undefined symbols from the linker script.
    
    PR:             273753
    MFH:            2024Q1
---
 devel/ivykis/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/ivykis/Makefile b/devel/ivykis/Makefile
index 0e189d3321ee..dac35d5c5cf0 100644
--- a/devel/ivykis/Makefile
+++ b/devel/ivykis/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	ivykis
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.42.4
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	algernon@madhouse-project.org
@@ -19,4 +20,7 @@ GH_ACCOUNT=	buytenh
 
 INSTALL_TARGET=	install-strip
 
+post-patch:
+	${REINPLACE_CMD} -e '/iv_inotify/d' ${WRKSRC}/libivykis.posix.ver
+
 .include <bsd.port.mk>