Hello community,

here is the log from the commit of package libapr1 for openSUSE:Factory checked 
in at 2015-03-12 16:38:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libapr1 (Old)
 and      /work/SRC/openSUSE:Factory/.libapr1.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libapr1"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libapr1/libapr1.changes  2014-11-02 
16:46:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libapr1.new/libapr1.changes     2015-03-12 
16:38:10.000000000 +0100
@@ -1,0 +2,25 @@
+Sun Mar  8 18:17:59 UTC 2015 - crrodrig...@opensuse.org
+
+- No longer use --enable-allocator-uses-mmap but the default 
+  which is using malloc, this feature exists to reduce 
+  fragmentation but this is currently at the expense of:
+  * Loosing all malloc sanity checks.
+  * mmap and munmap are expensive operations when using
+    at lot of threads (like in apache worker,event)
+  * It will waste memory, even more on archs that have big 
+    page sizes.
+- If there are fragmentation or performance problems in glibc
+  malloc, the library has to be fixed instead.
+
+-------------------------------------------------------------------
+Sat Mar  7 18:25:52 UTC 2015 - crrodrig...@opensuse.org
+
+- apr-use-getrandom.patch: Update, if getrandom blocks, fallback
+  to the old codepath, restoring old always non-blocking behaviour
+  in practice it blocks only at boottime when the entropy pool
+  has not been fully initialized, this delays the startup
+  of apache for example.
+  * Use SYS_getrandom constant instead of the "internal"
+  __NR_getrandom
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libapr1.spec ++++++
--- /var/tmp/diff_new_pack.lLb2RG/_old  2015-03-12 16:38:11.000000000 +0100
+++ /var/tmp/diff_new_pack.lLb2RG/_new  2015-03-12 16:38:11.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libapr1
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -104,7 +104,6 @@
 %ifarch %ix86
        --enable-nonportable-atomics=yes \
 %endif
-       --enable-allocator-uses-mmap \
        --with-devrandom=/dev/urandom \
        --disable-static \
        --enable-posix-shm \

++++++ apr-use-getrandom.patch ++++++
--- /var/tmp/diff_new_pack.lLb2RG/_old  2015-03-12 16:38:11.000000000 +0100
+++ /var/tmp/diff_new_pack.lLb2RG/_new  2015-03-12 16:38:11.000000000 +0100
@@ -1,7 +1,5 @@
-diff --git a/misc/unix/rand.c b/misc/unix/rand.c
-index c1e1e8f..e443d7e 100644
---- a/misc/unix/rand.c
-+++ b/misc/unix/rand.c
+--- apr-1.5.1.orig/misc/unix/rand.c
++++ apr-1.5.1/misc/unix/rand.c
 @@ -43,6 +43,9 @@
  #include <sys/uuid.h>
  #endif
@@ -12,12 +10,12 @@
  #ifndef SHUT_RDWR
  #define SHUT_RDWR 2
  #endif
-@@ -89,6 +92,12 @@ APR_DECLARE(apr_status_t) 
apr_generate_random_bytes(unsigned char *buf,
+@@ -89,6 +92,12 @@ APR_DECLARE(apr_status_t) apr_generate_r
  {
  #ifdef DEV_RANDOM
  
-+#ifdef __NR_getrandom
-+    int r = TEMP_FAILURE_RETRY(syscall(__NR_getrandom, buf, length, 0));
++#ifdef SYS_getrandom
++    int r = TEMP_FAILURE_RETRY(syscall(SYS_getrandom, buf, length, 
GRND_NONBLOCK));
 +    if(r != -1 && r == length)
 +        return APR_SUCCESS;
 +    /* If this fails for whatever reason..fallback to the old ways.. */

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to