delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/04/13:00:59

X-Spam-Check-By: sourceware.org
Date: Wed, 04 Oct 2006 10:00:07 -0700
From: David Rothenberger <daveroth AT acm DOT org>
Subject: Re: Subversion 1.4
In-reply-to: <4C89134832705D4D85A6CD2EBF38AE0F7B1350@PAUMAILU03.ags.agere.com>
To: "Williams, Gerald S \(Jerry\)" <gsw AT agere DOT com>, cygwin <cygwin AT cygwin DOT com>
Message-id: <4523E897.8070708@acm.org>
MIME-version: 1.0
References: <4C89134832705D4D85A6CD2EBF38AE0F7B1350 AT PAUMAILU03 DOT ags DOT agere DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigC70045D86983C293E54EE6D6
Content-Type: multipart/mixed;
 boundary="------------040801020606010903070600"

This is a multi-part message in MIME format.
--------------040801020606010903070600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

On 10/4/2006 7:35 AM, Williams, Gerald S (Jerry) wrote:
> Has anybody successfully built subversion 1.4 (or alternately,
> is a release planned soon)? It didn't build OOTB for me, and
> I'd rather not duplicate effort.

I successfully built it with the attached patch. I haven't actually used=20
it yet, since some other tools I use don't yet support 1.4, but it=20
passed all tests except the ruby tests. I did some investigation and it=20
seemed like a problem with the test infrastructure. Since I don't use=20
ruby bindings, I didn't spend a lot of time on it.

I did have trouble building with subversion installed. I had to=20
uninstall it to get the build to work correctly.

Also, I did not regenerate the swig bindings, as was done for 1.3.2.

Anyway, I've attached the g-b-s script and patch I used. Maybe it will=20
work for you.

--=20
David Rothenberger                spammer? -> spam AT daveroth DOT dyndns DOT org
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

One possible reason that things aren't going according to plan
is that there never was a plan in the first place.

--------------040801020606010903070600
Content-Type: text/plain;
 name="subversion-1.4.0-0.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="subversion-1.4.0-0.patch"

--- subversion-1.4.0-orig/CYGWIN-PATCHES/README	1969-12-31 16:00:00.0000000=
00 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/README	2006-09-12 11:05:09.000000000 -0=
700
@@ -0,0 +1,54 @@
+Subversion 1.4.0
+------------------------------------------
+The goal of the Subversion project is to build a version control system
+that is a compelling replacement for CVS in the open source community.=20
+
+There is very useful and comprehensive documentation in the book
+"Version Control with Subversion", available free online:
+
+              http://svnbook.red-bean.com/
+
+
+
+Runtime requirements:
+  cygwin
+  libapr0
+  libaprutil0
+  libdb4.2
+  expat
+  libneon24
+
+Build requirements:
+  (basic development packages)
+  python
+  autoconf
+  libtool
+  apr
+  apr-util
+  libdb4.2-devel
+  neon
+  libiconv
+  swig
+  apache2-devel
+  perl
+
+Canonical homepage:
+  http://subversion.tigris.org/
+
+Canonical download:
+  http://subversion.tigris.org/tarballs/subversion-1.4.0.tar.bz2
+
+------------------------------------
+
+Build instructions:
+  unpack subversion-1.4.0-1-src.tar.bz2
+    if you use setup to install this src package, it will be
+	 unpacked under /usr/src automatically
+  cd /usr/src
+  ./subversion-1.4.0-1.sh all
+
+Or use './subversion-1.4.0-1.sh prep' to get a patched source directory
+
+-------------------------------------------
+
+Cygwin port maintained by: Max Bowsher <maxb1 AT ukf DOT net>
--- subversion-1.4.0-orig/CYGWIN-PATCHES/gbs.munge	1969-12-31 16:00:00.0000=
00000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/gbs.munge	2006-09-12 10:58:32.000000000=
 -0700
