X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpoldek.git;a=blobdiff_plain;f=rpm4-no-dir-deps.patch;h=f05ee0d19ee6aeb061bc25eef77e0f38d598f33c;hp=ae6db7def843c39e54221903bea4d160f59f75cc;hb=90b1f1efb265c06397ce4c1420134ce0b1ac0845;hpb=f08bd07095e500cfbdc587aba46193b3649a3eb6 diff --git a/rpm4-no-dir-deps.patch b/rpm4-no-dir-deps.patch index ae6db7d..f05ee0d 100644 --- a/rpm4-no-dir-deps.patch +++ b/rpm4-no-dir-deps.patch @@ -19,3 +19,32 @@ (void *(*)(void *, void *, const char *, const char *, mode_t, tn_hash *))pm_rpm_opendb, (void (*)(void *))pm_rpm_closedb, +--- poldek-0.42.2/lib_init.c.orig 2020-03-16 21:23:10.000000000 +0100 ++++ poldek-0.42.2/lib_init.c 2021-02-12 19:32:47.579273016 +0100 +@@ -1433,8 +1433,9 @@ + break; + + case POLDEK_OP_AUTODIRDEP: ++#if !defined(HAVE_RPMDSUNAME) || defined(HAVE_RPMORG) + v = 0; +-#ifdef HAVE_RPMDSUNAME /* rpmdsUname - rpm 4.4.6 */ ++#else /* rpmdsUname - rpm 4.4.6 */ + v = 1; + #endif + break; +--- poldek-0.42.2/conf_sections.c~ 2020-01-25 23:10:38.000000000 +0100 ++++ poldek-0.42.2/conf_sections.c 2021-02-13 18:32:16.569364907 +0100 +@@ -214,9 +214,13 @@ + 0, { 0 } }, + + { "auto directory dependencies", ++#if defined(HAVE_RPMORG) ++ CONF_TYPE_BOOLEAN3 | CONF_TYPE_F_OBSL, NULL, 0, { 0 } }, ++#else + CONF_TYPE_BOOLEAN3, + "auto", + POLDEK_OP_AUTODIRDEP, { 0 } }, ++#endif + + { "follow", + CONF_TYPE_BOOLEAN,