[debhelper-devel] Bug#856688: dh_auto_configure: wrong CMAKE_SYSTEM_NAME for kfreebsd cross-builds

Steven Chamberlain stevenc at debian.org
Fri Mar 3 23:13:58 UTC 2017


Package: debhelper
Version: 10.2.5
Tags: patch

Hi,

When cross-building a kfreebsd host system, dh_auto_configure invokes 
cmake something like this:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
 -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc
 -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_SYSTEM_NAME=FreeBSD
 -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_COMPILER=i686-kfreebsd-gnu-gcc
 -DCMAKE_CXX_COMPILER=i686-kfreebsd-gnu-g\+\+
 -DPKG_CONFIG_EXECUTABLE=/usr/bin/i686-kfreebsd-gnu-pkg-config
 -DCMAKE_INSTALL_LIBDIR=lib/i386-kfreebsd-gnu

but here, CMAKE_SYSTEM_NAME is not the correct value, it should rather 
be the GNU variant "kFreeBSD", not just "FreeBSD".

The very simple patch for this is attached.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debhelper.patch
Type: text/x-diff
Size: 966 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170303/c8a3dc9a/attachment-0001.patch>


More information about the debhelper-devel mailing list