From nobody Sun Aug 6 23:52:36 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 4RJx8N2fcGz4pchw; Sun, 6 Aug 2023 23:52:36 +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 4RJx8N2Dn6z3RDj; Sun, 6 Aug 2023 23:52:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691365956; 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=pdSrkLvoihuZF1nF8UJW/uV4niJaBg8P0bECPheVpZ4=; b=Aa4wvbpUbiycbHAlI507R82afjV0ApOsMc/Rl/AEXaWoX/38tDcVc3BcMdaqyBPXusbOQz S0HlIU7uWX2GOrYTUXfISWjkv+SFg/nvUF253CwovWndcPnhrDIHweydLmPcZx+/ZQWe3k QRC/lzGyWwm5NRDaD9LyUDCH6eTi3H+SeEmVRTtowsG1nviLPhEG3mP+RGYI/X1TC91fSS jQDKSnRVVwYVoo2Gfx84Yphn5wHKMIxTuP0UEjuaDnlt+jAQj5/alibdVPF6V/lrIE2UR5 VyauCn71gXB1y6wK4lmcza+jEk2TF0+nmnDf41NXr5XfoNaE/FU8CgkkSHwuEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691365956; 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=pdSrkLvoihuZF1nF8UJW/uV4niJaBg8P0bECPheVpZ4=; b=gJGhzHafssVFvCvIrW+DHa+a6KrIwoRSQpFjD64LDgeB/O218JVIR7isd8w+O7SutGC5rT N9FtU18XBX2yckkMOqiymyfeErqe8XB4aJSbH2sOzdgN4F1o43oyAVGSi2KhrTcF0PAZi/ yYN+YrYxs61ywu4zUGp+mQIzoApGgyqulyVoV3oEFEvnHHJAFvNGBdTa51YX0XJKzc3riI WN75H9qztTyVsnPgXeFpBthUKXVOUQYkWCypH2uz09MNN2N+EQ+AIzx1EeAnah9wXvepZ/ HC4DzKi+74hIvP2fHY7GkpFfbG8eCryiRymhvpLIvwCxyITu5ZAqE6NoqZPAlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691365956; a=rsa-sha256; cv=none; b=k0uB4r1pdNvdc21st4YyPIC6J1CJ45xccGVoKQ6aQkeuEhLWv8jRLJnVWa5VhJTVc5SuTE lpnJfQU6Al5BTZOs6xw6pK/3UuRNcV1qpYX/w9M/DxPmh+7feLi3opeDWg4GsLFYSFleaJ ud5KbEtq5Mqn08nN/FxFRo7bpBSmOI+3VCYjXGVcY4sNQAlj9z/uS6W6QtVt7wuNeAZnjk /MRdR+HNyT1Y4LC07cKpT2z1Tr5RWXsUDfmxVcKEVZQpyyfUgjGPYJfkpCoRwUnlf2z9Dh kLyMVcJmPPvWHNnb12GTnqvEWdpmBhyWIGzBXP7aPjnVokW7F4NbU4BIzTU9Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RJx8N1J9QzWS5; Sun, 6 Aug 2023 23:52:36 +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 376Nqa1k075408; Sun, 6 Aug 2023 23:52:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 376NqaaL075407; Sun, 6 Aug 2023 23:52:36 GMT (envelope-from git) Date: Sun, 6 Aug 2023 23:52:36 GMT Message-Id: <202308062352.376NqaaL075407@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: 9b533488867e - main - archivers/unalz: 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: 9b533488867e809193e30e92f840ea20e4e92101 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b533488867e809193e30e92f840ea20e4e92101 commit 9b533488867e809193e30e92f840ea20e4e92101 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-06 23:08:20 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-06 23:52:27 +0000 archivers/unalz: Fix build with llvm16 - Utilize USES=localbase Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- archivers/unalz/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/archivers/unalz/Makefile b/archivers/unalz/Makefile index 53e35090e386..1550454b9cc4 100644 --- a/archivers/unalz/Makefile +++ b/archivers/unalz/Makefile @@ -12,19 +12,24 @@ LICENSE_FILE= ${WRKSRC}/readme.txt WRKSRC= ${WRKDIR}/${PORTNAME} -USES= cpe iconv tar:xz +USES= cpe iconv localbase:ldflags tar:xz MAKE_ARGS+= CPP="${CXX}" CC="${CC}" OBJ="${UNALZ_OBJS}" \ LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" ALL_TARGET= posix-utf8 -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lz -lbz2 +LDFLAGS+= -lz -lbz2 PLIST_FILES= bin/${PORTNAME} UNALZ_OBJS= main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o \ UnAlzBzip2.o UnAlzbzlib.o +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Dregister= +.endif + post-patch: ${REINPLACE_CMD} -e \ 's/-liconv/${ICONV_LIB}/g' ${WRKSRC}/Makefile