[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch] consolekit on Debian GNU/KFreeBSD



Hi.


I managed to build the [consolekit package] on Debian GNU/KFreeBSD x86 32bit.
Here is the [consolekit buildd] log.
It seems there is no FTBFS in BTS for this package, and no patch in [patches].

Steps to build this package:
1) run "apt-get source consolekit"
2) add to debian/ the attouched file
  "control" (I only added a build dependency on libkvm-dev)(BUT FOR
ALL ARCHITECTURES)
3) add to debian/patches/ the attouched files
  "80-gnukfreebsd_support_configure.ac.patch"
  "81-gnukfreebsd_support_pseudo_run_autoconf.patch"
  "series" (I only added 80 and 81 to the list)
4) check for build dependencies using "dpkg-checkbuilddeps"
5) run "dpkg-buildpackage"

I'm also attouching a unified patch, consolekit.patch, got using
diff -ur --unidirectional-new-file consolekit-0.2.10.orig/
consolekit-0.2.10/ > consolekit.patch

WARNING: I CHANGED BUILD-DEPS FOR ALL ARCHITECTURES.


I tried (successfully) to install 2 of the built packages (I didn't
try the others) on x86 32bit.
I don't use this package, so I don't know if it works...

I noted that FreeBSD uses the same version of this package, but with a
lot of patches [freebsd patches].

I also noted that in FreeBSD consolekit is a dependency for hal (see
in [freebsd consolekit dependencies]), but I don't know if this will
be useful for the port of hal on Debian GNU/KFreeBSD.


I tried to port this package to understand how to port packages to
Debian GNU/KFreeBSD (and also to gain experience with Debian
packaging).

Can you please tell me if I did some errors?



Cheers,
Luca Favatella




[consolekit package]
http://packages.qa.debian.org/c/consolekit.html

[consolekit buildd]
http://buildd.debian-ports.org/fetch.php?pkg=consolekit&arch=kfreebsd-i386&ver=0.2.10-3&stamp=1228441494&file=log&as=raw

[patches]
http://glibc-bsd.alioth.debian.org/patches/

[freebsd patches]
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/consolekit/

[freebsd consolekit dependencies]
http://www.freebsd.org/cgi/ports.cgi?query=hal&stype=all

Attachment: control
Description: Binary data

--- 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]))
--- 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; }

Attachment: series
Description: Binary data

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@lists.alioth.debian.org>
 Uploaders: Michael Biebl <biebl@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, 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

Reply to: