Your message dated Thu, 23 Jun 2011 12:02:51 +0000
with message-id <[email protected]>
and subject line Bug#610716: fixed in libtirpc 0.2.2-2.1
has caused the Debian Bug report #610716,
regarding FTBFS [kfreebsd]: credential structure differences
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.)
--
610716: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610716
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libtirpc
Severity: normal
Tags: patch upstream
Justification: fails to build from source
SCM_CREDS and struct cmsgcred are in bits/socket.h on debian/kfreebsd.
Also, getting the credentials of a unix domain socket peer seems to
work differently.
-- System Information:
Debian Release: 6.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: kfreebsd-i386 (i686)
Kernel: kFreeBSD 8.1-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ru ref/libtirpc-0.2.1/src/clnt_vc.c libtirpc-0.2.1/src/clnt_vc.c
--- ref/libtirpc-0.2.1/src/clnt_vc.c 2009-11-30 09:04:55.000000000 -0500
+++ libtirpc-0.2.1/src/clnt_vc.c 2011-01-16 20:01:49.438522186 -0500
@@ -70,6 +70,7 @@
#define MCALL_MSG_SIZE 24
#define CMGROUP_MAX 16
+#ifndef SCM_CREDS
#define SCM_CREDS 0x03 /* process creds (struct cmsgcred) */
/*
@@ -87,6 +88,7 @@
short cmcred_ngroups; /* number or groups */
gid_t cmcred_groups[CMGROUP_MAX]; /* groups */
};
+#endif
struct cmessage {
struct cmsghdr cmsg;
diff -ru ref/libtirpc-0.2.1/src/getpeereid.c libtirpc-0.2.1/src/getpeereid.c
--- ref/libtirpc-0.2.1/src/getpeereid.c 2009-11-30 09:04:55.000000000 -0500
+++ libtirpc-0.2.1/src/getpeereid.c 2011-01-16 20:25:04.117482780 -0500
@@ -29,6 +29,7 @@
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/un.h>
+#include <sys/user.h>
#include <errno.h>
#include <unistd.h>
@@ -36,12 +37,22 @@
int
getpeereid(int s, uid_t *euid, gid_t *egid)
{
+#ifdef XUCRED_VERSION
+ struct xucred uc;
+#define uid cr_uid
+#define gid cr_gid
+#else
struct ucred uc;
+#endif
socklen_t uclen;
int error;
uclen = sizeof(uc);
+#ifdef XUCRED_VERSION
+ error = getsockopt(s, 0, LOCAL_PEERCRED, &uc, &uclen);
+#else
error = getsockopt(s, SOL_SOCKET, SO_PEERCRED, &uc, &uclen); /* SCM_CREDENTIALS */
+#endif
if (error != 0)
return (error);
// if (uc.cr_version != XUCRED_VERSION)
--- End Message ---
--- Begin Message ---
Source: libtirpc
Source-Version: 0.2.2-2.1
We believe that the bug you reported is fixed in the latest version of
libtirpc, which is due to be installed in the Debian FTP archive:
libtirpc-dev_0.2.2-2.1_kfreebsd-amd64.deb
to main/libt/libtirpc/libtirpc-dev_0.2.2-2.1_kfreebsd-amd64.deb
libtirpc1_0.2.2-2.1_kfreebsd-amd64.deb
to main/libt/libtirpc/libtirpc1_0.2.2-2.1_kfreebsd-amd64.deb
libtirpc_0.2.2-2.1.debian.tar.gz
to main/libt/libtirpc/libtirpc_0.2.2-2.1.debian.tar.gz
libtirpc_0.2.2-2.1.dsc
to main/libt/libtirpc/libtirpc_0.2.2-2.1.dsc
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.
Robert Millan <[email protected]> (supplier of updated libtirpc 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: Wed, 08 Jun 2011 12:53:03 +0200
Source: libtirpc
Binary: libtirpc-dev libtirpc1
Architecture: source kfreebsd-amd64
Version: 0.2.2-2.1
Distribution: unstable
Urgency: low
Maintainer: Steinar H. Gunderson <[email protected]>
Changed-By: Robert Millan <[email protected]>
Description:
libtirpc-dev - transport-independent RPC library - development files
libtirpc1 - transport-independent RPC library
Closes: 610716
Changes:
libtirpc (0.2.2-2.1) unstable; urgency=low
.
* Non-maintainer upload.
* 03-kfreebsd.diff: Fix FTBFS on GNU/kFreeBSD. Thanks Petr Salinger.
(Closes: #610716)
Checksums-Sha1:
c1af77b15d973fbd66b37387127883c941799eed 1066 libtirpc_0.2.2-2.1.dsc
ecfe932b60c603687e5b300a681c352ed3ab0c60 15134 libtirpc_0.2.2-2.1.debian.tar.gz
6750197ccba07e39712df3a75127d20c45c053b0 140756
libtirpc-dev_0.2.2-2.1_kfreebsd-amd64.deb
6a1a8a013950ab5e2f222aaae31aae6d8947b97d 85236
libtirpc1_0.2.2-2.1_kfreebsd-amd64.deb
Checksums-Sha256:
f646de1c59177fff00148141d90a26cc956c06cb9c535ac18727c8568dce32e8 1066
libtirpc_0.2.2-2.1.dsc
557db97ef5120d98f72ced577714337864e4b9626c151c690848417ea655f52c 15134
libtirpc_0.2.2-2.1.debian.tar.gz
eaf7dbab34ff1ff6f310d03a9d81c412a24607429b5c39651754984416da22f7 140756
libtirpc-dev_0.2.2-2.1_kfreebsd-amd64.deb
7907a735b778e415e8c82027b2f415008e80251cacf9308c9123e60d50a626e6 85236
libtirpc1_0.2.2-2.1_kfreebsd-amd64.deb
Files:
9365c4b5528bdfde7dc3c74c2469dea7 1066 libs standard libtirpc_0.2.2-2.1.dsc
103ea03b00167a78541e2534c1b25fbf 15134 libs standard
libtirpc_0.2.2-2.1.debian.tar.gz
7242c46f192d987c5d6f7468219753e3 140756 libdevel standard
libtirpc-dev_0.2.2-2.1_kfreebsd-amd64.deb
09cd02946fd9bdd700afb6eac20eb2f7 85236 libs standard
libtirpc1_0.2.2-2.1_kfreebsd-amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/kFreeBSD)
iEYEARECAAYFAk3vVOYACgkQC19io6rUCv87TgCcCh6RxiArPkEMyBu7EHudDp9C
1KcAn2BxJ0fGzbYu9y4hudpHSTuhU7NR
=c5/f
-----END PGP SIGNATURE-----
--- End Message ---