Date: Thu, 26 Dec 2019 19:54:42 -0800 From: Mark Millard <marklmi@yahoo.com> To: John Baldwin <jhb@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: A devel/freebsd-gcc*/Makefile suggestion to avoid base/binutil preventing freebsd-gcc* builds Message-ID: <EE8FADEA-F104-4036-8056-116AE49C4BA5@yahoo.com> References: <EE8FADEA-F104-4036-8056-116AE49C4BA5.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Context: devel/freebsd-gcc* (for example) using: --with-as=3D${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=3D${LOCALBASE}/bin/${BU_PREFIX}-ld The likes of ${BU_PREFIX}-ld possibly also exists someplace else on the path in use. So I suggest that the BUILD_DEPENDS and RUN_DEPENDS cause the full path to be checked so that the full path will be created if they do not exist already. So, using devel/freebsd-gcc9 as an example, . . . # svnlite diff /usr/ports/devel/freebsd-gcc9/ Index: /usr/ports/devel/freebsd-gcc9/Makefile =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 --- /usr/ports/devel/freebsd-gcc9/Makefile (revision 520539) +++ /usr/ports/devel/freebsd-gcc9/Makefile (working copy) @@ -16,8 +16,8 @@ LIB_DEPENDS=3D libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc -BUILD_DEPENDS=3D ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} -RUN_DEPENDS=3D ${BU_PREFIX}-as:devel/binutils@${TARGETARCH} +BUILD_DEPENDS=3D = ${LOCALBASE}/bin/${BU_PREFIX}-as:devel/binutils@${TARGETARCH} +RUN_DEPENDS=3D = ${LOCALBASE}/bin/${BU_PREFIX}-as:devel/binutils@${TARGETARCH} =20 FLAVORS=3D aarch64 amd64 i386 mips mips64 powerpc powerpc64 riscv64 = sparc64 TARGETARCH=3D ${FLAVOR} This avoids later not finding the file via the full path in such contexts. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EE8FADEA-F104-4036-8056-116AE49C4BA5>