Skip to contentSkip to conversation

opkg: bump SRCREV and drop applied patches

PATCH New Martin Jansa 1 participant 1 message Nov 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opkg: bump SRCREV and drop applied patches

* only change upstream which wasn't in oe-core is
http://code.google.com/p/opkg/source/detail?r=635
and added testcase for that

---
 .../0001-add-opkg_compare_versions-function.patch  |  54 ------
 ...se-the-uname-gname-fields-when-extracting.patch | 101 -----------
 ...Fix-dependency-issues-for-preinst-scripts.patch | 188 ---------------------
 ...inst-script-is-not-fatal-with-conf-offlin.patch |  71 --------
 ...not-read-etc-opkg-.conf-if-f-is-specified.patch |  93 ----------
 .../opkg/0006-detect-circular-dependencies.patch   | 117 -------------
 ...g-provides-even-when-oldpkg-provides-exis.patch |  49 ------
 .../opkg/opkg/0008-select_higher_version.patch     |  99 -----------
 .../0009-pkg_depends-fix-version-constraints.patch | 188 ---------------------
 ...depends-fix-version_constraints_satisfied.patch |  37 ----
 .../opkg/opkg/alternatives-ln.patch                |  56 ------
 ...t-add-recommends-pkgs-to-depended-upon-by.patch |  26 ---
 ...n-t-print-provides-if-nothing-is-provided.patch |  24 ---
 .../opkg/opkg/opkg-no-sync-offline.patch           |  18 --
 meta/recipes-devtools/opkg/opkg_svn.bb             |  18 +-
 15 files changed, 2 insertions(+), 1137 deletions(-)
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0001-add-opkg_compare_versions-function.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0002-Ensure-we-use-the-uname-gname-fields-when-extracting.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0003-Fix-dependency-issues-for-preinst-scripts.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0004-Failed-postinst-script-is-not-fatal-with-conf-offlin.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0005-Do-not-read-etc-opkg-.conf-if-f-is-specified.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0006-detect-circular-dependencies.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0007-merge-newpkg-provides-even-when-oldpkg-provides-exis.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0008-select_higher_version.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0009-pkg_depends-fix-version-constraints.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/alternatives-ln.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/don-t-add-recommends-pkgs-to-depended-upon-by.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/don-t-print-provides-if-nothing-is-provided.patch
 delete mode 100644 meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch
