tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: building firefox on i386
On Mon, 9 Aug 2021 at 00:55:30 +0000, Emmanuel Dreyfus wrote:
> Building firefox 90 on i386 (well, in an i386 pkg_comp chroot on amd64),
> configure complains i486--netbsdelf makes no sense to rustc.
>
> The patch below works arouund the problem (expected platform string
> found from the rustc executable by the courtesy of string(1)). Is that
> reasonable to commit?
>
> --- www/firefox/mozilla-common.mk.orig
> +++ www/firefox/mozilla-common.mk
> @@ -39,4 +39,7 @@
>
> # For rustc/cargo detection
> +.if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "NetBSD"
> +MACHINE_GNU_PLATFORM=i586-unknown-netbsd
> +.endif
> CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM}
> CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
I committed a similar patch to lang/mozjs78 a couple of months ago for
the same reason.
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/lang/mozjs78/Makefile?rev=1.21&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
Regards,
Dave
Home |
Main Index |
Thread Index |
Old Index