From owner-freebsd-ports-bugs@freebsd.org Tue Feb 16 12:22:42 2021 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BB6B536568 for ; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dg0VB3Hbvz3nXq for ; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 70C15536479; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7080A5365E7 for ; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@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 4Dg0VB2fxyz3nSN for ; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 44BCC11109 for ; Tue, 16 Feb 2021 12:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 11GCMgfJ040375 for ; Tue, 16 Feb 2021 12:22:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11GCMgop040374 for ports-bugs@FreeBSD.org; Tue, 16 Feb 2021 12:22:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 253275] [exp-run] base system PIE default Date: Tue, 16 Feb 2021 12:22:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dgr@semihalf.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2021 12:22:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253275 Dawid Gorecki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dgr@semihalf.com --- Comment #14 from Dawid Gorecki --- I haven't looked at all the ports yet, but from what I've seen, ports fail = due to few reasons. Some ports build static libraries and it seems that current= ly the best way to fix this is by setting WITHOUT_PIE. Some other ports could most likely work with PIE enabled, but makefiles override default system CFLAGS and still use default LDFLAGS. This causes linker to try linking with -pie but without -fPIC being used in compiling. audio/play is an example, it overrides CFLAGS with -O. Another reason that I've seen is caused by setting CFLAGS=3D"${CFLAGS}" in MAKE_ARGS. I'm not really sure how bmake works in this case, but I think th= at it starts ignoring any further processing of CFLAGS and we are left with CF= LAGS from sys.mk and no modifications made in bsd.prog.mk are taken into account. This happens for www/mathopd. I removed MAKE_ARGS for that and it built fin= e. -DFREEBSD_SENDFILE was also properly passed further. I haven't tested if it works after building though, but I don't see any reason why it shouldn't. --=20 You are receiving this mail because: You are on the CC list for the bug.=