libqof variables in configure.in (Fwd: gentoo ebuild)
Christian Stimming
stimming at tuhh.de
Mon Jan 9 02:58:44 EST 2006
Forwarding Neil's answer to list.
Neil Williams schrieb:
> On Sunday 08 January 2006 9:24 pm, you wrote:
>
>>Hi Neil,
>
>
> Hi.
>
>
>>someone on the gnucash-de list tries to create a gentoo ebuild for
>>gnucash-SVN.
>
>
> And it looks like they have not got the packaging correct.
> :-(
>
> I suggest hinting DESTDIR, e.g. a Fink build uses
> InstallScript: <<
> make install DESTDIR=%d
> <<
>
> No idea what the syntax would be for gentoo but pilot-qof is the same. (and
> don't get me started on pilot-link!!)
>
>
>>Gentoo portage tries to build and install everything in a sandbox
>>directory.
>
>
> QOF works fine in such environments - the path is NOT hardcoded, it's
> dependent on the --prefix so it follows the prescribed pattern.
>
>
>>In his case this got an error (copy below) on installing the
>>qsfschema_DATA files in lib/libqof/backend/file , because they were about
>>to be installed in an absolute path instead of something below the
>>sandbox's $prefix. I checked configure.in and saw the definition of the
>>absolute path in QOF_XML_DIR.
>
>
> It is not absolute, it uses the $prefix value - precisely as it should.
>
> An absolute path wouldn't work on OSX which is where QOF and pilot-qof work
> just fine.
> (Far easier than gnucash ever could!)
> :-)
>
>
>>Can this please be changed?
>
>
> Not currently.
>
>
>>The change would
>>be as below. (Side note: If it isn't changed, it will most probably also
>>break things like make distcheck or rpmbuild.)
>
>
> It does not, I've packaged QOF using this setting using Debian, RPM and Fink
> without any complaints, including using chroot environments.
>
>
>> if test x$QOF_XML_DIR = x; then
>> AC_MSG_RESULT([no, will use internal QOF code])
>>- QOF_LIB_DIR=`eval echo $libdir | sed "s%^NONE%$prefix%"`
>>- QOF_LIB_DIR=`eval echo $QOF_LIB_DIR | sed "s%^NONE%$prefix%"`
>>+ QOF_LIB_DIR="\${libdir}"
>
>
> Doesn't work. That is the first thing I tried. In case you didn't notice, the
> first line uses the value in $libdir and then does some basic syntax checking
> - that's all it does.
>
>
>> QOF_CFLAGS="-I\${top_srcdir}/lib/libqof/qof"
>> QOF_LIBS="\${top_srcdir}/lib/libqof/qof/libqof.la"
>> # QOF_LIB_DIR=`eval echo ${libdir}`
>> QOF_VERSION="internal"
>> QOF_PREFIX="internal"
>>- QOF_XML_DIR=`eval echo ${datadir}/xml/qsf`
>>+ QOF_XML_DIR="\${datadir}/xml/qsf"
>
>
> And what do you think that change would achieve?
>
> Maybe the package maintainer needs to specify DESTDIR to make install. That
> was required for Fink - and not just for the schema either.
>
> Your original premise in inaccurate - the problem does not exist as portrayed.
> If this was a bug report, I'd tag it "won't fix" and close it.
>
More information about the gnucash-devel
mailing list