RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Pinto Elia Root: /v/rpm/cvs Email: devzero2...@rpm5.org Module: rpm Date: 25-Mar-2011 17:24:57 Branch: rpm-5_3 Handle: 2011032516245601 Modified files: (Branch: rpm-5_3) rpm CHANGES configure.ac rpm/lib rpmluaext.c Log: permit in configure phase to enable the --enable-rpm-lua-extensions-based-on-rpmlib used by OpenPKG today and, for rpm.vercmp, by rpm.org (ref https://blueprints.launchpad.net/rpm/+spec/rpm-split-vendor-config-in-autofu) Submitted by: Elia Pinto Summary: Revision Changes Path 1.3296.2.178+3 -0 rpm/CHANGES 2.432.2.50 +12 -0 rpm/configure.ac 2.8.4.1 +1 -1 rpm/lib/rpmluaext.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/CHANGES ============================================================================ $ cvs diff -u -r1.3296.2.177 -r1.3296.2.178 CHANGES --- rpm/CHANGES 23 Mar 2011 20:51:31 -0000 1.3296.2.177 +++ rpm/CHANGES 25 Mar 2011 16:24:56 -0000 1.3296.2.178 @@ -1,4 +1,7 @@ 5.3.9 -> 5.3.10 + - devzero2000: permit in configure phase to enable the + --enable-rpm-lua-extensions-based-on-rpmlib used by OpenPKG today + and, for rpm.vercmp, by rpm.org (ref https://blueprints.launchpad.net/rpm/+spec/rpm-split-vendor-config-in-autofu) - proyvind: always run %clean so it won't be required in .spec file. - jbj: checksig: check explictly for per-item failures after iterating. - jbj: install: check explictly for per-item failures after iterating. @@ . patch -p0 <<'@@ .' Index: rpm/configure.ac ============================================================================ $ cvs diff -u -r2.432.2.49 -r2.432.2.50 configure.ac --- rpm/configure.ac 24 Mar 2011 22:44:31 -0000 2.432.2.49 +++ rpm/configure.ac 25 Mar 2011 16:24:56 -0000 2.432.2.50 @@ -364,6 +364,18 @@ ]) +dnl # Adds RPM Lua extensions based on rpmlib functionality +AC_ARG_ENABLE( + [rpm-lua-extensions-based-on-rpmlib], + AS_HELP_STRING([--enable-rpm-lua-extensions-based-on-rpmlib],[Adds RPM Lua extensions based on rpmlib functionality (default:no)]), + [ do_rpm_lua_extensions_based_on_rpmlib=$enableval ], + [ do_rpm_lua_extensions_based_on_rpmlib=no ]) + +AS_IF([test "x$do_rpm_lua_extensions_based_on_rpmlib" != xno], + [ + AC_DEFINE([RPM_LUA_EXTENSIONS_BASED_ON_RPMLIB],[1],[Adds RPM Lua extensions based on rpmlib functionality]) + ]) + dnl # FIXME: partly Linux-specific only!? dnl # (but at least it usually doesn't harm on other platforms) CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT" @@ . patch -p0 <<'@@ .' Index: rpm/lib/rpmluaext.c ============================================================================ $ cvs diff -u -r2.8 -r2.8.4.1 rpmluaext.c --- rpm/lib/rpmluaext.c 26 Mar 2009 18:07:31 -0000 2.8 +++ rpm/lib/rpmluaext.c 25 Mar 2011 16:24:57 -0000 2.8.4.1 @@ -2,7 +2,7 @@ * \file lib/rpmluaext.c */ -#if defined(RPM_VENDOR_OPENPKG) /* rpm-lua-extensions-based-on-rpm-lib-functionality */ +#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_LUA_EXTENSIONS_BASED_ON_RPMLIB) /* rpm-lua-extensions-based-on-rpm-lib-functionality */ #include "system.h" @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org