meta/recipes-devtools/opkg/opkg/0001-add-opkg_compare_versions-function.patch deleted +0 -54
deleted file mode 100644
index 5dc76d4..0000000
@@ -1,54 +0,0 @@
-From 029cf99fd44645b5fe1b6491355c631da3096e09 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Sat, 17 Dec 2011 12:51:07 +0100
-Subject: [PATCH 1/7] add opkg_compare_versions function
-
-* not used in opkg but can be usefull, e.g. instead of
-  opkg-utils/opkg-compare-versions.c
-
-Upstream-Status: Submitted
-http://code.google.com/p/opkg/issues/detail?id=93
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- libopkg/opkg.c | 15 +++++++++++++++
- libopkg/opkg.h |  2 ++
- 2 files changed, 17 insertions(+)
-
-diff --git a/libopkg/opkg.c b/libopkg/opkg.c
-index 92f61f4..eaea529 100644
---- a/libopkg/opkg.c
-+++ b/libopkg/opkg.c
-@@ -870,3 +870,18 @@ opkg_repository_accessibility_check(void)
- 
- 	return ret;
- }
-+
-+int
-+opkg_compare_versions (const char *ver1, const char *ver2)
-+{
-+  pkg_t *pkg1, *pkg2;
-+
-+  pkg1 = pkg_new();
-+  pkg2 = pkg_new();
-+
-+  parse_version(pkg1, ver1);
-+  parse_version(pkg2, ver2);
-+
-+  return pkg_compare_versions(pkg1, pkg2);
-+}
-+
-diff --git a/libopkg/opkg.h b/libopkg/opkg.h
-index 4fbd404..7aa86eb 100644
---- a/libopkg/opkg.h
-+++ b/libopkg/opkg.h
-@@ -58,4 +58,6 @@ pkg_t* opkg_find_package (const char *name, const char *version, const char *arc
- 
- int opkg_repository_accessibility_check(void);
- 
-+int opkg_compare_versions (const char *ver1, const char *ver2);
-+
- #endif /* OPKG_H */
--- 
-1.7.12
-
meta/recipes-devtools/opkg/opkg/0002-Ensure-we-use-the-uname-gname-fields-when-extracting.patch deleted +0 -101

101 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0003-Fix-dependency-issues-for-preinst-scripts.patch deleted +0 -188

188 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0004-Failed-postinst-script-is-not-fatal-with-conf-offlin.patch deleted +0 -71

71 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0005-Do-not-read-etc-opkg-.conf-if-f-is-specified.patch deleted +0 -93

93 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0006-detect-circular-dependencies.patch deleted +0 -117

117 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0007-merge-newpkg-provides-even-when-oldpkg-provides-exis.patch deleted +0 -49

49 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0008-select_higher_version.patch deleted +0 -99

99 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0009-pkg_depends-fix-version-constraints.patch deleted +0 -188

188 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/0010-pkg_depends-fix-version_constraints_satisfied.patch deleted +0 -37
deleted file mode 100644
index a13d658..0000000
@@ -1,37 +0,0 @@
-From e9add8fe4a63ef14aba8bd238ddde84d5470b611 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Sat, 29 Sep 2012 18:56:01 +0200
-Subject: [PATCH 10/10] pkg_depends: fix version_constraints_satisfied
-
-* with
-  Package: a
-  Version: 1
-  and
-  Conflicts: a (<< 1)
-  we have comparison == 0, but constraint EARLIER is not satisfied!
-
-Upstream-Status: Submitted
-http://code.google.com/p/opkg/issues/detail?id=94
-
-Signed-off-by: Martin Jansa <[email protected]>
----
- libopkg/pkg_depends.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c
-index 3dd8240..be81b7f 100644
---- a/libopkg/pkg_depends.c
-+++ b/libopkg/pkg_depends.c
-@@ -464,7 +464,8 @@ int version_constraints_satisfied(depend_t * depends, pkg_t * pkg)
-     else if((depends->constraint == LATER) &&
- 	    (comparison > 0))
- 	return 1;
--    else if(comparison == 0)
-+    else if((depends->constraint == EQUAL) && 
-+	    (comparison == 0))
- 	return 1;
-     else if((depends->constraint == LATER_EQUAL) &&
- 	    (comparison >= 0))
--- 
-1.7.12
-
meta/recipes-devtools/opkg/opkg/alternatives-ln.patch deleted +0 -56

56 lines not on this page · raw message

meta/recipes-devtools/opkg/opkg/don-t-add-recommends-pkgs-to-depended-upon-by.patch deleted +0 -26
deleted file mode 100644
index e581dc0..0000000
@@ -1,26 +0,0 @@
-While removing a package with opkg, the process shouldn't be blocked if
-another package RECOMMENDS the package wanted to be removed. This is
-because, while generating the dependencies, opkg adds dependencies to
-depended_upon_by even if dependency's type is RECOMMEND. The fix is to
-skip dependencies of type RECOMMEND while constructing depended_upon_by.
-
-Bug info:
-https://bugzilla.yoctoproject.org/show_bug.cgi?id=2431
-
-Upstream-Status: Pending
-Signed-off-by: Andrei Gherzan <[email protected]>
-
-Index: trunk/libopkg/pkg_depends.c
-===================================================================
---- trunk.orig/libopkg/pkg_depends.c	2011-09-03 05:54:56.000000000 +0300
-+++ trunk/libopkg/pkg_depends.c	2012-10-20 22:23:03.783573202 +0300
-@@ -785,8 +785,7 @@
- 	for (i = 0; i < count; i++) {
- 		depends = &pkg->depends[i];
- 		if (depends->type != PREDEPEND
--		    && depends->type != DEPEND
--		    && depends->type != RECOMMEND)
-+		    && depends->type != DEPEND)
- 			continue;
- 		for (j = 0; j < depends->possibility_count; j++) {
- 			ab_depend = depends->possibilities[j]->pkg;
meta/recipes-devtools/opkg/opkg/don-t-print-provides-if-nothing-is-provided.patch deleted +0 -24
deleted file mode 100644
index 669faef..0000000
@@ -1,24 +0,0 @@
-Every package provides itself. While printing package information all
-fields are printed only if there is any relevant info for them. For
-example: a package with no "Replaces" won't get this printed at all.
-Packages which provide only themselves, were printing this field but with
-no values. This patch skips this field if the package provides only
-itself.
-
-Upstream-Status: Pending
-Signed-off-by: Andrei Gherzan <[email protected]>
-
-Index: trunk/libopkg/pkg.c
-===================================================================
---- trunk.orig/libopkg/pkg.c	2011-12-18 02:11:34.000000000 +0200
-+++ trunk/libopkg/pkg.c	2012-10-20 22:20:04.109201287 +0300
-@@ -731,7 +731,8 @@
- 	  } else if (strcasecmp(field, "Priority") == 0) {
-                fprintf(fp, "Priority: %s\n", pkg->priority);
- 	  } else if (strcasecmp(field, "Provides") == 0) {
--	       if (pkg->provides_count) {
-+	       /* Don't print provides if this package provides only itself */
-+	       if (pkg->provides_count > 1) {
-                   fprintf(fp, "Provides:");
- 		  for(i = 1; i < pkg->provides_count; i++) {
-                       fprintf(fp, "%s %s", i == 1 ? "" : ",",
meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch deleted +0 -18
deleted file mode 100644
index b1b3453..0000000
@@ -1,18 +0,0 @@
-When installing into an offline root, calling sync() is pointless and just 
-hurts performance.  Don't let's do that.
-
-Signed-off-by: Phil Blundell <[email protected]>
-Upstream-Status: Pending
-
---- a/libopkg/opkg_cmd.c	2011-09-08 10:53:07.000000000 +0100
-+++ b/libopkg/opkg_cmd.c	2011-10-04 10:45:22.278615584 +0100
-@@ -64,7 +64,8 @@ write_status_files_if_changed(void)
- 	  opkg_msg(INFO, "Writing status file.\n");
- 	  opkg_conf_write_status_files();
- 	  pkg_write_changed_filelists();
--	  sync();
-+	  if (!conf->offline_root)
-+	      sync();
-      } else {
- 	  opkg_msg(DEBUG, "Nothing to be done.\n");
-      }
meta/recipes-devtools/opkg/opkg_svn.bb +2 -16
index 064cf43..ee78488 100644
@@ -1,25 +1,11 @@
 require opkg.inc
 
 SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http \
-  file://0001-add-opkg_compare_versions-function.patch \
-  file://0002-Ensure-we-use-the-uname-gname-fields-when-extracting.patch \
-  file://0003-Fix-dependency-issues-for-preinst-scripts.patch \
-  file://0004-Failed-postinst-script-is-not-fatal-with-conf-offlin.patch \
-  file://0005-Do-not-read-etc-opkg-.conf-if-f-is-specified.patch \
-  file://0006-detect-circular-dependencies.patch \
-  file://0007-merge-newpkg-provides-even-when-oldpkg-provides-exis.patch \
-  file://0008-select_higher_version.patch \
-  file://0009-pkg_depends-fix-version-constraints.patch \
-  file://0010-pkg_depends-fix-version_constraints_satisfied.patch \
-  file://opkg-no-sync-offline.patch \
-  file://alternatives-ln.patch \
-  file://don-t-add-recommends-pkgs-to-depended-upon-by.patch \
-  file://don-t-print-provides-if-nothing-is-provided.patch \
 "
 
 S = "${WORKDIR}/trunk"
 
-SRCREV = "633"
+SRCREV = "649"
 PV = "0.1.8+svnr${SRCPV}"
 
-PR = "${INC_PR}.9"
+PR = "${INC_PR}.0"
Signature · 1 line
1.8.0