Your message dated Tue, 11 Dec 2012 15:02:28 +0000
with message-id <[email protected]>
and subject line Bug#695631: fixed in ninja-build 1.0.0-2
has caused the Debian Bug report #695631,
regarding ninja-build: FTBFS on !linux archs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
695631: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695631
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ninja-build
Version: 1.0.0-1
Severity: important
Tags: patch

Hi,

ninja-build does not build on non-Linux archs, such as
GNU/kFreeBSD[1][2] and GNU/Hurd[3].

The problem is that the GetProcessorCount() implementation for these
architectures is the sysconf() one, but <unistd.h> has not been
included, causing sysconf() and _SC_NPROCESSORS_ONLN to not be
declared. Another solution (which is the one I chose) is to make use
of the "linux" implementation which uses get_nprocs(), which is a GNU
extension and thus available for anything using GNU libc.
If this solution is not deemed wanted, the other solution is to just add
  #ifndef _WIN32
  #include <unistd.h>
  #endif
among the other includes in src/util.cc.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=ninja-build&arch=kfreebsd-i386&ver=1.0.0-1&stamp=1355174935
[2] 
https://buildd.debian.org/status/fetch.php?pkg=ninja-build&arch=kfreebsd-amd64&ver=1.0.0-1&stamp=1355175958
[3] 
https://buildd.debian.org/status/fetch.php?pkg=ninja-build&arch=hurd-i386&ver=1.0.0-1&stamp=1355180120

Thanks,
-- 
Pino
--- a/src/util.cc
+++ b/src/util.cc
@@ -39,7 +39,7 @@
 #elif defined(__SVR4) && defined(__sun)
 #include <unistd.h>
 #include <sys/loadavg.h>
-#elif defined(linux)
+#elif defined(linux) || defined(__GLIBC__)
 #include <sys/sysinfo.h>
 #endif
 
@@ -295,7 +295,7 @@ string StripAnsiEscapeCodes(const string
   return stripped;
 }
 
-#if defined(linux)
+#if defined(linux) || defined(__GLIBC__)
 int GetProcessorCount() {
   return get_nprocs();
 }

--- End Message ---
--- Begin Message ---
Source: ninja-build
Source-Version: 1.0.0-2

We believe that the bug you reported is fixed in the latest version of
ninja-build, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gary Kramlich <[email protected]> (supplier of updated ninja-build package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 10 Dec 2012 23:20:57 -0600
Source: ninja-build
Binary: ninja-build
Architecture: source amd64
Version: 1.0.0-2
Distribution: unstable
Urgency: low
Maintainer: Gary Kramlich <[email protected]>
Changed-By: Gary Kramlich <[email protected]>
Description: 
 ninja-build - small build system closest in spirit to Make
Closes: 695631
Changes: 
 ninja-build (1.0.0-2) unstable; urgency=low
 .
   * Applied Pino Toscano <[email protected]> patch for fixing non Linux builds
     (Closes: #695631)
Checksums-Sha1: 
 38769b661e8d3fc4ca86d23c2eba4520896aef30 1952 ninja-build_1.0.0-2.dsc
 5a63b30c0c08b3fd363cd739340486a274aa5f91 4092 ninja-build_1.0.0-2.debian.tar.xz
 bd0074f65fa40f4914deca8efcc6749543cf0533 79150 ninja-build_1.0.0-2_amd64.deb
Checksums-Sha256: 
 dcbfbdb43f81375690252ce7262d7997db33ccad23859cf5e238291d48a2db60 1952 
ninja-build_1.0.0-2.dsc
 d1dc1138aa088eeebaed73991ac8f53bba48715a61870f37dc5d7f8b6eb1645f 4092 
ninja-build_1.0.0-2.debian.tar.xz
 741a3bf998b50781e37522b0986d07dc3ff1727593037d748e0742f8b130fbf9 79150 
ninja-build_1.0.0-2_amd64.deb
Files: 
 e48ef820d64fc904e24d282b7a2ffe18 1952 devel optional ninja-build_1.0.0-2.dsc
 c0d9db8d2e04ee13e6dbc76105ee3dbb 4092 devel optional 
ninja-build_1.0.0-2.debian.tar.xz
 0ba905239ee25dd34d4a84f99628a917 79150 devel optional 
ninja-build_1.0.0-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJQx0cfAAoJEAFx4YKK4JNFQT8QAIr+HmWrYELjIsWQGvGkMzt1
5IVZ/VK2wkphUFmxX39OHhGkyF1jjE3xktWgiaLbLiq1Ip4+H+lPxt5njwaS97YO
YwgKOKovPTuQ6Jw964tMichWXgkHH/z3uO8EVvf18cijPmIUmTez4TMwJ45MfaAG
10vnlebxscl3QLxUMu3RkxPPQ6RxWrRhzvHzc7hyatedMrUvzOTBKxYS9Fpb4RQ+
wm0KVGPQtWs5m0v5lMxACV5nz7cx6Hs1xm0E1s4GvAKpzmVL8mkHzFnoFj0SIhQR
xd0WgFOthHrGCC6F6+zqUDGtug4pUCWEPQRDozAL3eEcGYhpS+jiQHb2eUtGuwVT
GZqKvcWaTacLcQp4ZunsINZSx1VrsIzQAEY7A7Lp883KknYFl97LOpK9G85hUDg8
KWHbTag9n60Azo/4qjiYFJ57amKP6JscCcdsE1VANwRJ+NxC7BFlpelHN8wPJvtb
In2RySl+BkW7cjn6Mgl0X1U/IH1Q0jVmNfOmugo1QFPsF7MB4kKTSDvRc+tQGxZo
HSXazJmgphDk4Xnm3eNZXhY3ZNlJcGmvbTgQLAvYDKe4zoMqfk6uV40gSRQYHOpB
zsnv3ORRRbSJdDv1DIvU+bDH5QpEQSCOyUs48wqH86JWXpujy8u2T4agGmbyNwwP
m7rA0iUC1fcY5Npi2TBE
=Guvj
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to