git: ea02c904697c - main - www/unit-ruby: fix build with ruby 3.x
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Mar 2022 01:26:14 UTC
The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=ea02c904697c622af1e87170e1b8d139f48395d4 commit ea02c904697c622af1e87170e1b8d139f48395d4 Author: Sergey A. Osokin <osa@FreeBSD.org> AuthorDate: 2022-03-20 01:24:50 +0000 Commit: Sergey A. Osokin <osa@FreeBSD.org> CommitDate: 2022-03-20 01:26:09 +0000 www/unit-ruby: fix build with ruby 3.x PR: 262541 --- www/unit-ruby/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/unit-ruby/Makefile b/www/unit-ruby/Makefile index f4afe176045c..4455996fc9ef 100644 --- a/www/unit-ruby/Makefile +++ b/www/unit-ruby/Makefile @@ -14,6 +14,8 @@ PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so USE_RUBY= yes +CFLAGS+= -fdeclspec + USE_RC_SUBR?= # reset to empty MASTERDIR= ${.CURDIR}/../unit @@ -21,6 +23,7 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ruby \ + --ruby=ruby${RUBY_VER:S|.||} \ --module=${UNIT_MODNAME} do-build: