git: 78ca3ba628f1 - main - net-p2p/opendchub: Fix build with more recent Perl versions.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Aug 2023 05:11:53 UTC
The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=78ca3ba628f11ab02a16ce36df5158422ec2f91e commit 78ca3ba628f11ab02a16ce36df5158422ec2f91e Author: Xin LI <delphij@FreeBSD.org> AuthorDate: 2023-08-13 05:00:40 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2023-08-13 05:01:38 +0000 net-p2p/opendchub: Fix build with more recent Perl versions. PR: ports/264255 --- net-p2p/opendchub/Makefile | 1 + net-p2p/opendchub/files/patch-src_xs__functions.c | 26 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/net-p2p/opendchub/Makefile b/net-p2p/opendchub/Makefile index 4cf53747c3be..2aad1e2e3f18 100644 --- a/net-p2p/opendchub/Makefile +++ b/net-p2p/opendchub/Makefile @@ -1,5 +1,6 @@ PORTNAME= opendchub PORTVERSION= 0.8.3 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= SF/${PORTNAME}/Open%20DC%20Hub/${PORTVERSION} diff --git a/net-p2p/opendchub/files/patch-src_xs__functions.c b/net-p2p/opendchub/files/patch-src_xs__functions.c new file mode 100644 index 000000000000..e0c130dfd683 --- /dev/null +++ b/net-p2p/opendchub/files/patch-src_xs__functions.c @@ -0,0 +1,26 @@ +--- src/xs_functions.c.orig 2014-08-14 15:04:19 UTC ++++ src/xs_functions.c +@@ -277,7 +277,10 @@ XS(xs_check_if_banned) + if(ret != 1) + ret = check_if_banned(user, NICKBAN); + +- (ret == 1) ? XSRETURN_IV(1) : XSRETURN_IV(0); ++ if (ret == 1) ++ XSRETURN_IV(1); ++ else ++ XSRETURN_IV(0); + } + + XS(xs_check_if_allowed) +@@ -297,7 +300,10 @@ XS(xs_check_if_allowed) + + ret = check_if_allowed(user); + +- (ret == 1) ? XSRETURN_IV(1) : XSRETURN_IV(0); ++ if (ret == 1) ++ XSRETURN_IV(1); ++ else ++ XSRETURN_IV(0); + } + + XS(xs_data_to_user)