You are not logged in.

#1 2009-01-08 06:25:07

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

geanylua doesn't respect fakeroot [SOLVED upstream]

Hopefully this is a good place to put this.

I'm trying to work out a problem with geanylua in regards to packaging it. The code builds fine, but when it gets to the install stage, it bypasses fakeroot and goes straight for the file system. I've run into this problem before with something else, but it's been so long and I can't remember what it was. I know that this is a generic post, but I know that some of you have seen this and can point me in the right direction.

Offline

#2 2009-01-08 06:26:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,650
Website

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

You probably need to specify DESTDIR or pkdir or something like that in your install line.

Offline

#3 2009-01-08 06:40:31

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

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

make DESTDIR=$pkgdir install || return 1

This is part of a fully function PKGBUILD. All of the other Geany plug-ins build and install properly. I went as far as to mkdir -p every directory within $pkgdir that it wants to install in, and it's still trying to escape.

Offline

#4 2009-01-08 06:43:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,650
Website

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

Does the makefile actually use DESTDIR?  You are going to need to post your PKGBUILD here so we can look at it.

Offline

#5 2009-01-08 06:44:16

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

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

****The PKGBUILD was edited. I've been working with two separate versions. Oops****

pkgname=geany-plugins-svn
pkgver=371
pkgrel=1
pkgdesc="Various plugins for Geany"
arch=('i686' 'x86_64')
url="http://geany.uvena.de"
license=('GPL')
depends=('gtk2' 'geany-svn>=0.15')
# gtkspell is an optional dep for GeanyVC, enchant is a hard dep for spellcheck
makedepends=('subversion' 'libtool' 'python' 'gtkspell' 'enchant')
install=geany-plugins-svn.install

source=()
md5sums=()

_svntrunk=https://geany-plugins.svn.sourceforge.net/svnroot/geany-plugins/trunk
_svnmod=geany-plugins

build() {
  cd $startdir/src

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

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

  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build
 
  # remove any entries to disable plug-ins. geanylua does not build sanely yet.
  for i in geany-mini-script geanygdb geanylatex geanyprj geanydoc geanylua \
           geanyvc spellcheck geanylipsum geanysendmail externdbg; do


  if [ $i = "geany-mini-script" ]; then
    cd $i
    autoreconf -i
    ./configure --prefix=/usr
  elif [ $i = "geanylua" ]; then
    cd $i
    ./autogen.sh --prefix=/usr --enable-sys-install
  else
    cd $i
    ./autogen.sh --prefix=/usr
  fi
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  cd ..
 
  done

  rm -rf $startdir/src/$_svnmod-build
}

Offline

#6 2009-01-08 06:49:37

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

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

***Notice that I edited the PKGBUILD***

Here's where it's failing:

ative -mtune=native   -Wl,-soname -Wl,geanylua.so -o .libs/geanylua.so
libtool: link: ( cd ".libs" && rm -f "geanylua.la" && ln -s "../geanylua.la" "geanylua.la" )
/bin/mkdir -p /usr/lib/geany
/bin/install -c .libs/geanylua.so /usr/lib/geany
/bin/install: cannot create regular file `/usr/lib/geany/geanylua.so': Permission denied
make: *** [install-plugin] Error 1

Offline

#7 2009-01-08 07:36:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

I recommend either Makefile hackage, or doing something else until it's fixed upstream. smile

Offline

#8 2009-01-08 07:39:09

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

Re: geanylua doesn't respect fakeroot [SOLVED upstream]

tomk wrote:

I recommend either Makefile hackage, or doing something else until it's fixed upstream. smile

Here's the deal. Without --enable-sys-install, geanylua automatically installs in the users home directory in the legacy ~/.geany. All of the subversion stuff is in ~/.config/geany. It works just moving the files or editing the makefile, but it's silly that it has to be done this way.

I'll contact them on IRC and see if I can get them to do the work.

--EDIT--

This was solved upstream by the very kind eht16.

Offline

Board footer

Powered by FluxBB