Author: jfrederic.clere(a)jboss.com
Date: 2013-06-11 06:13:16 -0400 (Tue, 11 Jun 2013)
New Revision: 3089
Added:
trunk/build/patch/httpd-2.2.21.RedHatEnterpriseES.4.patch
Modified:
trunk/build/unix/build.sh
Log:
Add special logic for old rhel4.
Added: trunk/build/patch/httpd-2.2.21.RedHatEnterpriseES.4.patch
===================================================================
--- trunk/build/patch/httpd-2.2.21.RedHatEnterpriseES.4.patch (rev
0)
+++ trunk/build/patch/httpd-2.2.21.RedHatEnterpriseES.4.patch 2013-06-11 10:13:16 UTC (rev
3089)
@@ -0,0 +1,134 @@
+--- modules/ssl/config.m4 (revision 793871)
++++ modules/ssl/config.m4 (working copy)
+@@ -120,7 +120,13 @@
+ if test "x$enable_ssl" = "xshared"; then
+ # The only symbol which needs to be exported is the module
+ # structure, so ask libtool to hide everything else:
+- APR_ADDTO(MOD_SSL_LDADD, [-export-symbols-regex ssl_module])
++ case $host in
++ *-apple-darwin*)
++ ;;
++ *)
++ APR_ADDTO(MOD_SSL_LDADD, [-export-symbols-regex ssl_module])
++ ;;
++ esac
+ fi
+ ])
+
+--- srclib/apr/NMAKEmakefile (revision 2617)
++++ srclib/apr/NMAKEmakefile (working copy)
+@@ -106,11 +106,12 @@
+ $(WORKDIR)\signals.obj \
+ $(WORKDIR)\thread.obj \
+ $(WORKDIR)\threadpriv.obj \
+- $(WORKDIR)\access.obj \
+ $(WORKDIR)\time.obj \
+ $(WORKDIR)\timestr.obj \
+ $(WORKDIR)\groupinfo.obj \
+- $(WORKDIR)\userinfo.obj
++ $(WORKDIR)\userinfo.obj \
++ $(WORKDIR)\poll.obj \
++ $(WORKDIR)\pollset.obj
+
+ !IF EXIST($(SRCDIR)\file_io\win32\buffer.c)
+ OBJECTS = $(OBJECTS) \
+--- srclib/apr/network_io/unix/multicast.c 2012/04/04 11:17:32 1309331
++++ srclib/apr/network_io/unix/multicast.c 2012/04/04 11:20:43 1309332
+@@ -217,6 +217,7 @@
+ }
+ }
+ else if (sock_is_ipv6(sock)) {
++ unsigned int hopsopt = value;
+ if (type == IP_MULTICAST_TTL) {
+ type = IPV6_MULTICAST_HOPS;
+ }
+@@ -225,7 +226,7 @@
+ }
+
+ if (setsockopt(sock->socketdes, IPPROTO_IPV6, type,
+- &value, sizeof(value)) == -1) {
++ (const void *) &hopsopt, sizeof(hopsopt)) == -1) {
+ rv = errno;
+ }
+ }
+--- ./srclib/apr/buildconf 2010-03-05 13:38:36.000000000 +0100
++++ ./srclib/apr/buildconf 2013-06-06 14:24:21.833677315 +0200
+@@ -50,7 +50,7 @@
+ lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
+ IFS=.; set $lt_version; IFS=' '
+ if test "$1" = "1"; then
+- $libtoolize --copy --automake --force $verbose
++ $libtoolize --copy --automake --force $verbose
+ if [ -f libtool.m4 ]; then
+ ltfile=`pwd`/libtool.m4
+ else
+@@ -72,7 +72,7 @@
+ cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' >
build/libtool.m4
+ fi
+ if test "$1" = "2"; then
+- $libtoolize --copy --force $verbose
++ $libtoolize --copy --force $verbose
+ fi
+
+ # Clean up any leftovers
+--- ./srclib/apr-util/xml/expat/configure.in 2013-06-05 19:03:46.000584753 +0200
++++ ./srclib/apr-util/xml/expat/configure.in 2013-06-06 14:21:30.167618342 +0200
+@@ -39,6 +39,12 @@
+ AC_CONFIG_HEADER(expat_config.h)
+
+ sinclude(conftools/ac_c_bigendian_cross.m4)
++sinclude(conftools/libtool.m4)
++sinclude(conftools/ltsugar.m4)
++sinclude(conftools/argz.m4)
++sinclude(conftools/ltoptions.m4)
++sinclude(conftools/ltversion.m4)
++sinclude(conftools/lt~obsolete.m4)
+
+ AC_CANONICAL_SYSTEM
+
+--- ./srclib/apr-util/xml/expat/buildconf.sh 2013-06-05 19:03:58.464733329 +0200
++++ ./srclib/apr-util/xml/expat/buildconf.sh 2013-06-06 14:16:20.001058561 +0200
+@@ -1,5 +1,10 @@
+ #! /bin/sh
+
++if [ "$1" = "--verbose" -o "$1" = "-v" ]; then
++ verbose="--verbose"
++ shift
++fi
++
+ #
+ # Find libtoolize. Prefer 1.x versions.
+ #
+@@ -27,7 +32,7 @@
+ (cd conftools ; rm -f ltconfig ltmain.sh aclocal.m4 $m4files)
+ rm -rf autom4te*.cache aclocal.m4
+
+-$libtoolize --copy --automake
++$libtoolize --copy --automake --force $verbose
+
+ #
+ # find libtool.m4
+@@ -43,6 +48,9 @@
+ exit 1
+ fi
+ fi
++if [ ! -f conftools/libtool.m4 ]; then
++ mv aclocal.m4 conftools/libtool.m4
++fi
+
+ #
+ # Build aclocal.m4 from libtool's m4 files
+@@ -66,11 +74,11 @@
+ # Generate the autoconf header template (config.h.in) and ./configure
+ #
+ echo "Creating config.h.in ..."
+-${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
++${AUTOHEADER:-autoheader} $verbose 2>&1 | grep -v
"$cross_compile_warning"
+
+ echo "Creating configure ..."
+ ### do some work to toss config.cache?
+-${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
++${AUTOCONF:-autoconf} $verbose 2>&1 | grep -v "$cross_compile_warning"
+
+ # Remove autoconf caches
+ rm -rf autom4te*.cache aclocal.m4
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2013-06-11 09:10:36 UTC (rev 3088)
+++ trunk/build/unix/build.sh 2013-06-11 10:13:16 UTC (rev 3089)
@@ -1160,20 +1160,25 @@
DIR=$1
isrhel=$2
basefilename=`basename $DIR`
- if [ -f $build_top/../patch/$basefilename.patch ]; then
+ filename=$basefilename.patch
+ if $isrhel; then
+ filename=$basefilename.rhel.patch
+ else
+ if [ $BUILD_SYS = "linux2" ]; then
+ dist=`lsb_release -i -s`
+ ver=`lsb_release -r -s`
+ if [ -f -f $build_top/../patch/$basefilename.$dist.$ver.patch ]; then
+ filename=$basefilename.$dist.$ver.patch
+ fi
+ fi
+ fi
+
+ if [ -f $build_top/../patch/$ilename ]; then
(cd $DIR
- echo "Applying patch $build_top/../patch/$basefilename.patch in $DIR"
- $patch -tf -p0 -i $build_top/../patch/$basefilename.patch
+ echo "Applying patch $build_top/../patch/$filename in $DIR"
+ $patch -tf -p0 -i $build_top/../patch/$filename
) || return 1
fi
- if $isrhel; then
- if [ -f $build_top/../patch/$basefilename.rhel.patch ]; then
- (cd $DIR
- echo "Applying patch $build_top/../patch/$basefilename.rhel.patch in
$DIR"
- $patch -tf -p0 -i $build_top/../patch/$basefilename.rhel.patch
- ) || return 1
- fi
- fi
}
# Check and download
Show replies by date