From nobody Thu Oct 12 14:14:54 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 4S5s8t3HYnz4wQ5J; Thu, 12 Oct 2023 14:14:54 +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 4S5s8t2sSTz4Qg4; Thu, 12 Oct 2023 14:14:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697120094; 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=7NyDeMwwgEwvgfY6w6R1Ps4ysX3IZnbesNPNTd2tVYA=; b=Wfh8FHV8IDDMans52KA2g9RCCDjZ63P+ckRxCicMNThbqiSZPiQFOBAIryarjjeW42qzHF AsmJipCQIPukHWtlwRJQ/ObebGHi1A2PXiDpQ5PDQdiTkL8aq41WHod17rh7truQjhkOwy rsmJolo4iMNRi0oHE70sOepuTlAbN3nxtVz1n4B4+D88wNTNVhNXy+AHFG9SUEYiwF4GSt XmgQMpo/5NZf6d2P0SYopAKDsNKQzZN0QfBO66+nODonS26nQ28Qbay7MYmpXpizczRjoH nrPwLxYhAYu6sKnhL0cGacgfVKaj/oMJ65cMkph3lxQ/sFNzbQRQjRfRaA8K/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697120094; a=rsa-sha256; cv=none; b=cnk5oSRPk9cpBd/9zb2MTzDKODEZM4vPzI0aSq4RlWZ455/YMn/7l1I8FGYOUtrhU3DX2L o1hNu756EFIUjRIHhLa+lyExIVhch4GlY7qtMEkqO4eHD/7eBTpye0IoVAD7nvft8O4rsT FBz1sZF7MwQjDlU/goKoL/9OzM1IUMrTMwB/yTC6VigCZ0G2z6mMh0rzSxVdBkQAgAjDoc QrvvwRx+aGNRgM0lgnGfaKYLhshkuvhsEzzZafKrvhRHuRUwbIimhHt9vd0AtWm8Wo8tJg sKCafj1LxICFccsQk2vquvzvkgQ+cnKv5IdCNE6pH7jDyYAcu4fs8ctw+T6pAw== 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=1697120094; 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=7NyDeMwwgEwvgfY6w6R1Ps4ysX3IZnbesNPNTd2tVYA=; b=XA8ypAlVF5ja4l39nCQsw4NrVHoMrcGWysWhUk+zhXqmby/hwvYI2pOfZ8lwLp4ZfwyXDf T6UCTWEgKhrDxTpf1pMMtUMVHa+X784bVInm5L4Cyf1uhqdUM7z9BOyo6QK7ueFVjvW8zv m9qgcSZlhBDaIsRNtWQeCLlh8FRGHaR/pAGWPBjRCw/jaNWPoT8iKMl+Ymf6bGlmxqKHIk R0FwTMdBcnvmk39f8Bg1AyODMFdSWwBcUnGMHSgCJac2DikU4I+f/0sozmWKG9DrK3JAFd ZvVPghYRUk0ZFaRjzkMrhv6VTA+MZe27WwTtdydZMynesFojmCADV0mCMTxT3g== 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 4S5s8t1ybZz16pJ; Thu, 12 Oct 2023 14:14:54 +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 39CEEs3P073017; Thu, 12 Oct 2023 14:14:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CEEsia073014; Thu, 12 Oct 2023 14:14:54 GMT (envelope-from git) Date: Thu, 12 Oct 2023 14:14:54 GMT Message-Id: <202310121414.39CEEsia073014@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 076804781f89 - main - ports-mgmt/portconfig: allow to build with PIE 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: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 076804781f89ca075b2358cf459c24c817321482 Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=076804781f89ca075b2358cf459c24c817321482 commit 076804781f89ca075b2358cf459c24c817321482 Author: Baptiste Daroussin AuthorDate: 2023-10-12 14:09:52 +0000 Commit: Baptiste Daroussin CommitDate: 2023-10-12 14:14:52 +0000 ports-mgmt/portconfig: allow to build with PIE portsconfig is a dynamic binary which static link to all the dependencies, which causes a problem when it links with base provided static libraries as they are not PIE friendly. PR: 274429 Reported by: netchild --- ports-mgmt/portconfig/files/patch-Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ports-mgmt/portconfig/files/patch-Makefile b/ports-mgmt/portconfig/files/patch-Makefile new file mode 100644 index 000000000000..afd718fdab06 --- /dev/null +++ b/ports-mgmt/portconfig/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2023-08-04 15:18:54 UTC ++++ Makefile +@@ -9,8 +9,8 @@ LDFLAGS+= -L/usr/local/lib -Wl,-Bstatic -v -Wl,-whole- + + CFLAGS+= -I/usr/local/include -std=gnu99 -Wall -Wextra + LDFLAGS+= -L/usr/local/lib -Wl,-Bstatic -v -Wl,-whole-archive -lbsddialog \ +- -Wl,-no-whole-archive -L/usr/lib -lncursesw -ltinfow \ +- -Wl,-Bdynamic -Wl,--export-dynamic ++ -Wl,-no-whole-archive -Wl,-Bdynamic -Wl,--export-dynamic -L/usr/lib \ ++ -lncursesw -ltinfow + + # `make -DDEBUG` + .if defined(DEBUG)