SHA256
1
0
forked from pool/lua51
lua51/lua51-5.1.4-module-path.diff
Stephan Kulow 72f8b90ff8 Accepting request 99319 from devel:languages:misc
- lua51 branched from lua package

- cross-build fix: use %__cc macro

- use %_smp_mflags

- removed -L/usr/lib from Libs: in etc/lua.pc [bnc#613497]
- used upstream bugfix patch from http://www.lua.org/download.html

- buildrequire pkg-config to fix provides

- modified LUA_PATH_DEFAULT [bnc#589441]: search modules under
  /usr/%{_lib}/lua/%{major_version} too

- add baselibs.conf as a source
- package documentation as noarch

- enable parallel building

- updated patches to apply with fuzz=0

- add baselibs.conf

- package owns /usr/{lib,share}/lua directories from now
- emoved unneeded root.patch

- updated to 5.1.4: bugfix release

- Set LUA_ROOT to /usr and fix INSTALL_CMOD for lib64

OBS-URL: https://build.opensuse.org/request/show/99319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua51?expand=0&rev=2
2012-01-07 14:58:03 +00:00

22 lines
847 B
Diff

diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h
--- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500
+++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500
@@ -83,13 +83,17 @@
#else
#define LUA_ROOT "/usr/local/"
+#define LUA_ROOT2 "/usr/"
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/"
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+#define LUA_CDIR2 LUA_ROOT2 "LIBDIR/lua/5.1/"
#define LUA_PATH_DEFAULT \
"./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
- LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
+ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
+ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua"
#define LUA_CPATH_DEFAULT \
- "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
+ "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so"
#endif