You are not logged in.
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
You probably need to specify DESTDIR or pkdir or something like that in your install line.
Offline
make DESTDIR=$pkgdir install || return 1This 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
Does the makefile actually use DESTDIR? You are going to need to post your PKGBUILD here so we can look at it.
Offline
****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
***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
I recommend either Makefile hackage, or doing something else until it's fixed upstream. ![]()
Offline
I recommend either Makefile hackage, or doing something else until it's fixed upstream.
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