up to 3.0.3
authorGrzegorz Pycia <gzohop@pld-linux.org>
Mon, 28 Jan 2019 19:42:06 +0000 (20:42 +0100)
committerGrzegorz Pycia <gzohop@pld-linux.org>
Mon, 28 Jan 2019 19:42:06 +0000 (20:42 +0100)
lxc.spec
x32.patch

index 3937e99cf5e013bffeefd84ddb0ed532384e03ca..5da84c94c55fe888c6c1ce29ffdb7c56aca965f2 100644 (file)
--- a/lxc.spec
+++ b/lxc.spec
 Summary:       Linux Containers userspace tools
 Summary(pl.UTF-8):     Narzędzia do kontenerów linuksowych (LXC)
 Name:          lxc
-Version:       3.0.2
+Version:       3.0.3
 Release:       1
 License:       LGPL v2.1+
 Group:         Applications/System
 Source0:       https://linuxcontainers.org/downloads/lxc/%{name}-%{version}.tar.gz
-# Source0-md5: 72e2f1e718c7ddf3ffa9b18ec0328d8f
+# Source0-md5: 0aa1a982f7dfa4c7b8ce87b7047b0b6e
 Source1:       %{name}-pld.in.sh
 # lxc-net based on bridge, macvlan is an alternative/supported lxc network
 Source2:       %{name}_macvlan.sysconfig
@@ -334,6 +334,7 @@ fi
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/liblxc.so
+%attr(755,root,root) %{_libdir}/liblxc.a
 %{_includedir}/lxc
 %{_pkgconfigdir}/lxc.pc
 
index ae7db2066aed9af2372aa4793771a4d92b27168c..3574d94313f0a9254ded69dac60a5854944843b9 100644 (file)
--- a/x32.patch
+++ b/x32.patch
@@ -1,15 +1,15 @@
-diff -urN lxc-2.1.1-orig/src/lxc/log.c lxc-2.1.1/src/lxc/log.c
---- lxc-2.1.1-orig/src/lxc/log.c       2017-10-19 19:08:34.000000000 +0200
-+++ lxc-2.1.1/src/lxc/log.c    2018-03-24 13:42:08.659166630 +0100
-@@ -222,7 +222,11 @@
+diff -urN lxc-3.0.3.orig/src/lxc/log.c lxc-3.0.3/src/lxc/log.c
+--- lxc-3.0.3.orig/src/lxc/log.c       2018-11-23 00:08:27.000000000 +0100
++++ lxc-3.0.3/src/lxc/log.c    2019-01-28 19:52:33.204408097 +0100
+@@ -271,7 +271,11 @@
        seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
  
        /* Make string from nanoseconds. */
-+      #ifdef __ILP32__
-+      ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", (int64_t)time->tv_nsec);
-+      #else
-       ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%"PRId64, (int64_t)time->tv_nsec);
++        #ifdef __ILP32__
++        ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", (int64_t)time->tv_nsec);
++        #else
+       ret = snprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
 +      #endif
-       if (ret < 0 || ret >= LXC_NUMSTRLEN64)
+       if (ret < 0 || ret >= sizeof(nanosec))
                return -1;
  
This page took 0.102961 seconds and 4 git commands to generate.