summaryrefslogtreecommitdiff
path: root/packages/ipkg/ipkg-0.99.140
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/ipkg/ipkg-0.99.140
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/ipkg/ipkg-0.99.140')
-rw-r--r--packages/ipkg/ipkg-0.99.140/.mtn2git_empty0
-rw-r--r--packages/ipkg/ipkg-0.99.140/remove-c99isms.patch124
-rw-r--r--packages/ipkg/ipkg-0.99.140/terse.patch18
3 files changed, 142 insertions, 0 deletions
diff --git a/packages/ipkg/ipkg-0.99.140/.mtn2git_empty b/packages/ipkg/ipkg-0.99.140/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/ipkg/ipkg-0.99.140/.mtn2git_empty
diff --git a/packages/ipkg/ipkg-0.99.140/remove-c99isms.patch b/packages/ipkg/ipkg-0.99.140/remove-c99isms.patch
index e69de29bb2..f1ad2a3f6c 100644
--- a/packages/ipkg/ipkg-0.99.140/remove-c99isms.patch
+++ b/packages/ipkg/ipkg-0.99.140/remove-c99isms.patch
@@ -0,0 +1,124 @@
+Index: C/pkg_depends.c
+===================================================================
+--- C.orig/pkg_depends.c 2005-02-08 14:32:46.000000000 +0000
++++ C/pkg_depends.c 2005-02-08 15:50:50.000000000 +0000
+@@ -251,15 +251,16 @@
+ really conflicts
+ returns 0 if conflicts <> replaces or 1 if conflicts == replaces
+ */
+-int is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg){
+-
+-int i ;
+-int replaces_count = pkg->replaces_count;
++int is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg)
++{
++ int i ;
++ int replaces_count = pkg->replaces_count;
++ abstract_pkg_t **replaces;
+
+- if (pkg->replaces_count==0) // No replaces, it's surely a conflict
+- return 0;
++ if (pkg->replaces_count==0) // No replaces, it's surely a conflict
++ return 0;
+
+- abstract_pkg_t **replaces = pkg->replaces;
++ replaces = pkg->replaces;
+
+ for (i = 0; i < replaces_count; i++) {
+ if (strcmp(pkg_scout->name,pkg->replaces[i]->name)==0) // Found
+@@ -280,6 +281,8 @@
+ register int i, j, k;
+ int count;
+ abstract_pkg_t * ab_pkg;
++ pkg_t **pkg_scouts;
++ pkg_t *pkg_scout;
+
+ /*
+ * this is a setup to check for redundant/cyclic dependency checks,
+@@ -316,9 +319,9 @@
+ if (test_vec) {
+ /* pkg_vec found, it is an actual package conflict
+ * cruise this possiblity's pkg_vec looking for an installed version */
+- pkg_t **pkg_scouts = test_vec->pkgs;
++ pkg_scouts = test_vec->pkgs;
+ for(k = 0; k < test_vec->len; k++){
+- pkg_t *pkg_scout = pkg_scouts[k];
++ pkg_scout = pkg_scouts[k];
+ if (!pkg_scout) {
+ fprintf(stderr, "%s: null pkg scout\n", __FUNCTION__);
+ continue;
+@@ -381,13 +384,16 @@
+ abstract_pkg_vec_t *provider_apkgs = apkg->provided_by;
+ int n_providers = provider_apkgs->len;
+ abstract_pkg_t **apkgs = provider_apkgs->pkgs;
++ pkg_vec_t *pkg_vec;
++ int n_pkgs ;
+ int i;
++ int j;
++
+ for (i = 0; i < n_providers; i++) {
+ abstract_pkg_t *papkg = apkgs[i];
+- pkg_vec_t *pkg_vec = papkg->pkgs;
++ pkg_vec = papkg->pkgs;
+ if (pkg_vec) {
+- int n_pkgs = pkg_vec->len;
+- int j;
++ n_pkgs = pkg_vec->len;
+ for (j = 0; j < n_pkgs; j++) {
+ pkg_t *pkg = pkg_vec->pkgs[j];
+ if (version_constraints_satisfied(depend, pkg)) {
+@@ -406,12 +412,14 @@
+ int n_providers = provider_apkgs->len;
+ abstract_pkg_t **apkgs = provider_apkgs->pkgs;
+ int i;
++ int n_pkgs;
++ int j;
++
+ for (i = 0; i < n_providers; i++) {
+ abstract_pkg_t *papkg = apkgs[i];
+ pkg_vec_t *pkg_vec = papkg->pkgs;
+ if (pkg_vec) {
+- int n_pkgs = pkg_vec->len;
+- int j;
++ n_pkgs = pkg_vec->len;
+ for (j = 0; j < n_pkgs; j++) {
+ pkg_t *pkg = pkg_vec->pkgs[j];
+ if (version_constraints_satisfied(depend, pkg)) {
+@@ -532,11 +540,15 @@
+ abstract_pkg_t **conflictee_provides = conflictee->provides;
+ int conflictee_provides_count = conflictee->provides_count;
+ int i, j, k;
++ int possibility_count;
++ struct depend **possibilities;
++ abstract_pkg_t *possibility ;
++
+ for (i = 0; i < conflicts_count; i++) {
+- int possibility_count = conflicts[i].possibility_count;
+- struct depend **possibilities = conflicts[i].possibilities;
++ possibility_count = conflicts[i].possibility_count;
++ possibilities = conflicts[i].possibilities;
+ for (j = 0; j < possibility_count; j++) {
+- abstract_pkg_t *possibility = possibilities[j]->pkg;
++ possibility = possibilities[j]->pkg;
+ for (k = 0; k < conflictee_provides_count; k++) {
+ if (possibility == conflictee_provides[k]) {
+ return 1;
+@@ -832,6 +844,8 @@
+ compound_depend_t * depends;
+ int count, othercount;
+ register int i, j;
++ abstract_pkg_t * ab_depend;
++ abstract_pkg_t ** temp;
+
+ count = pkg->pre_depends_count + pkg->depends_count;
+ depends = pkg->depends;
+@@ -843,8 +857,7 @@
+ if (0 && pkg->pre_depends_count)
+ fprintf(stderr, " i=%d possibility_count=%x depends=%p\n", i, depends->possibility_count, depends);
+ for (j = 0; j < depends->possibility_count; j++){
+- abstract_pkg_t * ab_depend = depends->possibilities[j]->pkg;
+- abstract_pkg_t ** temp;
++ ab_depend = depends->possibilities[j]->pkg;
+ if(!ab_depend->depended_upon_by)
+ ab_depend->depended_upon_by = (abstract_pkg_t **)calloc(1, sizeof(abstract_pkg_t *));
+
diff --git a/packages/ipkg/ipkg-0.99.140/terse.patch b/packages/ipkg/ipkg-0.99.140/terse.patch
index e69de29bb2..3c4d6bed7e 100644
--- a/packages/ipkg/ipkg-0.99.140/terse.patch
+++ b/packages/ipkg/ipkg-0.99.140/terse.patch
@@ -0,0 +1,18 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- C/ipkg_cmd.c~terse
++++ C/ipkg_cmd.c
+@@ -148,9 +146,7 @@
+ int result;
+ p_userdata = userdata;
+ result = (cmd->fun)(conf, argc, argv);
+- if ( result == 0 ) {
+- ipkg_message(conf, IPKG_NOTICE, "Successfully terminated.\n");
+- } else {
++ if ( result != 0 ) {
+ ipkg_message(conf, IPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
+ }
+