@@ -0,0 +1,46 @@
+ConfigureArg --enable-shared
+ConfigureArg --disable-static
+ConfigureArg --with-apr=3D/usr/bin/apr-1-config
+ConfigureArg --with-apr-util=3D/usr/bin/apu-1-config
+ConfigureArg --with-neon=3D/usr
+ConfigureArg --disable-neon-version-check
+ConfigureArg --with-swig=3D/usr/bin/swig
+ConfigureArg --with-apxs=3D/usr/sbin/apxs2
+
+SubPackage subversion-devel-$VER-$REL.tar.bz2 usr/include usr/lib/libsvn_[=
a-rt-z]* usr/lib/libsvn_subr*
+SubPackage subversion-python-$VER-$REL.tar.bz2 usr/lib/python* usr/bin/cyg=
svn_swig_py* usr/lib/libsvn_swig_py*
+SubPackage subversion-perl-$VER-$REL.tar.bz2 usr/lib/perl5 usr/bin/cygsvn_=
swig_perl* usr/lib/libsvn_swig_perl*
+SubPackage subversion-ruby-$VER-$REL.tar.bz2 usr/lib/ruby usr/bin/cygsvn_s=
wig_ruby* usr/lib/libsvn_swig_ruby*
+SubPackage subversion-apache2-$VER-$REL.tar.bz2 usr/lib/apache2
+
+AutoreconfCmd ./autogen.sh
+AutoreconfCmd find . -name "autom4te.cache" | xargs rm -rf
+AutoreconfCmd sed -e 's/relink_command=3D\\"$relink_command\\""/"/' ac-hel=
pers/ltmain.sh > gbs.$$.tmp && mv gbs.$$.tmp ac-helpers/ltmain.sh
+
+MakeTarget extraclean-swig-py EXTRA_CFLAGS=3D
+MakeTarget extraclean-swig-pl EXTRA_CFLAGS=3D
+MakeTarget extraclean-swig-rb EXTRA_CFLAGS=3D
+MakeTarget autogen-swig-py EXTRA_CFLAGS=3D
+MakeTarget autogen-swig-pl EXTRA_CFLAGS=3D
+MakeTarget autogen-swig-rb EXTRA_CFLAGS=3D
+MakeTarget EXTRA_CFLAGS=3D
+MakeTarget swig-py swig_pydir=3D/usr/lib/python2.4/site-packages/libsvn sw=
ig_pydir_extra=3D/usr/lib/python2.4/site-packages/svn EXTRA_CFLAGS=3D
+MakeTarget swig-pl EXTRA_CFLAGS=3D
+MakeTarget swig-rb LIBS=3D-lruby EXTRA_CFLAGS=3D
+
+MakeInstallTarget install
+MakeInstallTarget install-swig-py swig_pydir=3D/usr/lib/python2.4/site-pac=
kages/libsvn swig_pydir_extra=3D/usr/lib/python2.4/site-packages/svn
+MakeInstallTarget install-swig-pl
+MakeInstallTarget install-swig-rb
+
+# Kill perllocal.pod and containing dirs
+InstallExtraCmd rm ${instdir}/usr/lib/perl5/5.8/cygwin/perllocal.pod
+InstallExtraCmd rmdir ${instdir}/usr/lib/perl5/5.8/cygwin
+InstallExtraCmd rmdir ${instdir}/usr/lib/perl5/5.8
+
+UnpackExclude */apr
+UnpackExclude */apr-util
+UnpackExclude */neon
+
+DiffExclude configure
+DiffExclude build-outputs.mk
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint	1969-12-31 16:00:00.000=
000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint	2006-09-12 10:58:32.00000000=
0 -0700
@@ -0,0 +1,5 @@
+sdesc: "A version control system"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Devel
+requires: cygwin libaprutil1 libapr1 libdb4.2 libneon25 expat libintl3
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint-subversion-apache2	1969=
-12-31 16:00:00.000000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint-subversion-apache2	2006-09-1=
2 10:58:32.000000000 -0700
@@ -0,0 +1,6 @@
+sdesc: "A version control system (Apache 2 modules)"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Net Web Devel
+requires: subversion apache2
+external-source: subversion
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint-subversion-devel	1969-1=
2-31 16:00:00.000000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint-subversion-devel	2006-09-12 =
10:58:32.000000000 -0700
@@ -0,0 +1,6 @@
+sdesc: "A version control system (C headers and import libraries)"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Devel
+requires: subversion
+external-source: subversion
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint-subversion-perl	1969-12=
-31 16:00:00.000000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint-subversion-perl	2006-09-12 1=
0:58:32.000000000 -0700
@@ -0,0 +1,6 @@
+sdesc: "A version control system (perl bindings)"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Devel Libs
+requires: subversion perl
+external-source: subversion
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint-subversion-python	1969-=
12-31 16:00:00.000000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint-subversion-python	2006-09-12=
 10:58:32.000000000 -0700
@@ -0,0 +1,6 @@
+sdesc: "A version control system (python bindings)"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Devel Libs
+requires: subversion python
+external-source: subversion
--- subversion-1.4.0-orig/CYGWIN-PATCHES/setup.hint-subversion-ruby	1969-12=
-31 16:00:00.000000000 -0800
+++ subversion-1.4.0/CYGWIN-PATCHES/setup.hint-subversion-ruby	2006-09-12 1=
0:58:32.000000000 -0700
@@ -0,0 +1,6 @@
+sdesc: "A version control system (ruby bindings)"
+ldesc: "Subversion is a version control system that aims to be a compelling
+replacement for CVS in the open source community"
+category: Devel Libs
+requires: subversion ruby
+external-source: subversion
--- subversion-1.4.0-orig/build.conf	2006-08-04 07:49:08.000000000 -0700
+++ subversion-1.4.0/build.conf	2006-09-12 10:58:32.000000000 -0700
@@ -292,6 +292,7 @@
 type =3D apache-mod
 path =3D subversion/mod_dav_svn
 libs =3D libsvn_repos libsvn_fs libsvn_delta libsvn_subr
