[oe-commits] org.oe.dev packages/nbd/nbd: Update to nbd client 2.8.7

freyther commit openembedded-commits at lists.openembedded.org
Fri Jan 19 13:33:09 UTC 2007


packages/nbd/nbd: Update to nbd client 2.8.7
    2.8.7 should only be a bugfix update and in contrast
    to 2.8.4 it compiles with the sanitized kernel headers

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: a883397cbf4a34b6feb952e04840485ff88c15cd
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a883397cbf4a34b6feb952e04840485ff88c15cd
Files:
1
packages/nbd/nbd_2.8.4.bb
packages/nbd/nbd_2.8.7.bb
packages/nbd/files/cross-compile.patch
Diffs:

#
# mt diff -r062ebbe44379bc5a91c32a65954e729d5496ff44 -ra883397cbf4a34b6feb952e04840485ff88c15cd
#
# 
# 
# rename "packages/nbd/nbd_2.8.4.bb"
#     to "packages/nbd/nbd_2.8.7.bb"
# 
# patch "packages/nbd/files/cross-compile.patch"
#  from [3b6cfa03723a053895b0cb6401ed0d6456792fec]
#    to [f12241c6a5cf3c7c380a473f7241a2ee9b294efc]
# 
# patch "packages/nbd/nbd_2.8.7.bb"
#  from [1ab4862147442ca93edc683e23e34fa0b6797fed]
#    to [1cd108d264c562241ed477853eed8719aa44480f]
# 
============================================================
--- packages/nbd/files/cross-compile.patch	3b6cfa03723a053895b0cb6401ed0d6456792fec
+++ packages/nbd/files/cross-compile.patch	f12241c6a5cf3c7c380a473f7241a2ee9b294efc
@@ -1,13 +1,13 @@ Cross Compile fixes:
 Cross Compile fixes:
     The sanitized kernel headers use __u32 and __u64
     let us define those.
 
 
-Index: nbd-2.8.4/configure.ac
+Index: nbd-2.8.7/configure.ac
 ===================================================================
---- nbd-2.8.4.orig/configure.ac	2006-02-26 15:52:03.000000000 +0100
-+++ nbd-2.8.4/configure.ac	2006-05-25 21:35:26.000000000 +0200
-@@ -68,7 +68,8 @@
+--- nbd-2.8.7.orig/configure.ac	2006-10-17 19:42:11.000000000 +0200
++++ nbd-2.8.7/configure.ac	2007-01-19 14:19:09.000000000 +0100
+@@ -68,15 +68,16 @@
                man8_MANS=nbd-client.8
  	      AC_MSG_RESULT(yes)
                ;;
@@ -17,21 +17,20 @@ Index: nbd-2.8.4/configure.ac
  esac
  AC_MSG_CHECKING(where to find a working nbd.h)
  dnl We need to check for NBD_CMD_DISC, but that's part of an enum, it is not
-@@ -82,8 +83,8 @@
- [int foo=NBD_CMD_DISC], 
-   [AC_DEFINE(NBD_H_LOCAL, 1, Set to 1 if a (kernel 2.6) nbd.h can be found in the current directory)
-     NBD_H='"nbd.h"'],
--  AC_TRY_COMPILE([#define u32 int
+ dnl #define'd. Therefore, we check for something which is differently #define'd
+ dnl in the old or new versions, even if we don't really care about that.
+ dnl This might break at some time, but it should work for now, so...
+-AC_TRY_COMPILE([#define u32 int
 -#define u64 int
-+  AC_TRY_COMPILE([#define __u32 int
++AC_TRY_COMPILE([#define __u32 int
 +#define __u64 int
- #include <linux/nbd.h>
-   ],
- [int foo=NBD_CMD_DISC],
-Index: nbd-2.8.4/cliserv.h
+ #define __be32 int
+ #define __be64 int
+ #include "nbd.h"
+Index: nbd-2.8.7/cliserv.h
 ===================================================================
---- nbd-2.8.4.orig/cliserv.h	2006-01-06 18:02:03.000000000 +0100
-+++ nbd-2.8.4/cliserv.h	2006-05-25 21:41:25.000000000 +0200
+--- nbd-2.8.7.orig/cliserv.h	2006-10-17 19:29:12.000000000 +0200
++++ nbd-2.8.7/cliserv.h	2007-01-19 14:17:15.000000000 +0100
 @@ -17,20 +17,26 @@
  
  #if SIZEOF_UNSIGNED_SHORT_INT==4
============================================================
--- packages/nbd/nbd_2.8.4.bb	1ab4862147442ca93edc683e23e34fa0b6797fed
+++ packages/nbd/nbd_2.8.7.bb	1cd108d264c562241ed477853eed8719aa44480f
@@ -1,19 +1,21 @@ DEPENDS = "glib-2.0"
 DESCRIPTION = "Network Block Device"
 LICENSE = "GPLv2"
 HOMEPAGE = "http://nbd.sourceforge.net"
 
 DEPENDS = "glib-2.0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.bz2;md5sum=1b5a0866d025b98d1c24fe19a4f628c3 \
+SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.bz2;md5sum=bc7995b4961385269abc645575bcaf4d \
            file://cross-compile.patch;patch=1 "
 
 inherit autotools
 
 
-PACKAGES = "nbd-client nbd-server"
+PACKAGES = "nbd-client nbd-server nbd-client-dbg nbd-server-dbg"
 PACKAGES += "nbd-client-doc nbd-server-doc"
 
 FILES_nbd-client = "/usr/sbin/nbd-client"
 FILES_nbd-server = "/usr/bin/nbd-server"
+FILES_nbd-client-dbg = "/usr/sbin/.debug/nbd-client"
+FILES_nbd-server-dbg = "/usr/bin/.debug/nbd-server"
 FILES_nbd-client-doc = "/usr/share/man/man8/*"
 FILES_nbd-server-doc = "/usr/share/man/man1/*"






More information about the Openembedded-commits mailing list