Wed 28 Sep 2016 07:13:01 PM UTC, comment #3:
Perhaps I understand things a bit better now:
Boring background:
pkgsrc uses a very plain script to discover MACHINE_GNU_PLATFORM:
MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS:C/[0-9]//g}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}${APPEND_ABI}
config.guess appends -gnu for Debian* machines, we don't distinguish them.
in octave, it seems this string is used as the directory name for some files,
so we end up with a file:
lib/octave/${PKGVERSION}/oct/${MACHINE_GNU_PLATFORM}/ccolamd.oct
Once the build process is done, pkgsrc has an installation process which (I think) forms a package based on files in a package file list, with pathnames of the files to be used.
Because we aim to install for more than one operating system, we use ${MACHINE_GNU_PLATFORM} in this list, rather than a fixed linux-unknown-...-gnu
However, the directory octave used and the directory we expect via our MACHINE_GNU_PLATFORM are different.
I'm not entirely sure why config.guess decides it should guess what $host is, because --host is also passed.
|