From nobody Mon Sep 4 21:31:24 2023 X-Original-To: dev-commits-ports-main@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 4Rfhf542lnz4sNwS; Mon, 4 Sep 2023 21:31:25 +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 4Rfhf50hhQz4s7w; Mon, 4 Sep 2023 21:31:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693863085; 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=YiG+YKWrB4APwFbbmv0wMrIcLqEhSrqphyPEp4qfcmc=; b=BN0YL0kp81/5toZYDIMcs68V6e/AY/8k93v563EzZaCFadxksIe3zRdbAfA+j4AZpquh3c O/j4xgjFfWWgcDVW1wZCK+2Ko9lziRDgfqeZ/ZMyH9jzeA1OXpT09h9pp8xsaoYJ7Fk2MS FRwuN+yZHEZBIIQjFrApKM86AHpflP3mjKNrOJzm5HC51FzcQ3+yuRUV8dtcXcBq/YWgq/ LlwEM0u/vNMTHqHHibyBMrHZwWduWtBoxOHoURZejYJy1d1iRC1Xfg/NYjsCbEsDqTbaeb Q384aMp7vAMweXBH66Q3Pnoeeq/WTEJMHLt4RD9wkWpOA9SDn8ZR2vtWSTyAKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693863085; a=rsa-sha256; cv=none; b=MtKlkpkaTFnh6tckxzPHrlnO+KawRP/Q6psdhoV3PuI3BRxnopklWQVAivGqNGHOh8LJGP Bz9MSflWxP63fxlod5F3SZYs2QiXyAEvLuGxQhVLlbkEaIlj8iaPt9yD3JCn1rEoI+N9a/ yzLzcQ7/3uVtnfsf9MlKsthmwe+NgUqJmXkYrGX94Uaxa49D4Mu5Feg478iO2d3daZ+B9I RAIQJXsCo6xVyZoiKcEa0QhIvTXWbPbtQLixwtnz22kTJHTouw4Yt13P/2604p0fkXYesi KTh5UST+FuuJlh3j1s4Um77SgTW03ndH36SU5x5gbCAQ7H/TklRfEMJ3brnPEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693863085; 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=YiG+YKWrB4APwFbbmv0wMrIcLqEhSrqphyPEp4qfcmc=; b=v3hgsK3K2UBerbaJb40W2D8T5tIXxLFIeRiGYpmWN/bsYo14Wovtyb529V9NDpfpJLjKri LTIhPuYcFyQ0pfXjDq6W5DWTW8DZNqqM/JAiEBBBDLNerjSA/ZsBhVz7y6+C4QDuXQeneI /3K93kwvGi4Ku+X5TQJqVqpJAp0bFhozMV5N1tBwkqepYM/0L/BGVTfpTDhQanJNI68z6i JtXUHvz1+Dfw32aVOST/1KYQmfXp2yuSkSbMpi67sQaG+mPa7kRG77th1BZEK7tpNPfqIC 5Bcy+36Z7WlhRtEgV6sMGLq36XNrLuUXRHpKbgVTNMMFZvmcNPcheZrq3e9L4Q== 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 4Rfhf46gJ8z1M6S; Mon, 4 Sep 2023 21:31:24 +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 384LVOP3092131; Mon, 4 Sep 2023 21:31:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 384LVOY0092128; Mon, 4 Sep 2023 21:31:24 GMT (envelope-from git) Date: Mon, 4 Sep 2023 21:31:24 GMT Message-Id: <202309042131.384LVOY0092128@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: e0dd8c342aca - main - sysutils/ncdu2: Use zig built-in strip instead of llvm-strip List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0dd8c342aca95f7c51ae33da3786a64accf12c2 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e0dd8c342aca95f7c51ae33da3786a64accf12c2 commit e0dd8c342aca95f7c51ae33da3786a64accf12c2 Author: Po-Chuan Hsieh AuthorDate: 2023-09-04 21:25:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-04 21:30:06 +0000 sysutils/ncdu2: Use zig built-in strip instead of llvm-strip - Bump PORTREVISION for package change zig built-in strip generates smaller binary executables than llvm-strip. --- sysutils/ncdu2/Makefile | 7 ++----- sysutils/ncdu2/files/patch-build.zig | 10 ++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile index 00f3d4401a94..119f3c2c6c7d 100644 --- a/sysutils/ncdu2/Makefile +++ b/sysutils/ncdu2/Makefile @@ -1,6 +1,6 @@ PORTNAME= ncdu PORTVERSION= 2.2.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= https://dev.yorhel.nl/download/ PKGNAMESUFFIX= 2 @@ -17,7 +17,7 @@ BUILD_DEPENDS= zig>=0.10.0<0.10.1_99:lang/zig USES= ncurses -BUILD_ARGS= --prefix "${PREFIX}" --verbose +BUILD_ARGS= --prefix "${PREFIX}" --verbose ${STRIP:C|.+|-Dstrip|} MAKE_ENV= DESTDIR="${STAGEDIR}" PLIST_FILES= bin/ncdu2 \ @@ -27,9 +27,6 @@ do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${BUILD_ARGS} do-install: -.if !defined(WITH_DEBUG) - /usr/bin/llvm-strip ${STAGEDIR}${PREFIX}/bin/ncdu -.endif ${MV} ${STAGEDIR}${PREFIX}/bin/ncdu ${STAGEDIR}${PREFIX}/bin/ncdu2 ${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu2.1 diff --git a/sysutils/ncdu2/files/patch-build.zig b/sysutils/ncdu2/files/patch-build.zig new file mode 100644 index 000000000000..f2cd6be02ecc --- /dev/null +++ b/sysutils/ncdu2/files/patch-build.zig @@ -0,0 +1,10 @@ +--- build.zig.orig 2023-01-19 06:57:48 UTC ++++ build.zig +@@ -13,6 +13,7 @@ pub fn build(b: *std.build.Builder) void { + exe.addCSourceFile("src/ncurses_refs.c", &[_][]const u8{}); + exe.linkLibC(); + exe.linkSystemLibrary("ncursesw"); ++ exe.strip = b.option(bool, "strip", "Strip debug information") orelse false; + exe.install(); + + const run_cmd = exe.run();