+       mod_dav httpd aprutil apr
 nonlibs =3D apr aprutil
 install =3D apache-mod
 msvc-libs =3D mod_dav.lib libhttpd.lib
@@ -302,9 +303,20 @@
 path =3D subversion/mod_authz_svn
 nonlibs =3D mod_dav_svn apr aprutil
 libs =3D libsvn_subr libsvn_repos
+       mod_dav_svn httpd aprutil apr
 install =3D apache-mod
 msvc-libs =3D libhttpd.lib
=20
+[mod_dav]
+type =3D lib
+external-lib =3D `$(APXS) -q libexecdir`/mod_dav.la
+libs =3D httpd aprutil apr
+
+[httpd]
+type =3D lib
+external-lib =3D `$(APXS) -q libdir`/libhttpd2core.la
+libs =3D aprutil apr
+
 [svnserve]
 description =3D Subversion Server
 type =3D exe
@@ -427,12 +439,16 @@
 type =3D swig_lib
 lang =3D perl
 path =3D subversion/bindings/swig/perl/libsvn_swig_perl
-libs =3D libsvn_subr libsvn_delta aprutil apriconv apr
+libs =3D libsvn_subr libsvn_delta aprutil apriconv apr perl
 install =3D swig-pl-lib
 # need special build rule to include
 compile-cmd =3D $(COMPILE_SWIG_PL)
 msvc-static =3D yes
=20
+[perl]
+type =3D lib
+external-lib =3D -L/usr/lib/perl5/5.8/cygwin/CORE -lperl
+
 # SWIG utility library for Ruby modules
 [libsvn_swig_ruby]
 type =3D swig_lib
--- subversion-1.4.0-orig/configure.in	2006-07-13 06:48:48.000000000 -0700
+++ subversion-1.4.0/configure.in	2006-09-12 10:58:32.000000000 -0700
@@ -359,10 +359,10 @@
 INSTALL_STATIC_RULES=3D"install-bin install-docs"
 INSTALL_RULES=3D"install-fsmod-lib install-ramod-lib install-lib install-i=
nclude install-static"
 INSTALL_RULES=3D"$INSTALL_RULES $INSTALL_APACHE_RULE"
-BUILD_RULES=3D"fsmod-lib ramod-lib lib bin test $BUILD_APACHE_RULE"
+BUILD_RULES=3D"fsmod-lib ramod-lib lib bin $BUILD_APACHE_RULE"
=20
 if test "$svn_lib_berkeley_db" =3D "yes"; then
-  BUILD_RULES=3D"$BUILD_RULES bdb-lib bdb-test"
+  BUILD_RULES=3D"$BUILD_RULES bdb-lib"
   INSTALL_RULES=3D"`echo $INSTALL_RULES | sed 's/install-fsmod-lib/install=
-fsmod-lib install-bdb-lib/'`"
   INSTALL_STATIC_RULES=3D"$INSTALL_STATIC_RULES install-bdb-lib"
   BDB_TEST_DEPS=3D"\$(BDB_TEST_DEPS)"
--- subversion-1.4.0-orig/subversion/svnadmin/main.c	2006-08-23 06:37:25.00=
0000000 -0700
+++ subversion-1.4.0/subversion/svnadmin/main.c	2006-09-12 11:03:12.0000000=
00 -0700
@@ -37,6 +37,10 @@
=20
 #include "svn_private_config.h"
=20
+#include <unistd.h>
+#include <io.h>
+#include <fcntl.h>
+
 =0C
 /*** Code. ***/
=20
@@ -630,6 +634,7 @@
=20
   /* Run the dump to STDOUT.  Let the user redirect output into
      a file if they want.  :-)  */
+  setmode(STDOUT_FILENO, O_BINARY);
   SVN_ERR(create_stdio_stream(&stdout_stream, apr_file_open_stdout, pool));
=20
   /* Progress feedback goes to STDERR, unless they asked to suppress it. */
@@ -686,6 +691,7 @@
   SVN_ERR(open_repos(&repos, opt_state->repository_path, pool));
=20=20=20
   /* Read the stream from STDIN.  Users can redirect a file. */
+  setmode(STDIN_FILENO, O_BINARY);
   SVN_ERR(create_stdio_stream(&stdin_stream,
                               apr_file_open_stdin, pool));
=20=20=20

--------------040801020606010903070600
Content-Type: text/plain;
 name="subversion-1.4.0-0.sh"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="subversion-1.4.0-0.sh"

