On Sat, Aug 2, 2008 at 7:34 PM, Mark Phippard <markphip_at_gmail.com> wrote:
> On Sat, Aug 2, 2008 at 5:57 PM, Robert Dailey <rcdailey_at_gmail.com> wrote:
>
> > When I run "svn", I get the following:
> >
> > svn: warning: cannot set LC_CTYPE locale
> > svn: warning: environment variable LANG is en_US.utf8
> > svn: warning: please check that your locale name is correct
> >
> >
> > I built SVN on Archlinux using ABS, so I'm not sure what to do about
> this.
> > Thanks in advance for help
>
> We used to get this error when we built SVN statically. Did you
> perhaps do that?
I can't be sure, I'm still a newbie at linux. When I built SVN from source
it used to be the simple "make", "make install" and that worked just fine.
Now that I'm building through Archlinux's ABS, the build script is very
complex and hard to read (Bash is naturally ugly to me). I'll paste the
script below, which is in control of how things are built. Take a look at
the build() function. Not sure what "make external-all" is doing. How would
one build statically in the first place?
# $Id: PKGBUILD 4786 2008-07-10 09:01:34Z pierre $
# Contributer: Jason Chu <jason_at_archlinux.org>
# Maintainer: Jason Chu <jason_at_archlinux.org>
pkgname=subversion
pkgver=1.5.1
pkgrel=5
pkgdesc="Replacement for CVS, another versioning system (svn)"
arch=(i686 x86_64)
license=('apache' 'bsd')
depends=('neon>=0.28.2-2' 'apr-util>=1.3.2-2')
makedepends=('heimdal>=1.2' 'db>=4.7' 'apache>=2.2.9-3' 'python>=2.5.2-4'
'perl>=5.10.0-3' 'swig>=1.3.31' 'jdk' 'jre' 'ruby'
'autoconf')
source=(http://subversion.tigris.org/downloads/${pkgname}-${pkgver}.tar.gz
svnserve svn svnserve.conf subversion-neon.patch)
md5sums=('37533b0435caaa3e4e1be359389fcbb9'
'c5a2e490b3e58c6bd2ca3a2e72b71845'
'a0db6dd43af33952739b6ec089852630'
'c459e299192552f61578f3438abf0664'
'f869289684b394840e10908c89460303')
backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
url="http://subversion.tigris.org/"
provides=('svn')
options=('!makeflags' 'libtool')
build() {
cd $startdir/src/${pkgname}-${pkgver}
[ -z "${J2REDIR}" ] && . /etc/profile.d/jre.sh
[ -z "${J2SDKDIR}" ] && . /etc/profile.d/jdk.sh
# patch from gentoo
patch -Np1 -i $startdir/src/subversion-neon.patch
sed -e 's/\(NEON_ALLOWED_LIST=.* 0.26.4\)"/\1 0.27.2 0.28.0 0.28.1
0.28.2"/' -i configure.in
# libtoolize --force --copy
# aclocal -I build/ac-macros
# autoconf
autoreconf
./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr
--with-zlib=/usr --with-neon=/usr --with-apxs --enable-javahl
--with-jdk=/opt/java
(make external-all && make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all )
|| return 1
export LD_LIBRARY_PATH=$startdir/pkg/usr/lib:$LD_LIBRARY_PATH
make DESTDIR=$startdir/pkg install || return 1
make DESTDIR=$startdir/pkg swig-py || return 1
make install-swig-py DESTDIR=$startdir/pkg || return 1
mkdir -p $startdir/pkg/usr/lib/python2.5
mv $startdir/pkg/usr/lib/svn-python/
$startdir/pkg/usr/lib/python2.5/site-packages
mkdir -p $startdir/pkg/usr/share/subversion
install -d -m 755 tools/hook-scripts $startdir/pkg/usr/share/subversion/
rm -f $startdir/pkg/usr/share/subversion/hook-scripts/*.in
make DESTDIR=$startdir/pkg swig-pl || return 1
make install-swig-pl DESTDIR=$startdir/pkg INSTALLDIRS=vendor || return 1
rm -f $startdir/pkg/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist
rm -rf $startdir/pkg/usr/lib/perl5/core_perl
make DESTDIR=$startdir/pkg swig-rb || return 1
make install-swig-rb DESTDIR=$startdir/pkg || return 1
make DESTDIR=$startdir/pkg javahl || return 1
make DESTDIR=$startdir/pkg install-javahl || return 1
mkdir -p $startdir/pkg/etc/rc.d
mkdir -p $startdir/pkg/etc/xinetd.d
mkdir -p $startdir/pkg/etc/conf.d
install -m 755 $startdir/src/svnserve $startdir/pkg/etc/rc.d
install -m 644 $startdir/src/svn $startdir/pkg/etc/xinetd.d
install -m 644 $startdir/src/svnserve.conf
$startdir/pkg/etc/conf.d/svnserve
install -m 755
$startdir/src/subversion-$pkgver/contrib/client-side/svnmerge.py
$startdir/pkg/usr/bin/svnmerge
install -D -m 644 $startdir/src/subversion-$pkgver/COPYING
$startdir/pkg/usr/share/licenses/$pkgname/LICENSE
#libtoolslay not all because of kdesdk
find ${startdir}/pkg/usr/lib/httpd/modules -name '*.la' -exec rm {} \;
find ${startdir}/pkg/usr/lib/ruby -name '*.la' -exec rm {} \;
find ${startdir}/pkg/usr/lib/python2.5 -name '*.la' -exec rm {} \;
}
Received on 2008-08-03 02:59:33 CEST