[Pkg-apache-commits] r1291 - in /trunk/apr: changelog patches/00list patches/029_fix_ino_t_freebsd.dpatch

sf at alioth.debian.org sf at alioth.debian.org
Sat Mar 5 20:12:32 UTC 2011


Author: sf
Date: Sat Mar  5 20:12:30 2011
New Revision: 1291

URL: http://svn.debian.org/wsvn/pkg-apache/?sc=1&rev=1291
Log:
Fix apr_ino_t changing size depending on -D_FILE_OFFSET_BITS on
kfreebsd-*.

Added:
    trunk/apr/patches/029_fix_ino_t_freebsd.dpatch
Modified:
    trunk/apr/changelog
    trunk/apr/patches/00list

Modified: trunk/apr/changelog
URL: http://svn.debian.org/wsvn/pkg-apache/trunk/apr/changelog?rev=1291&op=diff
==============================================================================
--- trunk/apr/changelog (original)
+++ trunk/apr/changelog Sat Mar  5 20:12:30 2011
@@ -1,3 +1,10 @@
+apr (1.4.2-8) UNRELEASED; urgency=low
+
+  * Fix apr_ino_t changing size depending on -D_FILE_OFFSET_BITS on
+    kfreebsd-*. Closes: #616323
+
+ -- Stefan Fritsch <sf at debian.org>  Sat, 05 Mar 2011 20:58:22 +0100
+
 apr (1.4.2-7) unstable; urgency=low
 
   * Add a workaround for a problem related to strict aliasing that causes

Modified: trunk/apr/patches/00list
URL: http://svn.debian.org/wsvn/pkg-apache/trunk/apr/patches/00list?rev=1291&op=diff
==============================================================================
--- trunk/apr/patches/00list (original)
+++ trunk/apr/patches/00list Sat Mar  5 20:12:30 2011
@@ -9,3 +9,4 @@
 026_omit_extra_libs.dpatch
 027_apr_socket_addr_get_lifetime.dpatch
 028_aliasing_gcc_4.5.dpatch
+029_fix_ino_t_freebsd.dpatch

Added: trunk/apr/patches/029_fix_ino_t_freebsd.dpatch
URL: http://svn.debian.org/wsvn/pkg-apache/trunk/apr/patches/029_fix_ino_t_freebsd.dpatch?rev=1291&op=file
==============================================================================
--- trunk/apr/patches/029_fix_ino_t_freebsd.dpatch (added)
+++ trunk/apr/patches/029_fix_ino_t_freebsd.dpatch Sat Mar  5 20:12:30 2011
@@ -1,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make sure apr_ino_t stays the same regardless of
+## DP: -D_FILE_OFFSET_BITS=64 or not
+## DP: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616323
+ at DPATCH@
+Index: configure.in
+===================================================================
+--- a/configure.in
++++ b/configure.in
+@@ -1726,9 +1726,13 @@
+ # ino64_t as apr_off_t is off64_t, but this can't be done now without
+ # breaking ABI.
+ ino_t_value=ino_t
+-if test "$ac_cv_sizeof_long" = "4"; then
+-    APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long, 
+-                               ino_t_value="unsigned long")
++APR_CHECK_SIZEOF_EXTENDED(AC_INCLUDES_DEFAULT, ino_t, $ac_cv_sizeof_long)
++if test $ac_cv_sizeof_ino_t = 4; then
++    if test $ac_cv_sizeof_long = 4; then
++        ino_t_value="unsigned long"
++    else
++        ino_t_value="unsigned int"
++    fi
+ fi
+ AC_MSG_NOTICE([using $ino_t_value for ino_t])
+ 




More information about the Pkg-apache-commits mailing list