--- Begin Message ---
Package: trousers
Version: 0.3.2-7
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
your package FTBFS on kfreebsd-*. I'm attaching a patch which almost
fixes it, but I'm now getting:
| ps_inspect.c: In function ‘main’:
| ps_inspect.c:342: error: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
The OFF_T_PRINTF #defines at the top of tools/ps_inspect.c seem very
buggy too me, I guess you should be checking this kind of things from
configure.
Mraw,
KiBi.
--- a/src/include/trousers_types.h
+++ b/src/include/trousers_types.h
@@ -118,7 +118,7 @@ typedef struct tdTSS_KEY {
BYTE *encData;
} TSS_KEY;
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined (__GLIBC__))
#define BSD_CONST
#elif (defined (__OpenBSD__) || defined (__FreeBSD__))
#define BSD_CONST const
--- a/src/tcsd/platform.c
+++ b/src/tcsd/platform.c
@@ -13,7 +13,7 @@
#include <sys/param.h>
#include <sys/sysctl.h>
#include <err.h>
-#elif (defined (__linux) || defined (linux))
+#elif (defined (__linux) || defined (linux) || defined(__GLIBC__))
#include <utmp.h>
#endif
@@ -31,7 +31,7 @@
#include "tcslog.h"
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
MUTEX_DECLARE_INIT(utmp_lock);
char
--- a/src/tspi/ps/tspps.c
+++ b/src/tspi/ps/tspps.c
@@ -44,7 +44,7 @@ get_user_ps_path(char **file)
TSS_RESULT result;
char *file_name = NULL, *home_dir = NULL;
struct passwd *pwp;
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
struct passwd pw;
#endif
struct stat stat_buf;
@@ -64,7 +64,7 @@ get_user_ps_path(char **file)
setpwent();
while (1) {
-#if (defined (__linux) || defined (linux))
+#if (defined (__linux) || defined (linux) || defined(__GLIBC__))
rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp);
if (rc) {
LogDebugFn("USER PS: Error getting path to home directory: getpwent_r: %s",
--- End Message ---
--- Begin Message ---
Source: trousers
Source-Version: 0.3.2-8
We believe that the bug you reported is fixed in the latest version of
trousers, which is due to be installed in the Debian FTP archive:
libtspi-dev_0.3.2-8_amd64.deb
to main/t/trousers/libtspi-dev_0.3.2-8_amd64.deb
libtspi1_0.3.2-8_amd64.deb
to main/t/trousers/libtspi1_0.3.2-8_amd64.deb
trousers-dbg_0.3.2-8_amd64.deb
to main/t/trousers/trousers-dbg_0.3.2-8_amd64.deb
trousers_0.3.2-8.diff.gz
to main/t/trousers/trousers_0.3.2-8.diff.gz
trousers_0.3.2-8.dsc
to main/t/trousers/trousers_0.3.2-8.dsc
trousers_0.3.2-8_amd64.deb
to main/t/trousers/trousers_0.3.2-8_amd64.deb
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 557556@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Laurent Bigonville <bigon@debian.org> (supplier of updated trousers 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 23 Nov 2009 10:44:10 +0100
Source: trousers
Binary: trousers trousers-dbg libtspi1 libtspi-dev
Architecture: source amd64
Version: 0.3.2-8
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Laurent Bigonville <bigon@debian.org>
Description:
libtspi-dev - open-source TCG Software Stack (development)
libtspi1 - open-source TCG Software Stack (library)
trousers - open-source TCG Software Stack (daemon)
trousers-dbg - open-source TCG Software Stack (debug)
Closes: 557556
Changes:
trousers (0.3.2-8) unstable; urgency=low
.
* QA upload.
* Fix FTBFS on kfreebsd-* (Closes: #557556)
Checksums-Sha1:
ac67e00dda55ac9cac361f69e1670abb7ffbc23b 1091 trousers_0.3.2-8.dsc
f63e9a25046ba0c00ef42dcf6b1fac9ee5e910ed 15752 trousers_0.3.2-8.diff.gz
f11af2199b6ca01f9a62d963c7341a965d988428 146664 trousers_0.3.2-8_amd64.deb
a36406c6535975984da04f4861755e9292c275c7 576750 trousers-dbg_0.3.2-8_amd64.deb
f75c9ab53fdd458e464adcdc8e753d7776783663 195874 libtspi1_0.3.2-8_amd64.deb
b936ceddfcb66746ad5052c47a135b4b35ed0ad9 659028 libtspi-dev_0.3.2-8_amd64.deb
Checksums-Sha256:
5d47061abf94b3dc0e9c466377f3a16da9a391e38b072215a01792b7d0411c72 1091 trousers_0.3.2-8.dsc
eda52fdd75847b7f5443758fbaf829d6e349b5e19564346508b09c644d867b5a 15752 trousers_0.3.2-8.diff.gz
e1f90fadd8706a99aad048e147cf0bdce2f9776d3c3644bdc2d0e1fb64cc01ad 146664 trousers_0.3.2-8_amd64.deb
c6731e46dddb350394f4541ae0ce138680772c33feb1301e023561bd66239993 576750 trousers-dbg_0.3.2-8_amd64.deb
fe54974183856b0e1b3c1ea21cdc43398c2a9f70d7ef4f413366db9a9909e74f 195874 libtspi1_0.3.2-8_amd64.deb
f7c96932e800938efcfec93a825ec5a82aa236b84cdfbcb3c908409b87a9c0d6 659028 libtspi-dev_0.3.2-8_amd64.deb
Files:
432ea826b2ce47121f54b68669559a51 1091 admin optional trousers_0.3.2-8.dsc
8b968124f725abb1fddcc401081a68d4 15752 admin optional trousers_0.3.2-8.diff.gz
65eba9aa2529011cfc320891efeee913 146664 admin optional trousers_0.3.2-8_amd64.deb
a4dec518d11886aaa2f7ea3301e149e2 576750 debug extra trousers-dbg_0.3.2-8_amd64.deb
7d4b14d5df020da99b3a3e5472e169b5 195874 libs optional libtspi1_0.3.2-8_amd64.deb
449ea6d3b5ac24ba51819202d1916988 659028 libdevel optional libtspi-dev_0.3.2-8_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAksKXJUACgkQdkeBByM7nqC/GgCeOIMwMSt2rGYCj0jZXPssPVHj
K1oAn0Q6cpeKgO0vJl8o+xSGGxVvib3P
=5nX0
-----END PGP SIGNATURE-----
--- End Message ---