Hello community,

here is the log from the commit of package lua-luv for openSUSE:Factory checked 
in at 2020-04-13 12:53:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-luv (Old)
 and      /work/SRC/openSUSE:Factory/.lua-luv.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-luv"

Mon Apr 13 12:53:40 2020 rev:6 rq:793422 version:1.30.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-luv/lua-luv.changes  2020-04-08 
19:57:04.989140904 +0200
+++ /work/SRC/openSUSE:Factory/.lua-luv.new.3248/lua-luv.changes        
2020-04-13 12:53:43.712659668 +0200
@@ -1,0 +2,11 @@
+Sun Apr 12 12:30:52 UTC 2020 - Matej Cepl <[email protected]>
+
+- We don't need to define macros, when lua-macros is finally
+  fixed.
+
+-------------------------------------------------------------------
+Sat Apr 11 07:01:18 UTC 2020 - Matej Cepl <[email protected]>
+
+- Better version of the patch, based upon the upstream advice.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ lua-luv.spec ++++++
--- /var/tmp/diff_new_pack.8L6wkq/_old  2020-04-13 12:53:45.108660276 +0200
+++ /var/tmp/diff_new_pack.8L6wkq/_new  2020-04-13 12:53:45.108660276 +0200
@@ -33,10 +33,6 @@
 %endif
 %if 0%{?fedora} || 0%{?rhel}
 %define flavor lua
-%define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
-%define lua_archdir %{_libdir}/lua/%{lua_version}
-%define lua_noarchdir %{_datadir}/lua/%{lua_version}
-%define lua_incdir %{_includedir}/lua%{lua_version}
 %endif
 %bcond_with public_lib
 %define lua_value  %(echo "%{flavor}" |sed -e 's:lua::')
@@ -119,10 +115,7 @@
 %prep
 echo "Name is %{name}, Flavor is %{flavor}"
 %setup -q -n %{mod_name}-%{upver}
-# gh#luvit/luv#473
-%if 0%{?sle_version}
-%patch0 -p1
-%endif
+%autopatch -p1
 
 # Remove bundled dependencies
 rm -rf deps
@@ -156,11 +149,13 @@
 find build -name \*.so\*
 
 %install
-install -v -D -m 0755 -p -t %{buildroot}%{lua_archdir} build/luv.so
+install -v -D -m 0755 -p build/luv.so %{buildroot}%{lua_archdir}/luv.so
 %if %{with public_lib}
-install -v -m 0755 -p -t %{buildroot}%{lua_archdir} build/libluv*
+mkdir -p %{buildroot}%{lua_archdir}/
+install -v -m 0755 -p build/libluv* %{buildroot}%{lua_archdir}/
 %endif
-install -v -D -m 0644 -p -t %{buildroot}%{lua_incdir}/%{mod_name} src/*.h
+mkdir -p %{buildroot}%{lua_incdir}/%{mod_name}
+install -v -m 0644 -p src/*.h %{buildroot}%{lua_incdir}/%{mod_name}/
 
 # For %%doc
 cp -rv lib/ examples/

++++++ skip-failing-test.patch ++++++
--- /var/tmp/diff_new_pack.8L6wkq/_old  2020-04-13 12:53:45.148660294 +0200
+++ /var/tmp/diff_new_pack.8L6wkq/_new  2020-04-13 12:53:45.148660294 +0200
@@ -1,31 +1,14 @@
 --- a/tests/test-thread.lua
 +++ b/tests/test-thread.lua
-@@ -58,28 +58,4 @@ return require('lib/tap')(function (test
-     assert(elapsed >= delay, "elapsed should be at least delay ")
+@@ -59,6 +59,11 @@ return require('lib/tap')(function (test
    end)
  
--  test("test thread create with options table", function(print, p, expect, uv)
--    local delay = 100
--    uv.update_time()
--    local before = uv.now()
--    local args = {delay, 'string', nil, false, 5, "helloworld"}
--    local unpack = unpack or table.unpack
--    uv.new_thread({stack_size=0}, function(delay,s,null,bool,five,hw)
--      assert(type(delay) == "number")
--      assert(type(s) == "string")
--      assert(null == nil)
--      assert(bool == false)
--      assert(five == 5)
--      assert(hw == 'helloworld')
--      require('luv').sleep(delay)
--    end, unpack(args)):join()
--    uv.update_time()
--    local elapsed = uv.now() - before
--    p({
--      delay = delay,
--      elapsed = elapsed
--    })
--    assert(elapsed >= 100, "elapsed should be at least delay ")
--  end)
--
- end)
+   test("test thread create with options table", function(print, p, expect, uv)
++    local version = 0x10000 + 26*0x100 + 0
++    if uv.version() < version then
++      print("skipped, requires libuv >= 1.26.0")
++      return
++    end
+     local delay = 100
+     uv.update_time()
+     local before = uv.now()


Reply via email to