From 9cd39e5117ff2af9390a30c341d8e3a1998f303f Mon Sep 17 00:00:00 2001 From: Josselin Mouette Date: Sun, 22 Nov 2009 20:17:25 +0000 Subject: [PATCH] 04_kfreebsd_version_check.patch: drop brain-dead runtime version check. --- debian/changelog | 4 +++- .../patches/04_kfreebsd_version_check.patch | 21 +++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 debian/patches/04_kfreebsd_version_check.patch diff --git a/debian/changelog b/debian/changelog index d9668ab4..28576084 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,13 +6,15 @@ libgtop2 (2.28.0-3) unstable; urgency=low * 03_kfreebsd_installdirs.patch: patch to install binaries in libexecdir so that we can version the installation directory. Also use DESTDIR in the installation hooks. + * 04_kfreebsd_version_check.patch: drop brain-dead runtime version + check. * Rename 90_autoconf.patch to 90_autotools.patch, re-run all the autotools on top of that. * Pass a versioned libexecdir to the configure arguments. * Install the server binary on kfreebsd. * Exclude it from dh_fixperms. - -- Josselin Mouette Sun, 22 Nov 2009 18:16:17 +0100 + -- Josselin Mouette Sun, 22 Nov 2009 21:17:18 +0100 libgtop2 (2.28.0-2) unstable; urgency=low diff --git a/debian/patches/04_kfreebsd_version_check.patch b/debian/patches/04_kfreebsd_version_check.patch new file mode 100644 index 00000000..3acc521b --- /dev/null +++ b/debian/patches/04_kfreebsd_version_check.patch @@ -0,0 +1,21 @@ +Index: libgtop-2.28.0/src/daemon/server.c +=================================================================== +--- libgtop-2.28.0.orig/src/daemon/server.c 2009-11-22 21:14:47.613184919 +0100 ++++ libgtop-2.28.0/src/daemon/server.c 2009-11-22 21:15:02.673188074 +0100 +@@ -86,16 +86,6 @@ main(int argc, char *argv[]) + LIBGTOP_COMPILE_RELEASE); + _exit (1); + } +-#else +- if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || +- strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || +- strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", +- LIBGTOP_COMPILE_SYSTEM, +- LIBGTOP_COMPILE_RELEASE, +- LIBGTOP_COMPILE_MACHINE); +- _exit (1); +- } + #endif + + glibtop_init_p (glibtop_global_server, 0, 0); diff --git a/debian/patches/series b/debian/patches/series index 2daf31dc..3834f784 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ 01_kfreebsd_kvm_libs.patch 02_hurd_stub_backend.patch 03_kfreebsd_installdirs.patch +04_kfreebsd_version_check.patch 90_autotools.patch 99_ltmain_as-needed.patch