On 06/10/10 04:06 PM, Willem Jan Palenstijn wrote:
On Thu, Jun 10, 2010 at 01:32:19PM +0100, Dr. David Kirkby wrote:
On 06/10/10 01:19 PM, Jason Grout wrote:
I've posted the update to http://trac.sagemath.org/sage_trac/ticket/9202

Actually, I'm pretty sure I fixed the issue in this thread with the new
spkg (see my other message in this thread for a discussion of what the
issue is, or see the hg commit log in the new spkg). I also removed
another solaris-specific patch that we apply, that I'm pretty sure is
obsolete as of a year ago or so.

Can you check the new spkg on Solaris and let us know if there are any
problems?

Thanks,

Jason

No, it has not fixed it. Leaving pkg-config working, matplotlib reports version

REQUIRED DEPENDENCIES
                  numpy: 1.3.0
              freetype2: 9.7.3


Are you really sure that using PKG_CONFIG_PATH doesn't fix that?

i.e., if you have the file 
/export/home/drkirkby/32/sage-4.4.3/local/lib/pkgconfig/freetype2.pc, then

$ export PKG_CONFIG_PATH=/export/home/drkirkby/32/sage-4.4.3/local/lib/pkgconfig
$ pkg-config --modversion freetype2

Yes, sorry, that is working. Not sure what I typed before, but that does work.

rkir...@redstart:~$ grep Version /export/home/drkirkby/32/sage-4.4.3/local/lib/pkgconfig/freetype2.pc
Version: 9.16.3
drkir...@redstart:~$ export PKG_CONFIG_PATH=/export/home/drkirkby/32/sage-4.4.3/local/lib/pkgconfig
drkir...@redstart:~$ pkg-config --modversion freetype2
9.16.3
drkir...@redstart:~$

I could have swore I set that before! I apologise for the confusion.


$ ./sage -f matplotlib-0.99.3 | grep freetype2:
             freetype2: 9.16.3



should really return 9.16.3. If it doesn't, I think we should try to figure out
why not, rather than add hack upon hack...

Sorry about that.

In general I think it would make a lot of sense to set PKG_CONFIG_PATH in
sage-env.  In any case we could set it in the matplotlib spkg-install if that
helps.

It sounds to me that we should set it in sage-env, since there are several packages which get built in Sage whose .pc files reside in $SAGE_LOCAL/lib/pkgconfig.

drkir...@redstart:~/32/sage-4.4.3$ ls local/lib/pkgconfig
bdw-gc.pc        gnutls.pc        libpng12.pc      pynac.pc
freetype2.pc     gsl.pc           libR.pc          sqlite3.pc
gnutls-extra.pc  libpng.pc        opencdk.pc

This could mean several packages are picking up the wrong versions of software, if they make use of pkgconfig

Note however pkgconfig does not appear to be on OS X (or at least in the version of OS X on bsd.math).


[kir...@bsd ~]$ uname -a
Darwin bsd.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 i386 MacPro1,1 Darwin
[kir...@bsd ~]$ pkgconfig
-bash: pkgconfig: command not found

though pkg-config exists on both Solaris (even my March 2005 release) and Linux systems.

So what will happen on Linux?


-Willem Jan


Thank you for your help Willem

Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to