Your message dated Wed, 19 Feb 2014 00:18:34 +0000
with message-id <[email protected]>
and subject line Bug#734070: fixed in consolekit 0.4.6-4
has caused the Debian Bug report #734070,
regarding misc fixes for GNU/kFreeBSD (VT switching and credential checks)
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.)


-- 
734070: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734070
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: consolekit
Version: 0.4.6-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: kfreebsd

Attaching a pair of minor fixes for GNU/kFreeBSD.

The upstream part has been forwarded:

https://bugs.freedesktop.org/show_bug.cgi?id=73257

https://bugs.freedesktop.org/show_bug.cgi?id=73258

-- 
Robert Millan
diff -ur consolekit-0.4.6.old/configure.ac consolekit-0.4.6/configure.ac
--- consolekit-0.4.6.old/configure.ac	2013-07-19 06:24:09.000000000 +0200
+++ consolekit-0.4.6/configure.ac	2014-01-03 15:34:28.000000000 +0100
@@ -83,10 +83,19 @@
 EXTRA_COMPILE_WARNINGS(yes)
 
 # Solaris requires libresolv for daemon()
-case "$host" in
-	*-*-solaris*)
+case "$host_os" in
+	solaris*)
 		AC_CHECK_LIB(resolv, daemon, [CONSOLE_KIT_LIBS="$CONSOLE_KIT_LIBS -lresolv"])
 	;;
+	kfreebsd*-gnu)
+		have_getpeereid=no
+		AC_CHECK_LIB(bsd, getpeereid, have_getpeereid=yes)
+		if test "x$have_getpeereid" = "xyes"; then
+			CONSOLE_KIT_LIBS="${CONSOLE_KIT_LIBS} -lbsd"
+			TOOLS_LIBS="${TOOLS_LIBS} -lbsd"
+			AC_DEFINE(HAVE_GETPEEREID, [], [Define if we have getpeereid])
+		fi
+	;;
 esac
 
 
diff -ur consolekit-0.4.6.old/debian/control consolekit-0.4.6/debian/control
--- consolekit-0.4.6.old/debian/control	2013-09-11 23:08:47.000000000 +0200
+++ consolekit-0.4.6/debian/control	2013-12-29 01:55:52.000000000 +0100
@@ -16,6 +16,7 @@
  libpam0g-dev,
  libpolkit-gobject-1-dev (>= 0.92),
  zlib1g-dev,
+ libbsd-dev (>= 0.3.0~) [kfreebsd-any],
  dh-autoreconf
 Standards-Version: 3.9.3
 Vcs-Git: git://git.debian.org/git/pkg-utopia/consolekit.git
diff -ur consolekit-0.4.6.old/src/ck-sysdeps-unix.c consolekit-0.4.6/src/ck-sysdeps-unix.c
--- consolekit-0.4.6.old/src/ck-sysdeps-unix.c	2013-07-19 06:15:28.000000000 +0200
+++ consolekit-0.4.6/src/ck-sysdeps-unix.c	2014-01-03 15:34:41.000000000 +0100
@@ -100,6 +100,15 @@
         if (ucred != NULL) {
                 ucred_free (ucred);
         }
+#elif defined(HAVE_GETPEEREID)
+	gid_t dummy;
+
+        if (getpeereid (socket_fd, &uid_read, &dummy) == 0) {
+                ret = TRUE;
+        } else {
+                g_warning ("Failed to getpeereid() credentials: %s\n",
+                           g_strerror (errno));
+        }
 #else /* !SO_PEERCRED && !HAVE_GETPEERUCRED */
         g_warning ("Socket credentials not supported on this OS\n");
 #endif
