You are not logged in.

#1 2008-05-23 07:19:02

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Giver

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

#2 2008-05-23 07:32:59

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Giver

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

#3 2008-05-23 07:35:27

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Giver

try inserting

export MONO_SHARED_DIR=$startdir/src/.wabi
  mkdir -p $MONO_SHARED_DIR

before the configure line.

Offline

#4 2008-05-24 09:49:57

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Giver


Be yourself, because you are all that you can be

Offline

#5 2008-08-10 22:17:15

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Giver

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

#6 2008-08-11 00:39:16

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Giver

SiD wrote:

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

Board footer

Powered by FluxBB