Date: Wed, 15 Jul 2020 08:01:30 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247990] LLD_UNSAFE from bsd.port.m does not work in thin jails Message-ID: <bug-247990-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247990 Bug ID: 247990 Summary: LLD_UNSAFE from bsd.port.m does not work in thin jails Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: michael.osipov@siemens.com I am using thin jails with ezjail and ran into https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247983. The reason for this is that make's ':tA' uses realpath which leads to the symlinked basejail and results in a failed if clause. This seems to be the = only spot in the Mk system (except bsd.gecko.k) for this. Here is a patch which solves my issue: root@bsd1srv:/usr/ports/Mk # svn diff Index: bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- bsd.port.mk (Revision 542158) +++ bsd.port.mk (Arbeitskopie) @@ -1851,7 +1851,7 @@ .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif -.if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} =3D=3D /usr/bin/ld.lld +.if defined(LLD_UNSAFE) && ( ${/usr/bin/ld:L:tA} =3D=3D /usr/bin/ld.lld || ${/usr/bin/ld:L:tA} =3D=3D /basejail/usr/bin/ld.lld ) LDFLAGS+=3D -fuse-ld=3Dbfd BINARY_ALIAS+=3D ld=3D${LD} . if ${ARCH} =3D=3D powerpc64 Whether this is a suitable fix or there can be a better one, you decide. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247990-7788>