You are not logged in.

#1 2009-08-21 02:40:57

agravier
Member
Registered: 2009-08-21
Posts: 18

PKGBUILD with authenticated access to SVN repo

Hi everyone. I just switched from Gentoo to Arch (resisting the masochist temptation of Exherbo).

My first step after installation and configuration of everything was to create a PKGBUILD fulfilling my software needs. I use Emergent at my work.

I wrote the following, based on the template which I found on the wiki for svn access, and based on what I found on the forum for authentication:

# Maintainer: Alexandre Gravier <alexandre.gravier+archlinux@gmail.com>

pkgname=emergent-svn
pkgver=4058
pkgrel=1
pkgdesc="Emergent neural simulator"
arch=(i686 x86_64)
url="http://grey.colorado.edu/emergent/index.php/"
license=("GPL")
depends=(readline gsl qt4 ode simage soqt coin libsndfile)
makedepends=(subversion cmake)

# don't use install=install-script.sh
source=()
md5sums=()

_svntrunk=http://grey.colorado.edu/svn/emergent/emergent/trunk
_svnmod=emergent
_svnuser=anonymous
_svnpass=emergent

build() {
  cd ${srcdir}

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r --username $_svnuser --password $_svnpass $pkgver)
  else
    svn co --username $_svnuser --password $_svnpass --config-dir ./ -r $pkgver $_svntrunk $_svnmod
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build

  ./configure --prefix=/usr
  cd build
  make || return 1
  make DESTDIR=${pkgdir} install || return 1

  rm -rf ${srcdir}/$_svnmod-build
}

But it doesn't work:

agravier ~/src_builds/own/emergent  $ makepkg
==> Determining latest svn revision...
Authentication realm: <http://grey.colorado.edu:80> Subversion repository
Password for 'agravier':
^C
==> ERROR: Aborted by user! Exiting...
agravier ~/src_builds/own/emergent  $

The thread talking about SVN authentication ends with someone suggesting to submit a patch to let makepkg take authentication variables into account, but he underlines that this patch may never be accepted. (the two other options, ask the repo maintainer to remove the auth requirement or do some blur and unlikely hack are, well, not realistic).

So, did anyone encounter this same issue and how did they solve it?

Thanks

Last edited by agravier (2009-08-21 02:48:43)

Offline

#2 2009-08-22 16:31:48

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: PKGBUILD with authenticated access to SVN repo

Welcome to the forum and in Archlinux, agrevier!

Can it work if you try to install it manuallt following this steps ?
http://grey.colorado.edu/emergent/index … 28Linux%29

Maybe you didn't install some previous neccesary package.

Offline

#3 2009-08-22 17:29:30

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: PKGBUILD with authenticated access to SVN repo

An explanation of why it's failing is here:

http://bbs.archlinux.org/viewtopic.php?id=73259

Offline

#4 2009-08-23 07:10:53

agravier
Member
Registered: 2009-08-21
Posts: 18

Re: PKGBUILD with authenticated access to SVN repo

Hi djszapi and skottish,

Thank you for your replies.

djszapi:
This script indeed works. I use a non-PKGBUILD installation of Emergent right now, based on the last step of this script (modified to install all in my home folder).
I had the dependencies installed, I used the AUR smile.

skottish:
Thank you for your reply. This post is indeed the one I reference in my OP. I came on #pacman-dev to propose my help in implementing support for SVN authentication, which I hope I will do next week. If I don't, that's that I couldn't find time... I didn't save the chat log though (silly me), but I think I remember being asked to checkout http://projects.archlinux.org/git/pacman.git/ and propose a patch to someone, but I'll just post it here maybe.

edit: that was #archlinux-pacman not #pacman-dev

Last edited by agravier (2009-08-23 09:58:17)

Offline

Board footer

Powered by FluxBB