From ff28fbf034c40bd11f4a67d18ba3e3aa177f65eb Mon Sep 17 00:00:00 2001 From: cvs2git Date: Thu, 14 Feb 2008 14:28:29 +0000 Subject: [PATCH] This commit was manufactured by cvs2git to create tag 'auto-ac-poldek- 0_21-0_20070703_00_12'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sprout from DEVEL 2008-01-17 23:11:22 UTC cvs2git 'This commit was manufactured by cvs2git to create branch 'DEVEL'.' Cherrypick from unlabeled-1.1.2 2008-02-14 14:23:19 UTC Elan Ruusamäe '- disable dirdeps in ac': poldek-dirdeps.patch -> 1.1.2.3 Cherrypick from unlabeled-1.277.2.3.2.18.2 2008-02-14 14:28:29 UTC Elan Ruusamäe '- rel 12 (poldek.conf patches no longer lost)': poldek.spec -> 1.277.2.3.2.18.2.3 Delete: poldek-cap_match_req-fix.patch poldek-deprecated.patch poldek-desc_in_utf8.patch poldek-etc_dir.patch poldek-fix-multilib.patch poldek-gcc34.patch poldek-gcc4.patch poldek-ignorecaps.patch poldek-retr_term.patch poldek-su-sigsev.patch poldek-types.patch poldek-uninstall-depfix.patch --- poldek-cap_match_req-fix.patch | 17 ---- poldek-deprecated.patch | 86 ---------------- poldek-desc_in_utf8.patch | 70 ------------- poldek-dirdeps.patch | 95 ++---------------- poldek-etc_dir.patch | 127 ------------------------ poldek-fix-multilib.patch | 49 ---------- poldek-gcc34.patch | 12 --- poldek-gcc4.patch | 33 ------- poldek-ignorecaps.patch | 12 --- poldek-retr_term.patch | 50 ---------- poldek-su-sigsev.patch | 109 --------------------- poldek-types.patch | 101 ------------------- poldek-uninstall-depfix.patch | 174 --------------------------------- poldek.spec | 17 +--- 14 files changed, 12 insertions(+), 940 deletions(-) delete mode 100644 poldek-cap_match_req-fix.patch delete mode 100644 poldek-deprecated.patch delete mode 100644 poldek-desc_in_utf8.patch delete mode 100644 poldek-etc_dir.patch delete mode 100644 poldek-fix-multilib.patch delete mode 100644 poldek-gcc34.patch delete mode 100644 poldek-gcc4.patch delete mode 100644 poldek-ignorecaps.patch delete mode 100644 poldek-retr_term.patch delete mode 100644 poldek-su-sigsev.patch delete mode 100644 poldek-types.patch delete mode 100644 poldek-uninstall-depfix.patch diff --git a/poldek-cap_match_req-fix.patch b/poldek-cap_match_req-fix.patch deleted file mode 100644 index d8358c0..0000000 --- a/poldek-cap_match_req-fix.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: pkg.c -=================================================================== -RCS file: /cvsroot/installer/poldek/pkg.c,v -retrieving revision 1.51.4.2 -diff -u -r1.51.4.2 pkg.c ---- pkg.c 30 Dec 2003 18:19:52 -0000 1.51.4.2 -+++ pkg.c 19 Feb 2004 00:18:18 -0000 -@@ -717,6 +717,9 @@ - if ((strcmp(capreq_name(cap), capreq_name(req))) != 0) - return 0; - -+ if (!capreq_versioned(req)) -+ return 1; -+ - if (capreq_has_epoch(cap)) { - if (!capreq_has_epoch(req) && poldek_conf_promote_epoch) { - if (verbose > 1) diff --git a/poldek-deprecated.patch b/poldek-deprecated.patch deleted file mode 100644 index 24fea11..0000000 --- a/poldek-deprecated.patch +++ /dev/null @@ -1,86 +0,0 @@ ---- poldek-0.20.1-cvs20060823.21/pm/rpm/misc.c~ 2006-07-10 13:17:36.000000000 +0200 -+++ poldek-0.20.1-cvs20060823.21/pm/rpm/misc.c 2006-10-30 16:19:12.548718000 +0100 -@@ -171,24 +171,25 @@ - - int pm_rpm_machine_score(void *pm_rpm, int tag, const char *val) - { -- int rpmtag = 0; -- - pm_rpm = pm_rpm; - switch (tag) { - case PMMSTAG_ARCH: -- rpmtag = RPM_MACHTABLE_INSTARCH; -+ return 1; -+ // no longer supported, decided it was -+ // not reliable enough - break; - - case PMMSTAG_OS: -- rpmtag = RPM_MACHTABLE_INSTOS; -+ return 1; -+ // no longer supported, always returned 1 -+ // as linux is the only ARCH supported - break; - - default: - n_assert(0); - break; - } -- -- return rpmMachineScore(rpmtag, val); -+ return 0; - } - - -@@ -197,6 +196,6 @@ - if (arch == NULL) - return 0; - -- return rpmMachineScore(RPM_MACHTABLE_INSTARCH, arch); -+ return 1; - } - ---- poldek-0.20.1-cvs20060823.21/configure.in~ 2006-08-21 13:20:12.000000000 +0200 -+++ poldek-0.20.1-cvs20060823.21/configure.in 2006-10-30 16:17:00.008718000 +0100 -@@ -273,7 +273,7 @@ - [$DBLIB -lrpmdb]), - [$DBLIB]) - --AC_CHECK_FUNCS(rpmMachineScore,,[ AC_MSG_ERROR(["rpmlib not found"])]) -+#AC_CHECK_FUNCS(rpmMachineScore,,[ AC_MSG_ERROR(["rpmlib not found"])]) - AC_CHECK_FUNCS(rpmlog rpmCheckSig rpmVerifySignature) - - dnl rpm 4.2? ---- poldek-0.20.1-cvs20060823.21/pm/rpm/rpm.c~ 2006-08-22 16:53:28.000000000 +0200 -+++ poldek-0.20.1-cvs20060823.21/pm/rpm/rpm.c 2006-11-02 21:10:17.138247000 +0100 -@@ -402,7 +402,7 @@ - #endif /* HAVE_RPMLOG */ - - --extern int rpmvercmp(const char *one, const char *two); -+extern int (*rpmvercmp)(const char *one, const char *two); - int pm_rpm_vercmp(const char *one, const char *two) - { - return rpmvercmp(one, two); ---- poldek-0.20.1-cvs20060823.21/pm/rpm/rpmvercmp.c~ 2004-08-09 01:03:54.000000000 +0200 -+++ poldek-0.20.1-cvs20060823.21/pm/rpm/rpmvercmp.c 2006-11-02 21:15:35.218247000 +0100 -@@ -5,7 +5,7 @@ - - #include "i18n.h" - --extern int rpmvercmp(const char * one, const char * two); -+extern int (*rpmvercmp)(const char * one, const char * two); - - - int main(int argc, char *argv[]) ---- poldek-0.20.1-cvs20060823.21/pm/rpm/misc.c~ 2006-11-02 21:17:09.000000000 +0100 -+++ poldek-0.20.1-cvs20060823.21/pm/rpm/misc.c 2006-11-02 21:39:35.168247000 +0100 -@@ -166,7 +166,7 @@ - const char *pm_rpm_get_arch(void *pm_rpm) - { - pm_rpm = pm_rpm; -- return rpmGetVar(RPM_MACHTABLE_INSTARCH); -+ return rpmExpand("%{_target_cpu}", NULL); - } - - int pm_rpm_machine_score(void *pm_rpm, int tag, const char *val) diff --git a/poldek-desc_in_utf8.patch b/poldek-desc_in_utf8.patch deleted file mode 100644 index 6390132..0000000 --- a/poldek-desc_in_utf8.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- poldek-0.20.1-cvs20070108.22/pkgdir/pndir/description.c.stare 2007-05-29 22:39:55.000000000 +0200 -+++ poldek-0.20.1-cvs20070108.22/pkgdir/pndir/description.c 2007-05-30 15:11:58.000000000 +0200 -@@ -166,6 +166,7 @@ - for (i = n_array_size(langs) - 1; i >= 0; i--) { - struct tndb *db; - const char *lang; -+ char lang_utf8[24]; - char dkey[512]; - int dklen; - -@@ -176,6 +177,19 @@ - if ((db = pndir_db_dscr_h_get(db_dscr_h, lang)) == NULL) - continue; - -+ snprintf(lang_utf8, sizeof(lang_utf8), "%s.UTF-8", lang); -+ -+ dklen = n_snprintf(dkey, sizeof(dkey), "%s%s", key, lang_utf8); -+ vlen = tndb_get(db, dkey, dklen, val, sizeof(val)); -+ DBGF("ld %s: %s (%d)\n", pkg_snprintf_s(pkg), lang_utf8, vlen); -+ if (vlen > 0) { -+ tn_buf_it it; -+ n_buf_clean(nbuf); -+ n_buf_init(nbuf, val, vlen); -+ n_buf_it_init(&it, nbuf); -+ pkguinf_restore_i18n(pkgu, &it, lang_utf8); -+ } -+ - dklen = n_snprintf(dkey, sizeof(dkey), "%s%s", key, lang); - vlen = tndb_get(db, dkey, dklen, val, sizeof(val)); - DBGF("ld %s: %s (%d)\n", pkg_snprintf_s(pkg), lang, vlen); ---- poldek-0.20.1-cvs20070108.22/pkgu.c.stare 2007-05-29 21:40:39.000000000 +0200 -+++ poldek-0.20.1-cvs20070108.22/pkgu.c 2007-05-30 16:37:16.000000000 +0200 -@@ -15,6 +15,8 @@ - */ - - #include -+#include -+#include - #include - #include - #include -@@ -576,7 +576,27 @@ - return 0; - description = n_buf_it_getz(it, &dlen); - -- inf = pkguinf_i18n_new(pkgu->_na, summary, description); -+ if (strstr(lang, "UTF-8")) { -+ iconv_t cd; -+ size_t u_slen = slen, u_dlen = dlen; -+ char *new_s, *new_d; -+ char *summary_utf8 = n_malloc(u_slen + 1); -+ char *description_utf8 = n_malloc(u_dlen + 1); -+ -+ new_s = summary_utf8; -+ new_d = description_utf8; -+ cd = iconv_open(nl_langinfo(CODESET), "UTF-8"); -+ iconv(cd, &summary, &slen, &new_s, &u_slen); -+ iconv(cd, &description, &dlen, &new_d, &u_dlen); -+ iconv_close(cd); -+ *new_s = '\0'; -+ *new_d = '\0'; -+ inf = pkguinf_i18n_new(pkgu->_na, summary_utf8, description_utf8); -+ n_free(summary_utf8); -+ n_free(description_utf8); -+ } else { -+ inf = pkguinf_i18n_new(pkgu->_na, summary, description); -+ } - n_hash_insert(pkgu->_ht, lang, inf); - - pkgu->summary = inf->summary; diff --git a/poldek-dirdeps.patch b/poldek-dirdeps.patch index 7922f80..0131c68 100644 --- a/poldek-dirdeps.patch +++ b/poldek-dirdeps.patch @@ -1,87 +1,12 @@ ---- poldek-0.21-cvs20070703.00/doc/poldek.conf.xml~ 2007-06-30 10:32:47.000000000 +0300 -+++ poldek-0.21-cvs20070703.00/doc/poldek.conf.xml 2008-01-13 16:36:22.437311829 +0200 -@@ -414,8 +414,10 @@ - - -- - -