[Pkg-utopia-maintainers] Bug#511270: consolekit: FTBFS on GNU/kFreeBSD

Luca Favatella slackydeb at gmail.com
Thu Jan 8 22:42:00 UTC 2009


Package: consolekit
Version: 0.2.10-3

X-Debbugs-Cc: slackydeb at gmail.com, debian-bsd at lists.debian.org
Severity: important
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on
GNU/kFreeBSD.

The attached patch makes the following changes:
* add kfreebsd target to configure.ac script
* regenerate configure (using autoconf)
* add unsatisfied Build-Depends under kfreebsd ports

Thanks,
Luca Favatella

*** consolekit.patch
diff -ur --unidirectional-new-file
consolekit-0.2.10.orig/debian/control consolekit-0.2.10/debian/control
--- consolekit-0.2.10.orig/debian/control	2009-01-07 01:32:29.000000000 +0100
+++ consolekit-0.2.10/debian/control	2009-01-07 00:40:53.000000000 +0100
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Utopia Maintenance Team
<pkg-utopia-maintainers at lists.alioth.debian.org>
 Uploaders: Michael Biebl <biebl at debian.org>
-Build-Depends: cdbs, debhelper (>= 5), autotools-dev, pkg-config,
,quilt, libdbus-glib-1-dev (>= 0.30), libglib2.0-dev (>= 2.7.0),
libx11-dev (>= 1.0.0), xmlto, libpam0g-dev, zlib1g-dev
+Build-Depends: cdbs, debhelper (>= 5), autotools-dev, pkg-config,
,quilt, libdbus-glib-1-dev (>= 0.30), libglib2.0-dev (>= 2.7.0),
libkvm-dev [kfreebsd-i386 kfreebsd-amd64], libx11-dev (>= 1.0.0),
xmlto, libpam0g-dev, zlib1g-dev
 Standards-Version: 3.8.0
 Vcs-Svn: svn://svn.debian.org/svn/pkg-utopia/packages/unstable/consolekit
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/consolekit
diff -ur --unidirectional-new-file
consolekit-0.2.10.orig/debian/patches/80-gnukfreebsd_support_configure.ac.patch
consolekit-0.2.10/debian/patches/80-gnukfreebsd_support_configure.ac.patch
--- consolekit-0.2.10.orig/debian/patches/80-gnukfreebsd_support_configure.ac.patch	1970-01-01
01:00:00.000000000 +0100
+++ consolekit-0.2.10/debian/patches/80-gnukfreebsd_support_configure.ac.patch	2009-01-07
00:50:47.000000000 +0100
@@ -0,0 +1,11 @@
+--- ConsoleKit-0.2.10.orig/configure.ac	2008-02-13 04:55:50.000000000 +0100
++++ consolekit-0.2.10/configure.ac	2009-01-07 00:25:42.000000000 +0100
+@@ -176,7 +176,7 @@
+ CK_BACKEND=""
+ KVM_LIBS=""
+ case "$host" in
+-        *-*-freebsd*)
++        *-*-freebsd* | *-*-kfreebsd*-gnu)
+         CK_BACKEND="freebsd"
+         AC_CHECK_LIB(kvm, kvm_openfiles, have_kvm=yes,
+                 AC_MSG_ERROR([Unable to find libkvm which is needed
on FreeBSD]))
diff -ur --unidirectional-new-file
consolekit-0.2.10.orig/debian/patches/81-gnukfreebsd_support_pseudo_run_autoconf.patch
consolekit-0.2.10/debian/patches/81-gnukfreebsd_support_pseudo_run_autoconf.patch
--- consolekit-0.2.10.orig/debian/patches/81-gnukfreebsd_support_pseudo_run_autoconf.patch	1970-01-01
01:00:00.000000000 +0100
+++ consolekit-0.2.10/debian/patches/81-gnukfreebsd_support_pseudo_run_autoconf.patch	2009-01-07
00:50:57.000000000 +0100
@@ -0,0 +1,11 @@
+--- ConsoleKit-0.2.10.orig/configure	2008-02-26 01:39:59.000000000 +0100
++++ consolekit-0.2.10/configure	2009-01-07 00:27:59.000000000 +0100
+@@ -23944,7 +23944,7 @@
+ CK_BACKEND=""
+ KVM_LIBS=""
+ case "$host" in
+-        *-*-freebsd*)
++        *-*-freebsd* | *-*-kfreebsd*-gnu)
+         CK_BACKEND="freebsd"
+         { echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
+ echo $ECHO_N "checking for kvm_openfiles in -lkvm... $ECHO_C" >&6; }
diff -ur --unidirectional-new-file
consolekit-0.2.10.orig/debian/patches/series
consolekit-0.2.10/debian/patches/series
--- consolekit-0.2.10.orig/debian/patches/series	2009-01-07
01:32:29.000000000 +0100
+++ consolekit-0.2.10/debian/patches/series	2009-01-07 00:32:37.000000000 +0100
@@ -2,3 +2,5 @@
 02-exit_with_dbus.patch
 03-cleanup_console_tags.patch
 04-defer_daemonizing.patch
+80-gnukfreebsd_support_configure.ac.patch
+81-gnukfreebsd_support_pseudo_run_autoconf.patch
\ No newline at end of file


-- System Information:
Debian Release: 5.0
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 7.1-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-utopia-maintainers mailing list