#16368: Build of libm4ri autodetects system libpng instead of sage libpng
----------------------------------------+------------------------
Reporter: stephen | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-6.3
Component: build | Resolution:
Keywords: pkg-config pkgconfig | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------------------+------------------------
Changes (by leif):
* keywords: => pkg-config pkgconfig
* priority: major => critical
* component: porting: BSD => build
Old description:
> When building sage-6.2 under FreeBSD, the configure script in libm4ri
> links to the system libpng rather than the sage libpng. If the system
> libpng is a different version (e.g. in FreeBSD it is version 1.5 instead
> of 1.2), then many of the tests fail.
>
> It can be fixed by this simple patch, which tells the configure script
> where to find libpng.pc.
>
> {{{
> --- build/pkgs/libm4ri/spkg-install-orig 2014-05-16
> 18:34:53.000000000 +0000
> +++ build/pkgs/libm4ri/spkg-install 2014-05-16 18:48:25.000000000
> +0000
> @@ -54,6 +54,7 @@
>
> cd $ROOT_DIR/src/
>
> +env PKG_CONFIG_LIBDIR=$SAGE_LOCAL/lib/pkgconfig \
> ./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"
> $ENABLE_DEBUG $DISABLE_SSE2
>
> if [ $? -ne 0 ]; then
> }}}
New description:
When building sage-6.2 under FreeBSD, the configure script in libm4ri
links to the system libpng rather than the sage libpng. If the system
libpng is a different version (e.g. in FreeBSD it is version 1.5 instead
of 1.2), then many of the tests fail.
It can be fixed by this simple patch, which tells the configure script
where to find libpng.pc.
{{{
#!patch
--- build/pkgs/libm4ri/spkg-install 2014-05-16 18:34:53.000000000
+0000
+++ build/pkgs/libm4ri/spkg-install 2014-05-16 18:48:25.000000000
+0000
@@ -54,6 +54,7 @@
cd $ROOT_DIR/src/
+env PKG_CONFIG_LIBDIR=$SAGE_LOCAL/lib/pkgconfig \
./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"
$ENABLE_DEBUG $DISABLE_SSE2
if [ $? -ne 0 ]; then
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16368#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.