From nobody Sun Jul 23 15:53:09 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R879f0gtfz4p7VQ; Sun, 23 Jul 2023 15:53:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R879f09Qyz3N8K; Sun, 23 Jul 2023 15:53:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690127590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xS3I03cmBRY6bOjXSOq/QgtmE2UTGOG5++RR8CctHU4=; b=R4fSBlQnrlK1G2HeEGD8WZx9Cy/uhV2hbMF+c9t+a+hFAPrMcLY39PX/mfr+b13g7OAoBD Vq1fYdU7WB5Jy3+b44OUWDp/s02amRpN6/eo4A+J731uzObJ4lSecPZHTEdP8PSl0s4wI7 is2We5JOowCKO6TvsWg3l8TECjxL0AiMMI1bqfNlvGdqtfIb6rI2TWGNDuAwxXHNQjYIqv aRXtRevLrcsjY4WzvXO3FnT4U8sbVhC52lO98GmY532CLiBIAQDgN6X5RUTfLUpgODyiyU +VBOpqbqQmuSxLcEidZrwxF+VQcUoKiSMO3/aZciCnUZFTT9KO6ef9EctN4AOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690127590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xS3I03cmBRY6bOjXSOq/QgtmE2UTGOG5++RR8CctHU4=; b=witNFAwbT43dLxDM5PuFnAHN4qDTzLQoRrLoEKv+t94YIt7BMst8CwGDwqxucYqaJTZKkK RJ7pUHXBtsZFpE+bVekanmSWdOxDzEl731JlvYn525e4/Q5cGWG0KZs2aTOTmEAYhp0dbV 7uSMoYJcYHX5CxPCc95BmOqtMvlXd2ckPxlpYz+qXoDlej70KLMtsQ44jf9lRvIROSX1wv u7f5ewNgYZAHSEdnfY9PdIOAchFjEKweFKer0cuMNGzSqJbWg4Bg4rY4BSz+M8piwDTLgq +xwSIktQQhDxQYABqqq9IfBBnEchcyxZyrg0SWCNlVOH3WsVbjzyvCD/utIw8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690127590; a=rsa-sha256; cv=none; b=VtNqow2i/pF/NzujWMHBo475Axl7G0wV00xFEbgXwky8vdNzb9ADwpHzzLIaiWN7ilcHLo CaTm8PGESF5Q618mh/SNyPxx/ewj5mVjH0b7DPWxRCl//z/5xVKvn5VRbPYQsD6PdHdKuO F9YhSWySHbDP/sa9acWbdfZjT7dErq81frVNdQgkvwdgdbAn/v213rVlWNPyPirO0Lu1Of jZb1Q47g0iPttotP4e21xan1guIUdjhG91H46YJAQsa8lSq63KPqwVReSUedtMkxTMFVib J+IlKz0SxcTs6OdeW5JYga4aKESv1nnrDk0p1xzHbEstVwBOVg278OWyGyVd2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R879d6HSgzhqK; Sun, 23 Jul 2023 15:53:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36NFr9GP008876; Sun, 23 Jul 2023 15:53:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36NFr9h2008875; Sun, 23 Jul 2023 15:53:09 GMT (envelope-from git) Date: Sun, 23 Jul 2023 15:53:09 GMT Message-Id: <202307231553.36NFr9h2008875@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 0bd6295fb8d6 - main - net/spread: Fix build with llvm16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0bd6295fb8d6bf0d89ba3728d43dceae8b7600c1 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=0bd6295fb8d6bf0d89ba3728d43dceae8b7600c1 commit 0bd6295fb8d6bf0d89ba3728d43dceae8b7600c1 Author: Muhammad Moinur Rahman AuthorDate: 2023-07-23 12:09:03 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-07-23 15:53:01 +0000 net/spread: Fix build with llvm16 - Utilize OPTIONSNG where applicable - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net/spread/Makefile | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/net/spread/Makefile b/net/spread/Makefile index 641f5220219a..537d4e279fc3 100644 --- a/net/spread/Makefile +++ b/net/spread/Makefile @@ -14,38 +14,45 @@ LICENSE_NAME= Spread Open-Source License LICENSE_FILE= files/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -MAKE_JOBS_UNSAFE= yes - -GNU_CONFIGURE= yes USES= groff perl5 tar:xz +USE_LDCONFIG= yes USE_PERL5= build run USE_RC_SUBR= spread -USE_LDCONFIG= yes -USERS= spread -GROUPS= spread -RUNDIR= /var/run/spread - -PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR} +GNU_CONFIGURE= yes +# The configure script fails to find nroff in LOCALBASE, but works fine if +# 'groff' is used directly +CONFIGURE_ENV+= ac_cv_path_NROFF=groff MAKE_ARGS+= PTHREAD_LIBS="-lpthread" +MAKE_JOBS_UNSAFE= yes + +TARGET_ORDER_OVERRIDE= 710:fix-perl-things + WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION} +USERS= spread +GROUPS= spread + PKGMESSAGE= ${WRKSRC}/license.txt +PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR} PORTDOCS= Readme.txt LICENSE + +RUNDIR= /var/run/spread + HEADERFILES= sp_func.h sp_func.h sp_events.h OPTIONS_DEFINE= DOCS -# The configure script fails to find nroff in LOCALBASE, but works fine if -# 'groff' is used directly - -CONFIGURE_ENV+= ac_cv_path_NROFF=groff # bsd.port.mk doesn't allow us to use GNU_CONFIGURE and PERL_CONFIGURE together. PERL_CONFIGURE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \ INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib" -TARGET_ORDER_OVERRIDE= 710:fix-perl-things +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif post-configure: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ @@ -69,12 +76,14 @@ post-install: (cd ${WRKSRC}/perl/Spread && ${MAKE} PREFIX=${STAGEDIR}${PREFIX} install) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/perl/Spread/test.pl ${STAGEDIR}${EXAMPLESDIR} - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE ${INSTALL} -m 750 -d ${STAGEDIR}${RUNDIR} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspread.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtspread.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Spread/Spread.so +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE + .include