Browse Source

upgrading package: apache-apreq 2.08 -> 2.12

master
parent
commit
7a90a758a5
  1. 106
      apache-apreq/apache-apreq.patch
  2. 7
      apache-apreq/apache-apreq.spec

106
apache-apreq/apache-apreq.patch

@ -1,7 +1,7 @@
Index: configure
--- configure.orig 2006-08-09 06:29:00 +0200
+++ configure 2008-10-27 19:47:34 +0100
@@ -18955,7 +18955,7 @@
--- configure.orig 2009-03-06 20:17:06 +0100
+++ configure 2009-08-07 19:29:42 +0200
@@ -19470,11 +19470,11 @@
if test ${APR_MAJOR_VERSION:="0"} -eq 0; then
apr_config=apr-config
apu_config=apu-config
@ -10,7 +10,42 @@ Index: configure
else
apr_config=apr-$APR_MAJOR_VERSION-config
apu_config=apu-$APR_MAJOR_VERSION-config
@@ -19250,7 +19250,7 @@
- apreq_libs="-lapr-$APR_MAJOR_VERSION -laprutil-$APR_MAJOR_VERSION"
+ apreq_libs="-laprutil-$APR_MAJOR_VERSION -lapr-$APR_MAJOR_VERSION"
fi
if test -z "$APR_CONFIG"; then
@@ -19742,10 +19742,10 @@
APU_LA="`$APU_CONFIG --apu-la-file`"
if test "x$APR_LTFLAGS" = "x"; then
- echo " setting APR_LTFLAGS to \""`$APR_CONFIG --link-libtool`"\""
- APR_LTFLAGS=""`$APR_CONFIG --link-libtool`""
+ echo " setting APR_LTFLAGS to \""`$APU_CONFIG --link-libtool`"\""
+ APR_LTFLAGS=""`$APU_CONFIG --link-libtool`""
else
- apr_addto_bugger=""`$APR_CONFIG --link-libtool`""
+ apr_addto_bugger=""`$APU_CONFIG --link-libtool`""
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $APR_LTFLAGS; do
@@ -19761,12 +19761,11 @@
done
fi
-
if test "x$APR_LTFLAGS" = "x"; then
- echo " setting APR_LTFLAGS to \""`$APU_CONFIG --link-libtool`"\""
- APR_LTFLAGS=""`$APU_CONFIG --link-libtool`""
+ echo " setting APR_LTFLAGS to \""`$APR_CONFIG --link-libtool`"\""
+ APR_LTFLAGS=""`$APR_CONFIG --link-libtool`""
else
- apr_addto_bugger=""`$APU_CONFIG --link-libtool`""
+ apr_addto_bugger=""`$APR_CONFIG --link-libtool`""
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $APR_LTFLAGS; do
@@ -19777,34 +19776,13 @@
done
if test $apr_addto_duplicate = "0"; then
echo " adding \"$i\" to APR_LTFLAGS"
@ -19,15 +54,68 @@ Index: configure
fi
done
fi
- if test "x$APR_LIBS" = "x"; then
- echo " setting APR_LIBS to \""`$APR_CONFIG --libs`"\""
- APR_LIBS=""`$APR_CONFIG --libs`""
- else
- apr_addto_bugger=""`$APR_CONFIG --libs`""
- for i in $apr_addto_bugger; do
- apr_addto_duplicate="0"
- for j in $APR_LIBS; do
- if test "x$i" = "x$j"; then
- apr_addto_duplicate="1"
- break
- fi
- done
- if test $apr_addto_duplicate = "0"; then
- echo " adding \"$i\" to APR_LIBS"
- APR_LIBS="$APR_LIBS $i"
- fi
- done
- fi
-
-
if test "x$OS" = "xsolaris"; then
if $APU_CONFIG --avoid-ldap >/dev/null 2>&1; then
APU_LIBS=`$APU_CONFIG --avoid-ldap --libs | $PERL -pe 's,-lexpat,,'`
@@ -19880,6 +19858,25 @@
fi
fi
+ if test "x$APR_LIBS" = "x"; then
+ echo " setting APR_LIBS to \""`$APR_CONFIG --libs`"\""
+ APR_LIBS=""`$APR_CONFIG --libs`""
+ else
+ apr_addto_bugger=""`$APR_CONFIG --libs`""
+ for i in $apr_addto_bugger; do
+ apr_addto_duplicate="0"
+ for j in $APR_LIBS; do
+ if test "x$i" = "x$j"; then
+ apr_addto_duplicate="1"
+ break
+ fi
+ done
+ if test $apr_addto_duplicate = "0"; then
+ echo " adding \"$i\" to APR_LIBS"
+ APR_LIBS="$APR_LIBS $i"
+ fi
+ done
+ fi
if test "x$APR_LDFLAGS" = "x"; then
echo " setting APR_LDFLAGS to \""`$APU_CONFIG --link-ld --ldflags`"\""
Index: library/Makefile.in
--- library/Makefile.in.orig 2006-08-09 06:29:04 +0200
+++ library/Makefile.in 2008-10-27 19:47:12 +0100
@@ -220,7 +220,7 @@
--- library/Makefile.in.orig 2009-03-06 20:17:07 +0100
+++ library/Makefile.in 2009-08-07 19:27:02 +0200
@@ -124,7 +124,7 @@
parser_urlencoded.c parser_header.c parser_multipart.c \
module.c module_custom.c module_cgi.c error.c
-libapreq2_la_LDFLAGS = -version-info @APREQ_LIBTOOL_VERSION@ @APR_LTFLAGS@ @APR_LIBS@
+libapreq2_la_LDFLAGS = -static -version-info @APREQ_LIBTOOL_VERSION@ @APR_LTFLAGS@ @APR_LIBS@
@ENABLE_PROFILE_TRUE@AM_CFLAGS = -pg -fprofile-arcs -ftest-coverage
all: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) all-am
subdir = library

7
apache-apreq/apache-apreq.spec

@ -31,8 +31,8 @@ Distribution: OpenPKG Community
Class: EVAL
Group: Web
License: ASF
Version: 2.08
Release: 20081027
Version: 2.12
Release: 20090807
# package options
%option with_perl no
@ -78,6 +78,9 @@ AutoReqProv: no
# configure package
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_ldflags}" \
LIBS="-lapr" \
./configure \
--prefix="%{l_prefix}" \
%if "%{with_perl}" == "yes"

Loading…
Cancel
Save