Hello community,

here is the log from the commit of package lua for openSUSE:Factory checked in 
at 2013-02-07 10:39:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua (Old)
 and      /work/SRC/openSUSE:Factory/.lua.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua/lua.changes  2012-09-01 10:32:31.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.lua.new/lua.changes     2013-02-07 
10:39:14.000000000 +0100
@@ -1,0 +2,18 @@
+Tue Feb  5 14:18:18 UTC 2013 - [email protected]
+
+- update alternatives need to be %ghosts
+
+-------------------------------------------------------------------
+Thu Nov 15 15:11:34 UTC 2012 - [email protected]
+
+- export luaU_dump in order to fix linking of luac binary 
+
+-------------------------------------------------------------------
+Tue Oct  9 14:55:31 UTC 2012 - [email protected]
+
+- Tweak lua-suse.diff again:
+* LUA_IFUNC must be defined as upstream but without "extern", 
+  revert the previous mod.
+* LUA_API must be defined as visibility default 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lua.spec ++++++
--- /var/tmp/diff_new_pack.j0tMQ2/_old  2013-02-07 10:39:16.000000000 +0100
+++ /var/tmp/diff_new_pack.j0tMQ2/_new  2013-02-07 10:39:16.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lua
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -111,7 +111,7 @@
 %build
 sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h
 grep LUA_CDIR src/luaconf.h 
-make %{?_smp_mflags} -C src CC="gcc" MYCFLAGS="%{optflags} -fPIC 
-DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" 
V=%{major_version} all
+make %{?_smp_mflags} -C src CC="gcc" MYCFLAGS="%{optflags} -std=gnu99 
-D_GNU_SOURCE -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory 
-lncurses" V=%{major_version} all
 
 %install
 make install INSTALL_TOP="%{buildroot}%{_prefix}" 
INSTALL_LIB="%{buildroot}%{_libdir}" 
INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} 
INSTALL_MAN="%{buildroot}%{_mandir}/man1"
@@ -155,9 +155,13 @@
 %files
 %defattr(-,root,root)
 %doc README
+%ghost %{_mandir}/man1/lua.1.gz
 %{_mandir}/man1/lua%{major_version}.1*
+%ghost %{_mandir}/man1/luac.1.gz
 %{_mandir}/man1/luac%{major_version}.1*
+%ghost %{_bindir}/lua
 %{_bindir}/lua%{major_version}
+%ghost %{_bindir}/luac
 %{_bindir}/luac%{major_version}
 %dir %{_libdir}/lua
 %dir %{_libdir}/lua/%{major_version}

++++++ lua-suse.diff ++++++
--- /var/tmp/diff_new_pack.j0tMQ2/_old  2013-02-07 10:39:16.000000000 +0100
+++ /var/tmp/diff_new_pack.j0tMQ2/_new  2013-02-07 10:39:16.000000000 +0100
@@ -40,13 +40,13 @@
  ALL_A= $(LUA_A)
  
  # Targets start here.
-@@ -55,15 +56,20 @@ o: $(ALL_O)
+@@ -55,21 +56,26 @@ o: $(ALL_O)
  
  a:    $(ALL_A)
  
 +# shared libraries (for Linux)
 +$(LUA_SO): $(CORE_O) $(LIB_O)
-+      $(CC) -o $(LUA_SO).$V -shared -Wl,-soname,$(LUA_SO).$V $(CORE_O) 
$(LIB_O) -lm -ldl
++      $(CC) $(MYCFLAGS) -o $(LUA_SO).$V -shared -Wl,-soname,$(LUA_SO).$V 
$(CORE_O) $(LIB_O) -lm -ldl
 +      ln -fs $(LUA_SO).$(V) $(LUA_SO)
 +
  $(LUA_A): $(BASE_O)
@@ -55,14 +55,21 @@
  
  $(LUA_T): $(LUA_O) $(LUA_A)
 -      $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
-+      $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
++      $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUA_O) -L. -llua $(LIBS)
  
  $(LUAC_T): $(LUAC_O) $(LUA_A)
 -      $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
-+      $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS)
++      $(CC) $(MYCFLAGS) -o $@ $(MYLDFLAGS) $(LUAC_O) -L. -llua $(LIBS)
  
  clean:
        $(RM) $(ALL_T) $(ALL_O)
+ 
+ depend:
+-      @$(CC) $(CFLAGS) -MM l*.c
++      @$(CC) $(MYCFLAGS) -MM l*.c
+ 
+ echo:
+       @echo "PLAT= $(PLAT)"
 Index: lua-5.2.1/src/luaconf.h
 ===================================================================
 --- lua-5.2.1.orig/src/luaconf.h
@@ -76,12 +83,37 @@
  #define LUA_LDIR      LUA_ROOT "share/lua/" LUA_VDIR
  #define LUA_CDIR      LUA_ROOT "lib/lua/" LUA_VDIR
  #define LUA_PATH_DEFAULT  \
-@@ -176,7 +176,7 @@
+@@ -150,7 +150,7 @@
+ 
+ #else                         /* }{ */
+ 
+-#define LUA_API               extern
++#define LUA_API               __attribute__ ((visibility ("default")))
+ 
+ #endif                                /* } */
+ 
+@@ -176,9 +176,9 @@
  */
  #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
      defined(__ELF__)          /* { */
 -#define LUAI_FUNC     __attribute__((visibility("hidden"))) extern
-+#define LUAI_FUNC     extern
++#define LUAI_FUNC     __attribute__ ((visibility ("hidden")))
  #define LUAI_DDEC     LUAI_FUNC
- #define LUAI_DDEF     /* empty */
+-#define LUAI_DDEF     /* empty */
++#define LUAI_DDEF     LUAI_FUNC /* empty */
+ 
+ #else                         /* }{ */
+ #define LUAI_FUNC     extern
+Index: lua-5.2.1/src/lundump.h
+===================================================================
+--- lua-5.2.1.orig/src/lundump.h
++++ lua-5.2.1/src/lundump.h
+@@ -17,7 +17,7 @@ LUAI_FUNC Closure* luaU_undump (lua_Stat
+ LUAI_FUNC void luaU_header (lu_byte* h);
+ 
+ /* dump one chunk; from ldump.c */
+-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* 
data, int strip);
++__attribute__ ((visibility ("default"))) int luaU_dump (lua_State* L, const 
Proto* f, lua_Writer w, void* data, int strip);
  
+ /* data to catch conversion errors */
+ #define LUAC_TAIL             "\x19\x93\r\n\x1a\n"

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to