aboutsummaryrefslogtreecommitdiffstats
path: root/ipkg
diff options
context:
space:
mode:
Diffstat (limited to 'ipkg')
-rw-r--r--ipkg/ipkg-0.99.127/depends.patch125
-rw-r--r--ipkg/ipkg-0.99.127/uninclude-replace.patch10
-rw-r--r--ipkg/ipkg-0.99.129/buffer-overflow.patch38
-rw-r--r--ipkg/ipkg-0.99.130/terse.patch27
-rw-r--r--ipkg/ipkg-0.99.130/uninclude-replace.patch10
-rw-r--r--ipkg/ipkg-collateral/collie/dest4
-rw-r--r--ipkg/ipkg-collateral/dest1
-rw-r--r--ipkg/ipkg-collateral/ipkg.conf.comments23
-rw-r--r--ipkg/ipkg-collateral/jornada56x/dest4
-rw-r--r--ipkg/ipkg-collateral/simpad/dest3
10 files changed, 245 insertions, 0 deletions
diff --git a/ipkg/ipkg-0.99.127/depends.patch b/ipkg/ipkg-0.99.127/depends.patch
index e69de29bb2..f31ea8f7bc 100644
--- a/ipkg/ipkg-0.99.127/depends.patch
+++ b/ipkg/ipkg-0.99.127/depends.patch
@@ -0,0 +1,125 @@
+Index: pkg_depends.c
+===================================================================
+RCS file: /cvs/familiar/dist/ipkg/C/pkg_depends.c,v
+retrieving revision 1.60
+diff -u -r1.60 pkg_depends.c
+--- C/pkg_depends.c 10 Mar 2004 21:27:36 -0000 1.60
++++ C/pkg_depends.c 5 Aug 2004 19:54:40 -0000
+@@ -36,7 +36,7 @@
+ static int pkg_installed_and_constraint_satisfied(pkg_t *pkg, void *cdata)
+ {
+ depend_t *depend = (depend_t *)cdata;
+- if (pkg->state_status == SS_INSTALLED && version_constraints_satisfied(depend, pkg))
++ if ((pkg->state_status == SS_INSTALLED || pkg->state_status == SS_UNPACKED) && version_constraints_satisfied(depend, pkg))
+ return 1;
+ else
+ return 0;
+@@ -136,13 +136,26 @@
+ pkg_scout,
+ tmp_vec,
+ &newstuff);
+- if (rc == 0 && newstuff == NULL) {
+- /* mark this one for installation */
+- ipkg_message(conf, IPKG_NOTICE, "Adding satisfier for greedy dependence: %s\n", pkg_scout->name);
+- pkg_vec_insert(unsatisfied, pkg_scout);
++ if (newstuff == NULL) {
++ int i;
++ int ok = 1;
++ for (i = 0; i < rc; i++) {
++ pkg_t *p = tmp_vec->pkgs[i];
++ if (p->state_want == SW_INSTALL)
++ continue;
++ ipkg_message(conf, IPKG_DEBUG, "not installing %s due to requirement for %s\n", pkg_scout->name, p->name);
++ ok = 0;
++ break;
++ }
++ pkg_vec_free (tmp_vec);
++ if (ok) {
++ /* mark this one for installation */
++ ipkg_message(conf, IPKG_NOTICE, "Adding satisfier for greedy dependence: %s\n", pkg_scout->name);
++ pkg_vec_insert(unsatisfied, pkg_scout);
++ }
+ } else {
+- if (newstuff)
+- free (newstuff);
++ ipkg_message(conf, IPKG_DEBUG, "not installing %s due to broken depends %s\n", pkg_scout->name, newstuff);
++ free (newstuff);
+ }
+ }
+ }
+@@ -160,7 +173,7 @@
+ pkg_t *satisfying_pkg =
+ pkg_hash_fetch_best_installation_candidate(conf, satisfying_apkg,
+ pkg_installed_and_constraint_satisfied,
+- dependence_to_satisfy);
++ dependence_to_satisfy, 1);
+ ipkg_message(conf, IPKG_DEBUG, "%s:%d: satisfying_pkg=%p\n", __FILE__, __LINE__, satisfying_pkg);
+ if (satisfying_pkg != NULL) {
+ found = 1;
+@@ -178,7 +191,7 @@
+ pkg_t *satisfying_pkg =
+ pkg_hash_fetch_best_installation_candidate(conf, satisfying_apkg,
+ pkg_constraint_satisfied,
+- dependence_to_satisfy);
++ dependence_to_satisfy, 1);
+
+ /* user request overrides package recommendation */
+ if (satisfying_pkg != NULL
+Index: pkg_hash.c
+===================================================================
+RCS file: /cvs/familiar/dist/ipkg/C/pkg_hash.c,v
+retrieving revision 1.65
+diff -u -r1.65 pkg_hash.c
+--- C/pkg_hash.c 17 Mar 2004 21:17:37 -0000 1.65
++++ C/pkg_hash.c 5 Aug 2004 19:54:41 -0000
+@@ -113,7 +113,7 @@
+
+
+ pkg_t *pkg_hash_fetch_best_installation_candidate(ipkg_conf_t *conf, abstract_pkg_t *apkg,
+- int (*constraint_fcn)(pkg_t *pkg, void *cdata), void *cdata)
++ int (*constraint_fcn)(pkg_t *pkg, void *cdata), void *cdata, int quiet)
+ {
+ int i;
+ int nprovides = 0;
+@@ -218,7 +218,7 @@
+ }
+ }
+
+- if (!held_pkg && !latest_installed_parent && matching_apkgs->len > 1) {
++ if (!held_pkg && !latest_installed_parent && matching_apkgs->len > 1 && !quiet) {
+ ipkg_message(conf, IPKG_ERROR, "Package=%s, %d matching providers\n",
+ apkg->name, matching_apkgs->len);
+ if (conf->verbosity > 1) {
+@@ -240,7 +240,6 @@
+ }
+ }
+
+- done:
+ nmatching = matching_apkgs->len;
+
+ pkg_vec_free(matching_pkgs);
+@@ -284,7 +283,7 @@
+ if (!(apkg = abstract_pkg_fetch_by_name(hash, name)))
+ return NULL;
+
+- return pkg_hash_fetch_best_installation_candidate(conf, apkg, pkg_name_constraint_fcn, apkg->name);
++ return pkg_hash_fetch_best_installation_candidate(conf, apkg, pkg_name_constraint_fcn, apkg->name, 0);
+ }
+
+
+Index: pkg_hash.h
+===================================================================
+RCS file: /cvs/familiar/dist/ipkg/C/pkg_hash.h,v
+retrieving revision 1.19
+diff -u -r1.19 pkg_hash.h
+--- C/pkg_hash.h 10 Apr 2003 21:43:51 -0000 1.19
++++ C/pkg_hash.h 5 Aug 2004 19:54:41 -0000
+@@ -43,7 +43,7 @@
+ const char * version);
+ abstract_pkg_vec_t *pkg_hash_fetch_all_installation_candidates(hash_table_t *hash, const char *name);
+ pkg_t *pkg_hash_fetch_best_installation_candidate(ipkg_conf_t *conf, abstract_pkg_t *apkg,
+- int (*constraint_fcn)(pkg_t *pkg, void *data), void *cdata);
++ int (*constraint_fcn)(pkg_t *pkg, void *data), void *cdata, int quiet);
+ pkg_t *pkg_hash_fetch_best_installation_candidate_by_name(ipkg_conf_t *conf, const char *name);
+ pkg_t *pkg_hash_fetch_installed_by_name(hash_table_t *hash,
+ const char *pkg_name);
diff --git a/ipkg/ipkg-0.99.127/uninclude-replace.patch b/ipkg/ipkg-0.99.127/uninclude-replace.patch
index e69de29bb2..a3ed2201fd 100644
--- a/ipkg/ipkg-0.99.127/uninclude-replace.patch
+++ b/ipkg/ipkg-0.99.127/uninclude-replace.patch
@@ -0,0 +1,10 @@
+--- C/includes.h 2003-03-28 19:36:22.000000000 +0000
++++ C/includes.h 2004-07-28 03:41:11.000000000 +0100
+@@ -48,6 +48,6 @@
+ # include <unistd.h>
+ #endif
+
+-#include "replace/replace.h"
++//#include "replace/replace.h"
+
+ #endif
diff --git a/ipkg/ipkg-0.99.129/buffer-overflow.patch b/ipkg/ipkg-0.99.129/buffer-overflow.patch
index e69de29bb2..91234fd53f 100644
--- a/ipkg/ipkg-0.99.129/buffer-overflow.patch
+++ b/ipkg/ipkg-0.99.129/buffer-overflow.patch
@@ -0,0 +1,38 @@
+Index: ipkg_cmd.c
+===================================================================
+RCS file: /cvs/familiar/dist/ipkg/C/ipkg_cmd.c,v
+retrieving revision 1.96
+diff -u -r1.96 ipkg_cmd.c
+--- C/ipkg_cmd.c 19 Aug 2004 10:55:47 -0000 1.96
++++ C/ipkg_cmd.c 11 Sep 2004 19:43:14 -0000
+@@ -860,6 +860,7 @@
+ str_list_elt_t *iter;
+ char *pkg_version;
+ size_t buff_len = 8192;
++ size_t used_len;
+ char *buff ;
+
+ buff = (char *)malloc(buff_len);
+@@ -891,9 +892,20 @@
+ }
+ #else
+ if (buff) {
+- snprintf(buff, buff_len, "Package %s (%s) is installed on %s and has the following files:\n",
+- pkg->name, pkg_version, pkg->dest->name);
++ try_again:
++ used_len = snprintf(buff, buff_len, "Package %s (%s) is installed on %s and has the following files:\n",
++ pkg->name, pkg_version, pkg->dest->name) + 1;
++ if (used_len > buff_len) {
++ buff_len *= 2;
++ buff = realloc (buff, buff_len);
++ goto try_again;
++ }
+ for (iter = installed_files->head; iter; iter = iter->next) {
++ used_len += strlen (iter->data) + 1;
++ while (buff_len <= used_len) {
++ buff_len *= 2;
++ buff = realloc (buff, buff_len);
++ }
+ strncat(buff, iter->data, buff_len);
+ strncat(buff, "\n", buff_len);
+ }
diff --git a/ipkg/ipkg-0.99.130/terse.patch b/ipkg/ipkg-0.99.130/terse.patch
index e69de29bb2..9a07df5df3 100644
--- a/ipkg/ipkg-0.99.130/terse.patch
+++ b/ipkg/ipkg-0.99.130/terse.patch
@@ -0,0 +1,27 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- C/ipkg_cmd.c~terse
++++ C/ipkg_cmd.c
+@@ -119,8 +119,6 @@
+ " writing status file\n");
+ ipkg_conf_write_status_files(conf);
+ pkg_write_changed_filelists(conf);
+- } else {
+- ipkg_message(conf, IPKG_NOTICE, "Nothing to be done\n");
+ }
+ }
+
+@@ -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);
+ }
+
diff --git a/ipkg/ipkg-0.99.130/uninclude-replace.patch b/ipkg/ipkg-0.99.130/uninclude-replace.patch
index e69de29bb2..a3ed2201fd 100644
--- a/ipkg/ipkg-0.99.130/uninclude-replace.patch
+++ b/ipkg/ipkg-0.99.130/uninclude-replace.patch
@@ -0,0 +1,10 @@
+--- C/includes.h 2003-03-28 19:36:22.000000000 +0000
++++ C/includes.h 2004-07-28 03:41:11.000000000 +0100
+@@ -48,6 +48,6 @@
+ # include <unistd.h>
+ #endif
+
+-#include "replace/replace.h"
++//#include "replace/replace.h"
+
+ #endif
diff --git a/ipkg/ipkg-collateral/collie/dest b/ipkg/ipkg-collateral/collie/dest
index e69de29bb2..9704eed475 100644
--- a/ipkg/ipkg-collateral/collie/dest
+++ b/ipkg/ipkg-collateral/collie/dest
@@ -0,0 +1,4 @@
+dest root /
+dest cf /mnt/cf/
+dest sd /mnt/card/
+dest ram /mnt/ram/
diff --git a/ipkg/ipkg-collateral/dest b/ipkg/ipkg-collateral/dest
index e69de29bb2..088ca403da 100644
--- a/ipkg/ipkg-collateral/dest
+++ b/ipkg/ipkg-collateral/dest
@@ -0,0 +1 @@
+dest root /
diff --git a/ipkg/ipkg-collateral/ipkg.conf.comments b/ipkg/ipkg-collateral/ipkg.conf.comments
index e69de29bb2..51623f4d53 100644
--- a/ipkg/ipkg-collateral/ipkg.conf.comments
+++ b/ipkg/ipkg-collateral/ipkg.conf.comments
@@ -0,0 +1,23 @@
+# Must have one or more source entries of the form:
+#
+# src <src-name> <source-url>
+#
+# and one or more destination entries of the form:
+#
+# dest <dest-name> <target-path>
+#
+# where <src-name> and <dest-names> are identifiers that
+# should match [a-zA-Z0-9._-]+, <source-url> should be a
+# URL that points to a directory containing a Familiar
+# Packages file, and <target-path> should be a directory
+# that exists on the target system.
+
+# Proxy Support
+#option http_proxy http://proxy.tld:3128
+#option ftp_proxy http://proxy.tld:3128
+#option proxy_username <username>
+#option proxy_password <password>
+
+# Offline mode (for use in constructing flash images offline)
+#option offline_root target
+
diff --git a/ipkg/ipkg-collateral/jornada56x/dest b/ipkg/ipkg-collateral/jornada56x/dest
index e69de29bb2..9704eed475 100644
--- a/ipkg/ipkg-collateral/jornada56x/dest
+++ b/ipkg/ipkg-collateral/jornada56x/dest
@@ -0,0 +1,4 @@
+dest root /
+dest cf /mnt/cf/
+dest sd /mnt/card/
+dest ram /mnt/ram/
diff --git a/ipkg/ipkg-collateral/simpad/dest b/ipkg/ipkg-collateral/simpad/dest
index e69de29bb2..63e8b50eea 100644
--- a/ipkg/ipkg-collateral/simpad/dest
+++ b/ipkg/ipkg-collateral/simpad/dest
@@ -0,0 +1,3 @@
+dest root /
+dest cf /mnt/cf/
+dest ram /mnt/ram/