Bug#456936: libgtop2: FTBFS on GNU/kFreeBSD
Petr Salinger
Petr.Salinger at seznam.cz
Tue Dec 18 16:14:37 UTC 2007
Package: libgtop2
Severity: important
Version: 2.20.0-1
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs extended build-dependencies and small tweak.
Please find attached patch with that.
It would also be nice if you can ask upstream
to include change in sysdeps/freebsd/open.c.
Thanks in advance
Petr
-------------- next part --------------
diff -u libgtop2-2.20.0/debian/control.in libgtop2-2.20.0/debian/control.in
--- libgtop2-2.20.0/debian/control.in
+++ libgtop2-2.20.0/debian/control.in
@@ -13,6 +13,8 @@
texinfo,
dpkg-dev (>= 1.13.19),
libxml-parser-perl,
+ libgeom-dev [kfreebsd-i386 kfreebsd-amd64],
+ libdevstat-dev [kfreebsd-i386 kfreebsd-amd64],
libkvm-dev [kfreebsd-i386 kfreebsd-amd64]
Standards-Version: 3.7.2
only in patch2:
unchanged:
--- libgtop2-2.20.0.orig/sysdeps/freebsd/open.c
+++ libgtop2-2.20.0/sysdeps/freebsd/open.c
@@ -63,9 +63,11 @@
server->machine.euid = geteuid ();
server->machine.gid = getgid ();
server->machine.egid = getegid ();
-
+#if defined(__FreeBSD_kernel__)
+ server->os_version_code = __FreeBSD_kernel_version;
+#else
server->os_version_code = __FreeBSD_version;
-
+#endif
/* Setup machine-specific data */
server->machine.kd = kvm_open (NULL, NULL, NULL, O_RDONLY, "kvm_open");
More information about the pkg-gnome-maintainers
mailing list