SOURCES (megabajt): poldek-build-fix.patch (NEW) - build fixes
megabajt
megabajt at pld-linux.org
Fri Jan 4 10:53:33 CET 2008
Author: megabajt Date: Fri Jan 4 09:53:33 2008 GMT
Module: SOURCES Tag: megabajt
---- Log message:
- build fixes
---- Files affected:
SOURCES:
poldek-build-fix.patch (NONE -> 1.1.2.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/poldek-build-fix.patch
diff -u /dev/null SOURCES/poldek-build-fix.patch:1.1.2.1
--- /dev/null Fri Jan 4 10:53:33 2008
+++ SOURCES/poldek-build-fix.patch Fri Jan 4 10:53:28 2008
@@ -0,0 +1,79 @@
+diff -urN poldek-0.21-cvs20080103.17/libpoldek.sym poldek-0.21-cvs20080103.17.new/libpoldek.sym
+--- poldek-0.21-cvs20080103.17/libpoldek.sym 2007-07-11 00:55:43.000000000 +0200
++++ poldek-0.21-cvs20080103.17.new/libpoldek.sym 2008-01-04 09:50:39.000000000 +0100
+@@ -120,6 +120,7 @@
+ pkgdb_tx_begin
+ pkgdb_tx_commit
+ pkgdir_add_package
++pkgdir_add_packages
+ pkgdir_diff
+ pkgdir_free
+ pkgdir_isremote
+diff -urN poldek-0.21-cvs20080103.17/pkgdir/hdrl/hdrl.c poldek-0.21-cvs20080103.17.new/pkgdir/hdrl/hdrl.c
+--- poldek-0.21-cvs20080103.17/pkgdir/hdrl/hdrl.c 2007-10-30 22:57:33.000000000 +0100
++++ poldek-0.21-cvs20080103.17.new/pkgdir/hdrl/hdrl.c 2008-01-04 10:07:26.000000000 +0100
+@@ -97,7 +97,7 @@
+ return -1;
+ }
+
+-#ifdef HEADER_MAGIC_YES
++#ifdef HAVE_HEADER_MAGIC_YES
+ while ((h = headerRead(fdt, HEADER_MAGIC_YES))) {
+ #else
+ while ((h = headerRead(fdt))) {
+diff -urN poldek-0.21-cvs20080103.17/pkgdir/source_mkidx.c poldek-0.21-cvs20080103.17.new/pkgdir/source_mkidx.c
+--- poldek-0.21-cvs20080103.17/pkgdir/source_mkidx.c 2007-07-11 00:50:21.000000000 +0200
++++ poldek-0.21-cvs20080103.17.new/pkgdir/source_mkidx.c 2008-01-04 09:49:53.000000000 +0100
+@@ -276,7 +276,7 @@
+ struct source *src;
+ struct pkgdir *pkgdir;
+ char path[PATH_MAX], sstr[256];
+- int rc = 1, n = 0;
++ int rc = 1, n = 0, i;
+
+ n_assert(type);
+ n_assert(idxpath);
+@@ -285,7 +285,7 @@
+ n_assert(idxpath);
+
+ n = 0;
+- for (int i=0; i < n_array_size(sources); i++) {
++ for (i=0; i < n_array_size(sources); i++) {
+ struct source *s = n_array_nth(sources, i);
+ n += n_snprintf(&sstr[n], sizeof(sstr) - n, " - %s (type=%s)\n",
+ source_idstr(s), s->type);
+@@ -333,14 +333,14 @@
+ tn_array *ssources;
+ const char *stype = NULL;
+ int typcaps;
+- int rc = 0;
++ int rc = 0, i;
+
+ DBGF("%s(src=%s) => %s\n", stype, src->type ? src->type : "null", dtype);
+
+ n_assert(idxpath);
+
+
+- for (int i=0; i<n_array_size(sources); i++) {
++ for (i=0; i<n_array_size(sources); i++) {
+ struct source *src = n_array_nth(sources, i);
+
+ if (stype == NULL)
+@@ -355,7 +355,7 @@
+
+
+ if (dtype == NULL) {
+- for (int i=0; i<n_array_size(sources); i++) {
++ for (i=0; i<n_array_size(sources); i++) {
+ struct source *src = n_array_nth(sources, i);
+
+ /* if not from config */
+@@ -377,7 +377,7 @@
+ }
+
+ ssources = n_array_clone(sources);
+- for (int i=0; i<n_array_size(sources); i++) {
++ for (i=0; i<n_array_size(sources); i++) {
+ struct source *ssrc, *src = n_array_nth(sources, i);
+ ssrc = source_clone(src);
+ n_array_push(ssources, ssrc);
================================================================
More information about the pld-cvs-commit
mailing list