Page MenuHomeFreeBSD

Use ARCH instead of MACHINE to check for mips.
ClosedPublic

Authored by jhb on Nov 28 2019, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 20 2024, 1:35 AM
Unknown Object (File)
Feb 29 2024, 4:01 PM
Unknown Object (File)
Jan 14 2024, 4:10 PM
Unknown Object (File)
Jan 2 2024, 2:49 AM
Unknown Object (File)
Dec 20 2023, 5:22 AM
Unknown Object (File)
Dec 19 2023, 6:44 PM
Unknown Object (File)
Dec 5 2023, 6:41 AM
Unknown Object (File)
Nov 27 2023, 2:25 AM
Subscribers

Details

Summary

Cross-building ports via CROSS_TOOLCHAIN and CROSS_SYSROOT only set
ARCH to the target arch. MACHINE still references the host. This
unbreaks cross-building ports for mips.

Test Plan
  • try to cross-build base/gcc and have it fail due to SSP flags in CFLAGS

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 27834
Build 26012: arc lint + arc unit

Event Timeline

Ping, this breaks using CROSS_TOOLCHAIN and CROSS_SYSROOT with mips.

Looks OK:

  • ${ARCH} is defined in <bsd.port.options.mk> but Mk/bsd.ssp.mk is processed in <bsd.port.post.mk>
  • logic didn't change because mips64 was part of mips set, which I originally cargo-culted from <bsd.sys.mk> (after minor testing)

Sorry, I don't have time to reproduce your issue.

Mk/bsd.ssp.mk
7

! ${FOO:Mtest} is more common in ports/ than ${FOO:Mtest} == "".

  • Use ! instead of == "".
jhb marked an inline comment as done.Dec 19 2019, 12:26 AM

@portmgr ping

This revision is now accepted and ready to land.Dec 19 2019, 8:21 AM
This revision was automatically updated to reflect the committed changes.