[lua-socket/f16] Build support for Unix domain sockets (rhbz: #720692)

Matthew Garrett mjg59 at fedoraproject.org
Wed Oct 12 13:33:22 UTC 2011


commit 18465290dd8b533f22b2631c2ac2dd163f8ad7a0
Author: Matthew Garrett <mjg at redhat.com>
Date:   Wed Oct 12 09:33:14 2011 -0400

    Build support for Unix domain sockets (rhbz: #720692)

 lua-socket-unix-sockets.patch |   32 ++++++++++++++++++++++++++++++++
 lua-socket.spec               |    8 ++++++--
 2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/lua-socket-unix-sockets.patch b/lua-socket-unix-sockets.patch
new file mode 100644
index 0000000..f2895c3
--- /dev/null
+++ b/lua-socket-unix-sockets.patch
@@ -0,0 +1,32 @@
+diff -ur luasocket-2.0.2.bak//makefile luasocket-2.0.2/makefile
+--- luasocket-2.0.2.bak//makefile	2007-10-15 00:21:05.000000000 -0400
++++ luasocket-2.0.2/makefile	2011-07-12 10:30:37.340052899 -0400
+@@ -10,6 +10,7 @@
+ INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
+ INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
+ INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
++INSTALL_UNIX_LIB=$(INSTALL_SOCKET_LIB)
+ 
+ all clean:
+ 	cd src; $(MAKE) $@
+@@ -45,6 +46,8 @@
+ 	#cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
+ 	cd src; mkdir -p $(INSTALL_MIME_LIB)
+ 	cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
++	cd src; mkdir -p $(INSTALL_UNIX_LIB)
++	cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_UNIX_LIB)/$(UNIX_SO)
+ 
+ #------
+ # End of makefile
+diff -ur luasocket-2.0.2.bak//src/makefile luasocket-2.0.2/src/makefile
+--- luasocket-2.0.2.bak//src/makefile	2007-10-15 00:21:05.000000000 -0400
++++ luasocket-2.0.2/src/makefile	2011-07-12 10:29:49.794050617 -0400
+@@ -47,7 +47,7 @@
+ 	usocket.o \
+ 	unix.o
+ 
+-all: $(SOCKET_SO) $(MIME_SO) 
++all: $(SOCKET_SO) $(MIME_SO) $(UNIX_SO)
+ 
+ $(SOCKET_SO): $(SOCKET_OBJS)
+ 	$(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)
diff --git a/lua-socket.spec b/lua-socket.spec
index 92c9784..9203b1d 100644
--- a/lua-socket.spec
+++ b/lua-socket.spec
@@ -4,13 +4,14 @@
 
 Name:           lua-socket
 Version:        2.0.2
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Network support for the Lua language
 
 Group:          Development/Libraries
 License:        MIT
 URL:            http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
 Source0:        http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz
+Patch0:		lua-socket-unix-sockets.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
@@ -28,7 +29,7 @@ and FTP. In addition there are modules for MIME, URL handling and LTN12.
 
 %prep
 %setup -q -n luasocket-%{version}
-
+%patch0 -p1 -b .unix
 
 %build
 make %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
@@ -54,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct 10 2011 Matthew Garrett <mjg at redhat.com> - 2.0.2-6
+- Build support for Unix domain sockets (rhbz: #720692)
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list