./configure fails with python in 'sandbox'

Gour <[email protected]> Mon, 5 Nov 2007 15:23:45 +0100
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
Hi!

Yesterday I needed bibtex gui front-end while working with LyX and
immediately went to install pybliographer on my Arch x86_64 machine
but, unfortunately, it is atm 'orphan' package along with its deps and
I installed jabref which is ugly (Java app) and new version does not
work with my xmonad WM :-(

Finally, I decided to try to adapt pybliographer which worked nicely
while I was running Gentoo..

However, by inspecting present PKGBUILD script for Arch I noticed
comments in it pointing that ./configure script does not work under
'fakeroot' which is convenient/usual way to build pkgs as non-root and
the scripts adapts ugly hackery and needs more ugly 'patches'.

See eg.
http://aur.archlinux.org/packages/pybliographer/pybliographer/PKGBUILD

Similar situation with Gentoo:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/pybliographer/files/pybliographer-1.2.4-gentoo.diff?rev=1.1.1.1&view=markup

The configure script fails at #2190:

REQUIRED_PYTHON_VERSION="2.3"
REQUIRED_PYBLIO_VERSION="1.3.4"

{ echo "$as_me:$LINENO: checking python dependencies" >&5
echo $ECHO_N "checking python dependencies... $ECHO_C" >&6; }
${Python} ${srcdir}/setup-check.py ${REQUIRED_PYTHON_VERSION}
${REQUIRED_PYBLIO_VERSION} 2>&5 1>&2

result="$?"


which calls setup_check.py script and log reveals the problem:

...
configure:2139: checking for python
configure:2157: found /usr/bin/python
configure:2170: result: /usr/bin/python
configure:2188: checking python dependencies

(setup-check.py:6285): libgnomevfs-WARNING **: Unable to create
~/.gnome2 directory: Permission denied Fatal Python error: could not
import gnomevfs configure:2214: result: no
configure:2216: error: 


So, my plea to pybliographer devs is to find some workaround in
'configure' script in order to make it easier & more clean for
source-distro packages which will eventually result in wider acceptance
of the tool itself?

Sincerely,
Gour



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/