#!/bin/sh
#
# Generic package build script
#
# $Id: generic-build-script,v 1.38 2005/10/14 14:04:35 igor Exp $
#
# Package maintainers: if the original source is not distributed as a
# (possibly compressed) tarball, set the value of ${src_orig_pkg_name},
# and redefine the unpack() helper function appropriately.
# Also, if the Makefile rule to run the test suite is not "check", change
# the definition of ${test_rule} below.

# find out where the build script is located
tdir=3D`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
test "x$tdir" =3D "x$0" && tdir=3D.
scriptdir=3D`cd $tdir; pwd`
# find src directory.
# If scriptdir ends in SPECS, then topdir is $scriptdir/..
# If scriptdir ends in CYGWIN-PATCHES, then topdir is $scriptdir/../..
# Otherwise, we assume that topdir =3D scriptdir
topdir1=3D`echo ${scriptdir} | sed 's%/SPECS$%%'`
topdir2=3D`echo ${scriptdir} | sed 's%/CYGWIN-PATCHES$%%'`
if [ "x$topdir1" !=3D "x$scriptdir" ] ; then # SPECS
  topdir=3D`cd ${scriptdir}/..; pwd`
else
  if [ "x$topdir2" !=3D "x$scriptdir" ] ; then # CYGWIN-PATCHES
    topdir=3D`cd ${scriptdir}/../..; pwd`
  else
    topdir=3D`cd ${scriptdir}; pwd`
  fi
fi

tscriptname=3D`basename $0 .sh`
export PKG=3D`echo $tscriptname | sed -e 's/\-[^\-]*\-[^\-]*$//'`
export VER=3D`echo $tscriptname | sed -e "s/${PKG}\-//" -e 's/\-[^\-]*$//'`
export REL=3D`echo $tscriptname | sed -e "s/${PKG}\-${VER}\-//"`
# BASEPKG refers to the upstream base package
# SHORTPKG refers to the Cygwin package
# Normally, these are identical, but if the Cygwin package name is different
# from the upstream package name, you will want to redefine BASEPKG.
# Example: For Apache 2, BASEPKG=3Dhttpd-2.x.xx but SHORTPKG=3Dapache2-2.x.=
xx
export BASEPKG=3D${PKG}-${VER}
export SHORTPKG=3D${PKG}-${VER}
export FULLPKG=3D${SHORTPKG}-${REL}

# determine correct decompression option and tarball filename
export src_orig_pkg_name=3D
if [ -e "${src_orig_pkg_name}" ] ; then
  export opt_decomp=3D? # Make sure tar punts if unpack() is not redefined
elif [ -e ${BASEPKG}.tar.bz2 ] ; then
  export opt_decomp=3Dj
  export src_orig_pkg_name=3D${BASEPKG}.tar.bz2
elif [ -e ${BASEPKG}.tar.gz ] ; then
  export opt_decomp=3Dz
  export src_orig_pkg_name=3D${BASEPKG}.tar.gz
elif [ -e ${BASEPKG}.tgz ] ; then
  export opt_decomp=3Dz
  export src_orig_pkg_name=3D${BASEPKG}.tgz
elif [ -e ${BASEPKG}.tar ] ; then
  export opt_decomp=3D
  export src_orig_pkg_name=3D${BASEPKG}.tar
else
  echo "Cannot find PKG:${PKG} VER:${VER} REL:${REL}.  Rename $0 to"
  echo "something more appropriate, and try again."
  exit 1
fi

export src_orig_pkg=3D${topdir}/${src_orig_pkg_name}

# determine correct names for generated files
export src_pkg_name=3D${FULLPKG}-src.tar.bz2
export src_patch_name=3D${FULLPKG}.patch
export bin_pkg_name=3D${FULLPKG}.tar.bz2

export src_pkg=3D${topdir}/${src_pkg_name}
export src_patch=3D${topdir}/${src_patch_name}
export bin_pkg=3D${topdir}/${bin_pkg_name}
export srcdir=3D${topdir}/${BASEPKG}
export objdir=3D${srcdir}/.build
export instdir=3D${srcdir}/.inst
export srcinstdir=3D${srcdir}/.sinst
export checkfile=3D${topdir}/${FULLPKG}.check

prefix=3D/usr
sysconfdir=3D/etc
localstatedir=3D/var
if [ -z "$MY_CFLAGS" ]; then
  MY_CFLAGS=3D"-O2"
fi
if [ -z "$MY_LDFLAGS" ]; then
  MY_LDFLAGS=3D
fi

export install_docs=3D"\
	ABOUT-NLS \
	ANNOUNCE \
	AUTHORS \
	BUG-REPORTS \
	CHANGES \
	CONTRIBUTORS \
	COPYING \
	COPYRIGHT \
	CREDITS \
	CHANGELOG \
	ChangeLog* \
	FAQ \
	HOW-TO-CONTRIBUTE \
	INSTALL \
	KNOWNBUG \
	LEGAL \
	LICENSE \
	NEWS \
	NOTES \
	PROGLIST \
	README \
	RELEASE_NOTES \
	THANKS \
	TODO \
	USAGE \
"
export install_docs=3D"`for i in ${install_docs}; do echo $i; done | sort -=
u`"
export test_rule=3Dcheck
if [ -z "$SIG" ]; then
  export SIG=3D0	# set to 1 to turn on signing by default
fi
# Sort in POSIX order.
export LC_ALL=3DC

# helper functions

# Provide help.
help() {
cat <<EOF
This is the cygwin packaging script for ${FULLPKG}.
Usage: $0 <action>
Actions are:
    help, --help	Print this message
    version, --version	Print the version message
    prep		Unpack and patch into ${srcdir}
    mkdirs		Make hidden directories needed during build
    conf, configure	Configure the package (./configure)
    reconf		Rerun configure
    build, make		Build the package (make)
    check, test		Run the testsuite (make ${test_rule})
    clean		Remove built files (make clean)
    install		Install package to staging area (make install)
    list		List package contents
    depend		List package dependencies
    strip		Strip package executables
    pkg, package	Prepare the binary package ${bin_pkg_name}
    mkpatch		Prepare the patch file ${src_patch_name}
    acceptpatch		Apply a patch to the source
    spkg, src-package	Prepare the source package ${src_pkg_name}
    finish		Remove source directory ${srcdir}
    checksig		Validate GPG signatures (requires gpg)
    first		Full run for spkg (mkdirs, spkg, finish)
    almostall		Full run for bin pkg, except for finish
    all			Full run for bin pkg
EOF
}

# Provide version of generic-build-script modified to make this
version() {
    vers=3D`echo '$Revision: 1.38 $' | sed -e 's/Revision: //' -e 's/ *\\$/=
