[packages/rpm] - build with internal lua and enable extra lua libs, fixes http://lists.pld-linux.org/mailman/pipe
baggins
baggins at pld-linux.org
Wed Oct 3 15:04:59 CEST 2012
commit 70df63f316d7d470b65a8756ce11fc0c2c5f1b35
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Oct 3 15:03:15 2012 +0200
- build with internal lua and enable extra lua libs, fixes
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-September/023154.html
- rel 17
rpm-lua-enable-extra-libs.patch | 20 ++++++++++++++++++++
rpm.spec | 12 ++++++++++--
2 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/rpm.spec b/rpm.spec
index 77b19eb..3e27eab 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -16,7 +16,7 @@
%bcond_without db # BerkeleyDB
%bcond_without sqlite # build with SQLite support
%bcond_with sqlite_dbapi # default database backend is sqlite
-%bcond_without system_lua # use system lua
+%bcond_with system_lua # use system lua
%bcond_with keyutils # build with keyutils support
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
@@ -52,7 +52,7 @@ Summary(ru.UTF-8): Менеджер пакетов от RPM
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 5.4.10
-Release: 16
+Release: 17
License: LGPL
Group: Base
# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
@@ -141,6 +141,7 @@ Patch49: %{name}-python-enable-compat-RPMSENSE.patch
Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
Patch51: %{name}-gst-inspect-typo.patch
Patch52: %{name}-null-term-ascii-digest.patch
+Patch53: %{name}-lua-enable-extra-libs.patch
# Patches imported from Mandriva
@@ -819,6 +820,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
%patch50 -p1
%patch51 -p1
%patch52 -p0
+%patch53 -p1
%patch1000 -p1
%patch1001 -p1
@@ -1281,6 +1283,12 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
+%if %{without system_lua}
+%attr(755,root,root) %{_rpmlibdir}/bin/lua
+%attr(755,root,root) %{_rpmlibdir}/bin/luac
+%attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
+%attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
+%endif
%{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
%{_mandir}/man8/rpm2cpio.8*
diff --git a/rpm-lua-enable-extra-libs.patch b/rpm-lua-enable-extra-libs.patch
new file mode 100644
index 0000000..c238d0a
--- /dev/null
+++ b/rpm-lua-enable-extra-libs.patch
@@ -0,0 +1,20 @@
+--- rpm-5.4.10/lua/linit.c~ 2012-10-03 14:46:45.303935753 +0200
++++ rpm-5.4.10/lua/linit.c 2012-10-03 14:48:19.503932430 +0200
+@@ -13,6 +13,8 @@
+ #include "lualib.h"
+ #include "lauxlib.h"
+
++#include "lposix.h"
++#include "lrexlib.h"
+
+ static const luaL_Reg lualibs[] = {
+ {"", luaopen_base},
+@@ -26,6 +26,8 @@
+ {LUA_STRLIBNAME, luaopen_string},
+ {LUA_MATHLIBNAME, luaopen_math},
+ {LUA_DBLIBNAME, luaopen_debug},
++ {"rex_posix", luaopen_rex_posix},
++ {"rex_pcre", luaopen_rex_pcre},
+ {NULL, NULL}
+ };
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/70df63f316d7d470b65a8756ce11fc0c2c5f1b35
More information about the pld-cvs-commit
mailing list