Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2024 20:10:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281674] Mk/bsd.port.mk: Add MACHINE_ARCH to WRK_ENV
Message-ID:  <bug-281674-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281674

            Bug ID: 281674
           Summary: Mk/bsd.port.mk: Add MACHINE_ARCH to WRK_ENV
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: tijl@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

Created attachment 253787
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D253787&action=
=3Dedit
patch

make(1) has a built-in variable MACHINE_ARCH that defaults to the value of
sysctl hw.machine_arch.  This is not correct when building packages under q=
emu.
 In that case poudriere sets MACHINE_ARCH in its make.conf.  Since ports
d7511b9d0074 make.conf is not picked up by make during build so pass
MACHINE_ARCH through the environment.

This affects building kmod ports under qemu.

Reported by: jrtc27 (https://reviews.freebsd.org/D46502)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281674-7788>