/g'`
    echo "$0 based on generic-build-script $vers"
}

# unpacks the original package source archive into ./${BASEPKG}/
# change this if the original package was not tarred
# or if it doesn't unpack to a correct directory
unpack() {
  tar --exclude=3D'*/apr' --exclude=3D'*/apr-util' --exclude=3D'*/neon' -xv=
${opt_decomp}f "$1"
}

mkdirs() {
  (cd ${topdir} && \
  rm -fr ${objdir} ${instdir} ${srcinstdir} && \
  mkdir -p ${objdir} && \
  mkdir -p ${instdir} && \
  mkdir -p ${srcinstdir} )
}
prep() {
  (cd ${topdir} && \
  unpack ${src_orig_pkg} && \
  cd ${topdir} && \
  if [ -f ${src_patch} ] ; then \
    patch -Z -p0 < ${src_patch} ;\
  fi && \
  (cd ${BASEPKG} && \
  ./autogen.sh && \
  find . -name "autom4te.cache" | xargs rm -rf && \
  sed -e 's/relink_command=3D\\"$relink_command\\""/"/' build/ltmain.sh > g=
bs.$$.tmp && mv gbs.$$.tmp build/ltmain.sh ) && \
  mkdirs )
}
conf() {
  (cd ${objdir} && \
  CFLAGS=3D"${MY_CFLAGS}" LDFLAGS=3D"${MY_LDFLAGS}" \
  ${srcdir}/configure \
  --srcdir=3D${srcdir} --prefix=3D"${prefix}" \
  --exec-prefix=3D'${prefix}' --sysconfdir=3D"${sysconfdir}" \
  --libdir=3D'${prefix}/lib' --includedir=3D'${prefix}/include' \
  --mandir=3D'${prefix}/share/man' --infodir=3D'${prefix}/share/info' \
  --libexecdir=3D'${sbindir}' --localstatedir=3D"${localstatedir}" \
  --datadir=3D'${prefix}/share' \
  --enable-shared --disable-static --with-apr=3D/usr/bin/apr-1-config --wit=
h-apr-util=3D/usr/bin/apu-1-config --with-neon=3D/usr --disable-neon-versio=
n-check --with-swig=3D/usr/bin/swig --with-apxs=3D/usr/sbin/apxs2 )
}
reconf() {
  (cd ${topdir} && \
  rm -fr ${objdir} && \
  mkdir -p ${objdir} && \
  conf )
}
build() {
  (cd ${objdir} && \
  make EXTRA_CFLAGS=3D && \
  make swig-py swig_pydir=3D/usr/lib/python2.4/site-packages/libsvn swig_py=
dir_extra=3D/usr/lib/python2.4/site-packages/svn EXTRA_CFLAGS=3D && \
  make swig-pl EXTRA_CFLAGS=3D && \
  make swig-rb LIBS=3D-lruby EXTRA_CFLAGS=3D )
}
check() {
  (cd ${objdir} && \
  make ${test_rule} | tee ${checkfile} 2>&1 )
}
clean() {
  (cd ${objdir} && \
  make clean )
}
install() {
  (cd ${objdir} && \
  rm -fr ${instdir}/* && \
  sed -i -e 's/PATH=3D:\/usr\/lib:\/usr\/bin:/PATH=3D:/' subversion/svnvers=
ion/svnversion &&
  make install DESTDIR=3D${instdir} && \
  make install-swig-py swig_pydir=3D/usr/lib/python2.4/site-packages/libsvn=
 swig_pydir_extra=3D/usr/lib/python2.4/site-packages/svn DESTDIR=3D${instdi=
r} && \
  make install-swig-pl DESTDIR=3D${instdir} && \
  make install-swig-rb DESTDIR=3D${instdir} && \
  rm ${instdir}/usr/lib/perl5/5.8/cygwin/perllocal.pod && \
  rmdir ${instdir}/usr/lib/perl5/5.8/cygwin && \
  rmdir ${instdir}/usr/lib/perl5/5.8 && \
  for f in ${prefix}/share/info/dir ${prefix}/info/dir ; do \
    if [ -f ${instdir}${f} ] ; then \
      rm -f ${instdir}${f} ; \
    fi ;\
  done &&\
  for d in ${prefix}/share/doc/${SHORTPKG} ${prefix}/share/doc/Cygwin ; do \
    if [ ! -d ${instdir}${d} ] ; then \
      mkdir -p ${instdir}${d} ;\
    fi ;\
  done &&\
  if [ -d ${instdir}${prefix}/share/info ] ; then \
    find ${instdir}${prefix}/share/info -name "*.info" | xargs -r gzip -q ;=
 \
  fi && \
  if [ -d ${instdir}${prefix}/share/man ] ; then \
    find ${instdir}${prefix}/share/man -name "*.1" -o -name "*.3" -o \
      -name "*.3x" -o -name "*.3pm" -o -name "*.5" -o -name "*.6" -o \
      -name "*.7" -o -name "*.8" | xargs -r gzip -q ; \
  fi && \
  templist=3D"" && \
  for fp in ${install_docs} ; do \
    case "$fp" in \
      */) templist=3D"$templist `cd ${srcdir} && find $fp -type f`" ;;
      *)  for f in ${srcdir}/$fp ; do \
	    if [ -f $f ] ; then \
	      templist=3D"$templist $f"; \
	    fi ; \
	  done ;; \
    esac ; \
  done && \
  if [ ! "x$templist" =3D "x" ]; then \
    /usr/bin/install -m 644 $templist \
	 ${instdir}${prefix}/share/doc/${SHORTPKG} ; \
  fi && \
  if [ -f ${srcdir}/CYGWIN-PATCHES/${PKG}.README ]; then \
    /usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/${PKG}.README \
      ${instdir}${prefix}/share/doc/Cygwin/${SHORTPKG}.README ; \
  elif [ -f ${srcdir}/CYGWIN-PATCHES/README ] ; then \
    /usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/README \
      ${instdir}${prefix}/share/doc/Cygwin/${SHORTPKG}.README ; \
  fi && \
  if [ -f ${srcdir}/CYGWIN-PATCHES/${PKG}.sh ] ; then \
    if [ ! -d ${instdir}${sysconfdir}/postinstall ]; then \
      mkdir -p ${instdir}${sysconfdir}/postinstall ; \
    fi && \
    /usr/bin/install -m 755 ${srcdir}/CYGWIN-PATCHES/${PKG}.sh \
      ${instdir}${sysconfdir}/postinstall/${PKG}.sh ; \
  elif [ -f ${srcdir}/CYGWIN-PATCHES/postinstall.sh ] ; then \
    if [ ! -d ${instdir}${sysconfdir}/postinstall ]; then \
      mkdir -p ${instdir}${sysconfdir}/postinstall ; \
    fi && \
    /usr/bin/install -m 755 ${srcdir}/CYGWIN-PATCHES/postinstall.sh \
      ${instdir}${sysconfdir}/postinstall/${PKG}.sh ; \
  fi && \
  if [ -f ${srcdir}/CYGWIN-PATCHES/preremove.sh ] ; then \
    if [ ! -d ${instdir}${sysconfdir}/preremove ]; then \
      mkdir -p ${instdir}${sysconfdir}/preremove ; \
    fi && \
    /usr/bin/install -m 755 ${srcdir}/CYGWIN-PATCHES/preremove.sh \
      ${instdir}${sysconfdir}/preremove/${PKG}.sh ; \
  fi &&
  if [ -f ${srcdir}/CYGWIN-PATCHES/manifest.lst ] ; then
    if [ ! -d ${instdir}${sysconfdir}/preremove ]; then
      mkdir -p ${instdir}${sysconfdir}/preremove ;
    fi &&
    /usr/bin/install -m 755 ${srcdir}/CYGWIN-PATCHES/manifest.lst \
      ${instdir}${sysconfdir}/preremove/${PKG}-manifest.lst ;
  fi )
}
strip() {
  (cd ${instdir} && \
  find . -name "*.dll" -or -name "*.exe" | \
    while read f; do \
      touch strip.tmp && \
      chmod --reference=3D"$f" strip.tmp && \
      chmod 777 "$f" && \
      /usr/bin/strip "$f" 2>&1 && \
      chmod --reference=3Dstrip.tmp "$f" && \
      rm strip.tmp; \
    done; \
  true )
}
list() {
  (cd ${instdir} && \
  find . -name "*" ! -type d | sed 's%^\.%  %' | sort ; \
  true )
}
depend() {
  (cd ${instdir} && \
  find ${instdir} -name "*.exe" -o -name "*.dll" | xargs -r cygcheck | \
  sed -ne '/^  [^ ]/ s,\\,/,gp' | sort -bu | \
  xargs -r -n1 cygpath -u | xargs -r cygcheck -f | sed 's%^%  %' | sort -u =
; \
  true )
}
pkg() {
  (cd ${instdir} && \
  tar -cjvf "${topdir}/subversion-apache2-$VER-$REL.tar.bz2" usr/lib/apache=
2 && \
  tar -cjvf "${topdir}/subversion-perl-$VER-$REL.tar.bz2" usr/lib/perl5 usr=
/bin/cygsvn_swig_perl* usr/lib/libsvn_swig_perl* && \
  tar -cjvf "${topdir}/subversion-python-$VER-$REL.tar.bz2" usr/lib/python*=
 usr/bin/cygsvn_swig_py* usr/lib/libsvn_swig_py* && \
  tar -cjvf "${topdir}/subversion-devel-$VER-$REL.tar.bz2" usr/include usr/=
lib/libsvn_[a-rt-z]* usr/lib/libsvn_subr* && \
  tar -cjvf "${topdir}/subversion-ruby-$VER-$REL.tar.bz2" usr/lib/ruby usr/=
bin/cygsvn_swig_ruby* usr/lib/libsvn_swig_ruby* && \
  tar --exclude=3D'usr/lib/apache2' --exclude=3D'usr/lib/perl5' --exclude=
=3D'usr/bin/cygsvn_swig_perl*' --exclude=3D'usr/lib/libsvn_swig_perl*' --ex=
clude=3D'usr/lib/python*' --exclude=3D'usr/bin/cygsvn_swig_py*' --exclude=
=3D'usr/lib/libsvn_swig_py*' --exclude=3D'usr/include' --exclude=3D'usr/lib=
/libsvn_[a-rt-z]*' --exclude=3D'usr/lib/libsvn_subr*' --exclude=3D'usr/lib/=
ruby' --exclude=3D'usr/bin/cygsvn_swig_ruby*' --exclude=3D'usr/lib/libsvn_s=
wig_ruby*' -cjvf ${bin_pkg} * )
}
mkpatch() {
  (cd ${srcdir} && \
  find . -name "autom4te.cache" | xargs -r rm -rf ; \
  unpack ${src_orig_pkg} && \
  mv ${BASEPKG} ../${BASEPKG}-orig && \
  (cd ../${BASEPKG}-orig && \
  ./autogen.sh && \
  find . -name "autom4te.cache" | xargs rm -rf && \
  sed -e 's/relink_command=3D\\"$relink_command\\""/"/' build/ltmain.sh > g=
bs.$$.tmp && mv gbs.$$.tmp build/ltmain.sh ) && \
  cd ${topdir} && \
  diff -urN -x '.build' -x '.inst' -x '.sinst' \
    -x '*.orig' -x '*.rej' -x 'autom4te.cache' -x 'configure' -x 'build-out=
puts.mk' \
    ${BASEPKG}-orig ${BASEPKG} > \
    ${srcinstdir}/${src_patch_name} ; \
  rm -rf ${BASEPKG}-orig )
}
# Note: maintainer-only functionality
acceptpatch() {
  cp --backup=3Dnumbered ${srcinstdir}/${src_patch_name} ${topdir}
}
spkg() {
  (mkpatch && \
  if [ "${SIG}" -eq 1 ] ; then \
    name=3D${srcinstdir}/${src_patch_name} text=3D"PATCH" sigfile ; \
  fi && \
  cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} && \
  if [ -e ${src_orig_pkg}.sig ] ; then \
    cp ${src_orig_pkg}.sig ${srcinstdir}/ ; \
  fi && \
  cp $0 ${srcinstdir}/`basename $0` && \
  name=3D$0 text=3D"SCRIPT" sigfile && \
  if [ "${SIG}" -eq 1 ] ; then \
    cp $0.sig ${srcinstdir}/ ; \
  fi && \
  cd ${srcinstdir} && \
  tar cvjf ${src_pkg} * )
}
finish() {
  rm -rf ${srcdir}
}
sigfile() {
  if [ \( "${SIG}" -eq 1 \) -a \( -e $name \) -a \( \( ! -e $name.sig \) -o=
 \( $name -nt $name.sig \) \) ]; then \
    if [ -x /usr/bin/gpg ]; then \
      echo "$text signature need to be updated"; \
      rm -f $name.sig; \
      /usr/bin/gpg --detach-sign $name; \
    else \
      echo "You need the gnupg package installed in order to make signature=
s."; \
    fi; \
  fi
}
checksig() {
  if [ -x /usr/bin/gpg ]; then \
    if [ -e ${src_orig_pkg}.sig ]; then \
      echo "ORIGINAL PACKAGE signature follows:"; \
      /usr/bin/gpg --verify ${src_orig_pkg}.sig ${src_orig_pkg}; \
    else \
      echo "ORIGINAL PACKAGE signature missing."; \
    fi; \
    if [ -e $0.sig ]; then \
      echo "SCRIPT signature follows:"; \
      /usr/bin/gpg --verify $0.sig $0; \
    else \
      echo "SCRIPT signature missing."; \
    fi; \
    if [ -e ${src_patch}.sig ]; then \
      echo "PATCH signature follows:"; \
      /usr/bin/gpg --verify ${src_patch}.sig ${src_patch}; \
    else \
      echo "PATCH signature missing."; \
    fi; \
  else
    echo "You need the gnupg package installed in order to check signatures=
." ; \
  fi
}
while test -n "$1" ; do
  case $1 in
    help|--help)	help ; STATUS=3D$? ;;
    version|--version)	version ; STATUS=3D$? ;;
    prep)		prep ; STATUS=3D$? ;;
    mkdirs)		mkdirs ; STATUS=3D$? ;;
    conf)		conf ; STATUS=3D$? ;;
    configure)		conf ; STATUS=3D$? ;;
    reconf)		reconf ; STATUS=3D$? ;;
    build)		build ; STATUS=3D$? ;;
    make)		build ; STATUS=3D$? ;;
    check)		check ; STATUS=3D$? ;;
    test)		check ; STATUS=3D$? ;;
    clean)		clean ; STATUS=3D$? ;;
    install)		install ; STATUS=3D$? ;;
    list)		list ; STATUS=3D$? ;;
    depend)		depend ; STATUS=3D$? ;;
    strip)		strip ; STATUS=3D$? ;;
    package)		pkg ; STATUS=3D$? ;;
    pkg)		pkg ; STATUS=3D$? ;;
    mkpatch)		mkpatch ; STATUS=3D$? ;;
    acceptpatch)	acceptpatch ; STATUS=3D$? ;;
    src-package)	spkg ; STATUS=3D$? ;;
    spkg)		spkg ; STATUS=3D$? ;;
    finish)		finish ; STATUS=3D$? ;;
    checksig)		checksig ; STATUS=3D$? ;;
    first)		mkdirs && spkg && finish ; STATUS=3D$? ;;
    almostall)		checksig && prep && conf && build && install && \
			strip && pkg && spkg ; STATUS=3D$? ;;
    all)		checksig && prep && conf && build && install && \
			strip && pkg && spkg && finish ; STATUS=3D$? ;;
    *) echo "Error: bad arguments" ; exit 1 ;;
  esac
  ( exit ${STATUS} ) || exit ${STATUS}
  shift
done

--------------040801020606010903070600--

--------------enigC70045D86983C293E54EE6D6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRSPonr3xOW8bc2dhAQhu2wf/WHAbegREY/PNRYz+ieHYIJy1w/FgudFI
R4QJnpQYx5v8ZX/ATJrZmyDzcuJiUp1J9JmWVCVLWJ27Z5RMOKkgQ5m2XKhmQ6YT
TMtbY6dZg1Lv+FOMfwVSr9RwhC+xaWJ8kWRZqpDoPci8kqYrEJ1C3JyOJAmuA/E8
hg36gjKC2zRjJUnw4T0ogfUuTFny9HKdpABr2abho2Tpvl9y8/6py4l7bcDZdKpn
OXns/pebGI7DGXsjomLG0IdH6sXK7Vx5DSGleAN9rHwdosYsSJ9IvHgwC3sIJs3V
t88DKZxfHhRj5XDnYK9TknB8z9hhHxo87LDWe2EGJ0xmzC1TjTMAlA==
=eiNU
-----END PGP SIGNATURE-----

--------------enigC70045D86983C293E54EE6D6--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019