Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - g2

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: g2 0.72-4

Git Clone URL: https://aur-dev.archlinux.org/g2.git (read-only)
Package Base: g2
Description: 2D graphics library; can be used with C, C++, Fortran to generate flow charts.
Upstream URL: http://sourceforge.net/projects/g2/?source=directory
Licenses: GPL
Submitter: None
Maintainer: haawda
Last Packager: haawda
Votes: 5
Popularity: 0.000000
First Submitted: 2005-08-17 13:41
Last Updated: 2015-06-08 22:22

Latest Comments

haawda commented on 2014-09-16 18:13

Thanks, fixed.

aggraef commented on 2014-09-16 15:39

Stopped working again (fails in configure). Needs a minor fix in the build routine of the PKGBUILD to make it work again:

./configure --prefix=/usr CFLAGS="-fPIC"

aggraef commented on 2013-09-06 23:14

Works, thanks!

haawda commented on 2013-09-06 17:52

Thanks for the patch. It was applied.

aggraef commented on 2013-09-06 13:54

I've uploaded a source package with updated pkgbuild and minimal patch here: https://docs.google.com/file/d/0BxN7ba9f7QU8RUNrT3doYTNqdjA/edit?usp=sharing

aggraef commented on 2013-09-06 08:03

Alas, this build doesn't work for me. At the very least, you should patch Makefile.in to include @LIBS@ in the link command (Makefile.in:97):

libg2.@LD_SHARED_EXT@: $(OBJ)

Otherwise the shared library cannot be loaded by dlopen without manually loading all the libraries in @LIBS@ first, which is really awkward.

Also, you need to fix up the last two commands in package() as follows:

install -Dm755 libg2.so.0.$pkgver $pkgdir/usr/lib/libg2.so.0.$pkgver
ln -s /usr/lib/libg2.so.0.$pkgver $pkgdir/usr/lib/libg2.so

The execute bit isn't really essential, but the libg2.so link definitely needs to go to the *real* /usr/lib directory, not the staged $(pkgdir)/usr/lib directory.

With these changes in place your package works for me.

haawda commented on 2013-09-05 19:23

Please test $pkgrel -2. I think we do not need a patchfile here.

aggraef commented on 2013-09-04 21:27

Hi Stefan, would you consider updating this package so that it also installs libg2 as a shared library? I need this for the pure-g2 module of my Pure programming language which also has packages here on AUR. For the time being, I've uploaded an updated package here: https://aur.archlinux.org/packages/g2-fpic/. But of course it would be nice if you could update your package instead.