@@ -129,7 +138,7 @@
 {
 #ifdef __linux__
         struct vt_stat vts;
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
         int vers;
 #endif
         int  kb_ok;
@@ -137,7 +146,7 @@
         errno = 0;
 #ifdef __linux__
         kb_ok = (ioctl (fd, VT_GETSTATE, &vts) == 0);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
         kb_ok = (ioctl (fd, CONS_GETVERS, &vers) == 0);
 #else
         kb_ok = 1;

--- End Message ---
--- Begin Message ---
Source: consolekit
Source-Version: 0.4.6-4

We believe that the bug you reported is fixed in the latest version of
consolekit, 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.
Robert Millan <[email protected]> (supplier of updated consolekit 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, 19 Feb 2014 00:27:27 +0100
Source: consolekit
Binary: consolekit libck-connector0 libck-connector-dev libpam-ck-connector
Architecture: source kfreebsd-amd64
Version: 0.4.6-4
Distribution: unstable
Urgency: low
Maintainer: Robert Millan <[email protected]>
Changed-By: Robert Millan <[email protected]>
Description: 
 consolekit - framework for defining and tracking users, sessions and seats
 libck-connector-dev - ConsoleKit development files
 libck-connector0 - ConsoleKit libraries
 libpam-ck-connector - ConsoleKit PAM module
Closes: 734070
Changes: 
 consolekit (0.4.6-4) unstable; urgency=low
 .
   * Change Maintainer to myself as per Michael's invitation
     (https://lists.debian.org/debian-bsd/2014/02/msg00224.html)
   * Fix VT switching and credential checks on GNU/kFreeBSD. (Closes: #734070)
   * Use Linux versions of ck-system-restart and ck-system-stop on GNU/kFreeBSD.
Checksums-Sha1: 
 2840fec3c377373d4e4a3583becfe8655e3d1836 1723 consolekit_0.4.6-4.dsc
 e779f1baf70cc7185f5e031596cfd219954e512c 12192 consolekit_0.4.6-4.debian.tar.gz
 095b2707a4536e4d7e143df68ef54d9d5b688685 122002 
consolekit_0.4.6-4_kfreebsd-amd64.deb
 b63dc23472bfdec966cf22a39d6ed86d6695956d 59956 
libck-connector0_0.4.6-4_kfreebsd-amd64.deb
 5d2dd64a781f4fc60d1ad3d3bad5016e1826c863 68354 
libck-connector-dev_0.4.6-4_kfreebsd-amd64.deb
 bba5c6308e8381884d9dd443749e4a7c6b604948 60262 
libpam-ck-connector_0.4.6-4_kfreebsd-amd64.deb
Checksums-Sha256: 
 2f4cd5b168c92b6676aa495e0310cae67f08eb015044a6f07b690c8428f0f2c9 1723 
consolekit_0.4.6-4.dsc
 6d4dd5e13a76454b4bab27ab6b407718cd77616afd2b1af7cb8d947c1323b802 12192 
consolekit_0.4.6-4.debian.tar.gz
 43633e18251891dd929c02c81990b54689c42c98e12316289d4d0f8352e0dbfc 122002 
consolekit_0.4.6-4_kfreebsd-amd64.deb
 ba5a18d2f8d72ae5d72f19f69d39990884a62fcb716a0cdcc57a2de582486867 59956 
libck-connector0_0.4.6-4_kfreebsd-amd64.deb
 c0fc91cf34a77baab77aef9c41d2dc5187c5cc06448edf6643f022e8c2aedb2d 68354 
libck-connector-dev_0.4.6-4_kfreebsd-amd64.deb
 5bdd63855ff90d2401154d311082ba0a814c28fde8909acdb2b9460ad11d4b95 60262 
libpam-ck-connector_0.4.6-4_kfreebsd-amd64.deb
Files: 
 fde742e9182f05aeacd29b670e7a9498 1723 admin optional consolekit_0.4.6-4.dsc
 414dd095a66cf30f258d7fa06421a3c7 12192 admin optional 
consolekit_0.4.6-4.debian.tar.gz
 d5166023bd66ec1adf8bbd91f85edcb9 122002 admin optional 
consolekit_0.4.6-4_kfreebsd-amd64.deb
 50e7139c3d0f60aaf3b4b7a4fd365d13 59956 libs optional 
libck-connector0_0.4.6-4_kfreebsd-amd64.deb
 ae740be78da20ecd3346b52a16177e23 68354 libdevel optional 
libck-connector-dev_0.4.6-4_kfreebsd-amd64.deb
 318c38a51f2eed865e8cdefbd2833854 60262 admin optional 
libpam-ck-connector_0.4.6-4_kfreebsd-amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/kFreeBSD)

iEYEARECAAYFAlMD9cIACgkQC19io6rUCv8z/ACbBh+jHSfYDMLqhQGB10X5i3TF
fnAAn1vH+munAPdvNM9n3a2bqNWXLWD3
=6fbq
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to