Hello community,

here is the log from the commit of package libapr1 for openSUSE:Factory checked 
in at 2013-08-28 21:21:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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  2013-07-23 
12:32:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libapr1.new/libapr1.changes     2013-08-28 
21:21:41.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Aug 28 07:20:31 UTC 2013 - [email protected]
+
+- Use compiler symbol visibility 
+
+-------------------------------------------------------------------

New:
----
  apr-visibility.patch

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

Other differences:
------------------
++++++ libapr1.spec ++++++
--- /var/tmp/diff_new_pack.ZoJYzY/_old  2013-08-28 21:21:41.000000000 +0200
+++ /var/tmp/diff_new_pack.ZoJYzY/_new  2013-08-28 21:21:41.000000000 +0200
@@ -48,6 +48,7 @@
 Patch1:         string-compare.diff
 Patch3:         apr-1.3.0-testshm-apr_shm_remove.patch
 Patch4:         apr-1.4.5-linux3.patch
+Patch5:         apr-visibility.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %define aprver 1
 %define installbuilddir %{_libdir}/apr-%{aprver}/build
@@ -98,6 +99,7 @@
 %patch1
 %patch3 -p1
 %patch4
+%patch5 -p1
 #
 # workaround for ugly bug 400488
 # Xen kernel on sles9 x86_64 is set up to behave different than all other 
kernels
@@ -131,7 +133,6 @@
 %endif
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS -fPIC"
 #
 #rm -rf aclocal.m4 autom4te*.cache
 #autoheader
@@ -142,7 +143,7 @@
 # --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]
 ./buildconf
 export ac_cv_search_shm_open=no
-
+export apr_lock_method=USE_PROC_PTHREAD_SERIALIZE
 %configure --enable-other-child \
        --with-installbuilddir=%{installbuilddir} \
        --includedir=%{includedir} \
@@ -156,7 +157,7 @@
     --with-devrandom=/dev/urandom \
     --disable-static \
     --with-pic 
-%{__make} %{?jobs:-j%jobs}
+%{__make} %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden -fPIC"
 %if %{?suse_version:1}0
 make dox
 %endif

++++++ apr-visibility.patch ++++++
--- apr-1.4.8.orig/include/apr.h.in
+++ apr-1.4.8/include/apr.h.in
@@ -474,7 +474,7 @@ typedef  apr_uint32_t            apr_uin
  * headers, without defining APR_DECLARE_STATIC, will prepare the code to be
  * linked to the dynamic library.
  */
-#define APR_DECLARE(type)            type 
+#define APR_DECLARE(type)            __attribute__ ((visibility ("default"))) 
type 
 
 /**
  * The public APR functions using variable arguments are declared with 
@@ -487,7 +487,7 @@ typedef  apr_uint32_t            apr_uin
  *
  * </PRE>
  */
-#define APR_DECLARE_NONSTD(type)     type
+#define APR_DECLARE_NONSTD(type)      __attribute__ ((visibility ("default"))) 
type
 
 /**
  * The public APR variables are declared with AP_MODULE_DECLARE_DATA.
@@ -503,7 +503,7 @@ typedef  apr_uint32_t            apr_uin
  *
  * </PRE>
  */
-#define APR_DECLARE_DATA
+#define APR_DECLARE_DATA  __attribute__ ((visibility ("default")))
 
 /* Define APR_SSIZE_T_FMT.  
  * If ssize_t is an integer we define it to be "d",
--- apr-1.4.8.orig/include/apr_support.h
+++ apr-1.4.8/include/apr_support.h
@@ -45,7 +45,7 @@ extern "C" {
  *        otherwise wait for data to be able to be written. 
  * @return APR_TIMEUP if we run out of time.
  */
-apr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
+APR_DECLARE(apr_status_t) apr_wait_for_io_or_timeout(apr_file_t *f, 
apr_socket_t *s,
                                         int for_read);
 
 /** @} */
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to