You are not logged in.
Pages: 1
I created a PKGBUILD for giver. http://code.google.com/p/giver/
# Contributor: Ashok Gautham <ScriptDevil@gmail.com>
pkgname=giver
pkgver=0.1.8
pkgrel=1
pkgdesc="The easiest file sharing app ever written"
arch=('i686' 'x86_64')
url="http://code.google.com/p/giver/"
license=('GPL')
depends=('mono' 'perlxml' 'gtk-sharp-2' 'gnome-sharp' 'notify-sharp')
source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz)
# md5sums=() #generate with 'makepkg -g'
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
}
The build fails when I try makepkg as a normal user
** (/usr/lib/mono/2.0/gmcs.exe:3139): CRITICAL **: _wapi_shm_file_open: shared file [/root/.wapi/shared_data-Hell-Linux-i686-312-11-0] open error: Permission denied
** (/usr/lib/mono/2.0/gmcs.exe:3139): CRITICAL **: _wapi_shm_attach: shared file [/root/.wapi/shared_data-Hell-Linux-i686-312-11-0] open error
**
** ERROR:(shared.c:346):shm_semaphores_init: assertion failed: (tmp_shared != NULL)
make[1]: *** [Giver.exe] Segmentation fault
make[1]: Leaving directory `/home/scriptdevil/builds/giver/src/giver-0.1.8/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
But when I do a sudo makepkg --asroot or when i go to the source directory and do a ./configure;make, making succeeds...
Looks like it needs a file called /root/.wapi/shared_data-Hell-Linux-i686-312-11-0 ( I suppose this is needed because of fakeroot ). But when I make as a normal user in the source directory, it is not needed
Be yourself, because you are all that you can be
Offline
Try to add this line to the build Funktion.
export MONO_SHARED_DIR=$startdir/src/
e.g.
build() {
export MONO_SHARED_DIR=$startdir/src/
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
}
EDIT:
Mybe in this case it has to be "export MONO_SHARED_DIR=$srcdir/"
P.S.
is $startdir/src the same as $srcdir ?
Last edited by SiD (2008-05-23 07:39:00)
Offline
try inserting
export MONO_SHARED_DIR=$startdir/src/.wabi
mkdir -p $MONO_SHARED_DIR
before the configure line.
Offline
Thanks. And done. Uploaded http://aur.archlinux.org/packages.php?ID=17139
Be yourself, because you are all that you can be
Offline
This looks like a really cool piece of work.
But since I've never used mono, and don't really see the need to, I'll just use pidgin with bonjour. Its good to know that more apps support zeroconf, though.
Offline
P.S.
is $startdir/src the same as $srcdir ?
Yes.
srcdir
This points to the directory where makepkg extracts or copies all source files. Although it currently is an alias for $startdir/src,
this assumption should not be assumed true for all future revisions of makepkg.pkgdir
This points to the directory where makepkg bundles the installed package (this directory will become the root directory of your
built package). Although it currently is an alias for $startdir/pkg, this assumption should not be assumed true for all future
revisions of makepkg.
Offline
Pages: 1