Subject: CVS commit: pkgsrc
From: Jonathan Perkin
Date: 2016-01-24 17:14:45
Message id: 20160124161445.AFA97FBB7@cvs.NetBSD.org

Log Message:
Attempt to bring sanity to how ABI and MACHINE_ARCH are set.

Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.

Files:
RevisionActionfile
1.72modifypkgsrc/devel/bmake/Makefile
1.14modifypkgsrc/devel/bmake/files/main.c
1.5modifypkgsrc/devel/bmake/files/make-bootstrap.sh.in
1.15modifypkgsrc/graphics/evas/Makefile.common
1.57modifypkgsrc/lang/gcc34/Makefile
1.45modifypkgsrc/lang/gcc44/Makefile
1.20modifypkgsrc/lang/gcc45/Makefile
1.29modifypkgsrc/lang/gcc46/Makefile
1.64modifypkgsrc/lang/sbcl/Makefile
1.7modifypkgsrc/net/traceroute-nanog/Makefile
1.47modifypkgsrc/news/nn/Makefile
1.23modifypkgsrc/security/john/Makefile
1.17modifypkgsrc/security/libbf/Makefile
1.219modifypkgsrc/security/openssl/Makefile
1.8modifypkgsrc/x11/elementary/Makefile
1.37modifypkgsrc/x11/enlightenment/Makefile