dpkg: Make it a little quieter by removing extra fields warnings
authorRichard Purdie <richard@openedhand.com>
Fri, 17 Nov 2006 15:40:56 +0000 (15:40 +0000)
committerRichard Purdie <richard@openedhand.com>
Fri, 17 Nov 2006 15:40:56 +0000 (15:40 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@870 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/dpkg/dpkg-native_1.13.22.bb
meta/packages/dpkg/dpkg.inc
meta/packages/dpkg/dpkg_1.13.22.bb
meta/packages/dpkg/files/ignore_extra_fields.patch [new file with mode: 0644]

index 67e9306..68e8f19 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r1"
+PR = "r2"
 DEPENDS += "ncurses-native zlib-native virtual/update-alternatives-native"
 SRC_URI += "file://noman.patch;patch=1"
 
index a2504dd..5fab2a7 100644 (file)
@@ -3,6 +3,7 @@ LICENSE = "GPL"
 SECTION = "base"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \
+           file://ignore_extra_fields.patch;patch=1 \
            file://noupdalt.patch;patch=1"
 
 S = "${WORKDIR}/dpkg-${PV}"
index 9c7cdd0..0d6ae5c 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r3"
+PR = "r4"
 DEPENDS += "ncurses zlib bzip2"
 SRC_URI += "file://noman.patch;patch=1"
 
diff --git a/meta/packages/dpkg/files/ignore_extra_fields.patch b/meta/packages/dpkg/files/ignore_extra_fields.patch
new file mode 100644 (file)
index 0000000..4387846
--- /dev/null
@@ -0,0 +1,21 @@
+ dpkg-deb/build.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: dpkg-1.13.22/dpkg-deb/build.c
+===================================================================
+--- dpkg-1.13.22.orig/dpkg-deb/build.c 2006-05-19 23:11:08.000000000 +0100
++++ dpkg-1.13.22/dpkg-deb/build.c      2006-11-17 14:43:20.000000000 +0000
+@@ -220,11 +220,11 @@ void do_build(const char *const *argv) {
+               controlfile, checkedinfo->otherpriority);
+       warns++;
+     }
+-    for (field= checkedinfo->available.arbs; field; field= field->next) {
++    /*for (field= checkedinfo->available.arbs; field; field= field->next) {
+       fprintf(stderr, _("warning, `%s' contains user-defined field `%s'\n"),
+               controlfile, field->name);
+       warns++;
+-    }
++    }*/
+     checkversion(checkedinfo->available.version.version,"(upstream) version",&errs);
+     checkversion(checkedinfo->available.version.revision,"Debian revision",&errs);
+     if (errs) ohshit(_("%d errors in control file"),errs);