You are not logged in.

#1 2004-10-06 23:14:39

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

svn co in fakeroot [solution inside]

trying to checkout sometihng with svn out of fakeroot, i realized that this will not work:

# $Id: PKGBUILD,v 1.3 2004/07/25 10:25:54 damir Exp $
# Maintainer: damir <damir@archlinux.org>
# Contributor: damir <damir@archlinux.org>

pkgname=pingus-devel
pkgver=0.7.0
pkgrel=1
pkgdesc="a free Lemmings clone"
depends=('libxml2' 'clanlib')
url="http://pingus.seul.org"

source=($url/files/$pkgname-$pkgver.tar.bz2)

build() {
  mkdir cd $startdir/src/pingus-svn
  cd $startdir/src/pingus-svn
  svn checkout svn://svn.berlios.de/pingus/trunk/

  #cd $startdir/src/$pkgname-$pkgver
  #./configure --prefix=/usr
  #
  #make || return 1
  #make DESTDIR=$startdir/pkg install
}

trouble:

==> Starting build()...
svn: Can't check path '/root/.subversion': Permission denied
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...

this is logical, because fakeroot is not root, but is there a trick to make svn work inside build() of PKGBUILD?


The impossible missions are the only ones which succeed.

Offline

#2 2004-10-07 16:56:45

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: svn co in fakeroot [solution inside]

i doubt it ... well unless you want to compromise your passwd.


AKA uknowme

I am not your friend

Offline

#3 2004-10-07 17:49:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: svn co in fakeroot [solution inside]

Offline

#4 2004-10-07 18:01:08

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: svn co in fakeroot [solution inside]

Or try svn export.

I haven't had this problem with namcap or srcpac...


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-10-07 22:56:05

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: svn co in fakeroot [solution inside]

phrakture wrote:

because it needs clanlib 0.6 and we are running 0.7 (the HEAD _should_ work with 0.7)


The impossible missions are the only ones which succeed.

Offline

#6 2004-10-07 23:05:10

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: svn co in fakeroot [solution inside]

Xentac wrote:

Or try svn export.

I haven't had this problem with namcap or srcpac...

the same:

svn: Can't check path '/root/.subversion': Permission denied

The impossible missions are the only ones which succeed.

Offline

#7 2004-10-07 23:15:06

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: svn co in fakeroot [solution inside]

the problem was:

/root was drwxr-x--- and fakeroot was not able to enter it

the solution:

make /root world r and x (open the door)

the trouble: it is a security risk to let users know what is in /root ... on my private machine this does not matter, but it is not recomendend to set /root world-readable on a public machine


The impossible missions are the only ones which succeed.

Offline

#8 2004-10-08 01:31:12

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: svn co in fakeroot [solution inside]

You should just be able to set +x but not +r.  svn just needs to be able to get through /root, not look in it.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#9 2004-10-08 16:39:02

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: svn co in fakeroot [solution inside]

Xentac wrote:

You should just be able to set +x but not +r.  svn just needs to be able to get through /root, not look in it.

thanx for the tip


The impossible missions are the only ones which succeed.

Offline

#10 2005-05-20 20:22:23

Prieto
Member
From: Huelva, Spain
Registered: 2005-05-20
Posts: 4

Re: svn co in fakeroot [solution inside]

This thread is pretty old, but I think a better solution is to use the --config-dir option, optionally with --no-auth-cache.

svn --config-dir $startdir/src/$pkgname-$pkgver checkout svn://svn.berlios.de/pingus/trunk/

Offline

Board footer

Powered by FluxBB