[Bug 1728673] Re: cmake's default compiler names incorrect when crosscompiling

Dimitri John Ledkov launchpad at surgut.co.uk
Tue Oct 31 21:04:40 UTC 2017


** Description changed:

- When using dh_auto_configure with cmake, the compiler names are wrong,
- this patch upstream fixes it:
+ [Impact]
+ 
+ It is not possible to cross-build packages that use dh with cmake build
+ system, as incorrect compiler is set for the compilation.
+ 
+ [Testcase]
+ * Create mk-sbuild chroot with a cross target, e.g. --target arm64
+ * Attempt to cross-build a package for arm64, which uses dh, and cmake
+ * observe that a crosscompiler is found and detected correctly at configure step, instead of failing to configure with a non-existant compiler
+ 
+ [Regression Potential]
+ Current cmake crossbuild is b0rked, this patch does not touch any other codepaths.
+ 
+ [Original bug report]
+ When using dh_auto_configure with cmake, the compiler names are wrong, this patch upstream fixes it:
  
  https://anonscm.debian.org/git/debhelper/debhelper.git/patch/lib/Debian/Debhelper/Buildsystem/cmake.pm?id=61d575451f028e2bba666d40ee1dedc8c6308f40
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: debhelper 9.20160115ubuntu3
  ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
  Uname: Linux 4.13.0-16-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: amd64
  Date: Mon Oct 30 18:01:02 2017
  PackageArchitecture: all
  ProcEnviron:
-  TERM=screen-256color
-  PATH=(custom, no user)
-  LANG=C.UTF-8
+  TERM=screen-256color
+  PATH=(custom, no user)
+  LANG=C.UTF-8
  SourcePackage: debhelper
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debhelper in Ubuntu.
https://bugs.launchpad.net/bugs/1728673

Title:
  cmake's default compiler names incorrect when crosscompiling

Status in debhelper package in Ubuntu:
  Fix Released
Status in debhelper source package in Xenial:
  Confirmed

Bug description:
  [Impact]

  It is not possible to cross-build packages that use dh with cmake
  build system, as incorrect compiler is set for the compilation.

  [Testcase]
  * Create mk-sbuild chroot with a cross target, e.g. --target arm64
  * Attempt to cross-build a package for arm64, which uses dh, and cmake
  * observe that a crosscompiler is found and detected correctly at configure step, instead of failing to configure with a non-existant compiler

  [Regression Potential]
  Current cmake crossbuild is b0rked, this patch does not touch any other codepaths.

  [Original bug report]
  When using dh_auto_configure with cmake, the compiler names are wrong, this patch upstream fixes it:

  https://anonscm.debian.org/git/debhelper/debhelper.git/patch/lib/Debian/Debhelper/Buildsystem/cmake.pm?id=61d575451f028e2bba666d40ee1dedc8c6308f40

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: debhelper 9.20160115ubuntu3
  ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
  Uname: Linux 4.13.0-16-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: amd64
  Date: Mon Oct 30 18:01:02 2017
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen-256color
   PATH=(custom, no user)
   LANG=C.UTF-8
  SourcePackage: debhelper
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debhelper/+bug/1728673/+subscriptions



More information about the foundations-bugs mailing list