Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387673 - sci-geosciences/mapnik 2.0 released
Summary: sci-geosciences/mapnik 2.0 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Steve Arnold
URL: http://mapnik.org/news/2011/sep/26/re...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 12:49 UTC by Jean-Claude Repetto
Modified: 2012-04-21 16:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2011-10-19 12:49:01 UTC
The Mapnik team is pleased to announce that Mapnik 2.0 is finally here!

See : http://mapnik.org/news/2011/sep/26/release_2_0/
The source code is available at : http://prdownload.berlios.de/mapnik/mapnik-2.0.0.tar.bz2

Reproducible: Always
Comment 1 Raphaël Droz 2011-10-23 12:28:15 UTC
In case it helps, here is an ebuild for -9999:
https://gitorious.org/drzraf/gentoo/blobs/master/sci-geosciences/mapnik/mapnik-9999.ebuild
Comment 2 Jean-Claude Repetto 2011-10-24 14:17:49 UTC
Thanks for the ebuild.
Unfortunately, there is a problem during install :

>>> Install mapnik-9999 into /var/tmp/portage/sci-geosciences/mapnik-9999/image/ category sci-geosciences
scons install
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".

Welcome to Mapnik...

*********************************************
You are compiling Mapnik trunk (aka Mapnik2)
See important details at:
http://trac.mapnik.org/wiki/Mapnik2
*********************************************

scons: done reading SConscript files.
scons: Building targets ...
Install file: "src/libmapnik2.so" as "/usr/lib64/libmapnik2.so.2.0.0"
ACCESS DENIED  open_wr:      /usr/lib64/libmapnik2.so.2.0.0
scons: *** [/usr/lib64/libmapnik2.so.2.0.0] /usr/lib64/libmapnik2.so.2.0.0: Permission denied
scons: building terminated because of errors.
 * ERROR: sci-geosciences/mapnik-9999 failed (install phase):
 *   escons failed.
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 2890:  Called escons 'install'
 *   environment, line 1770:  Called die
 * The specific snippet of code:
 *       [[ ${ret} -ne 0 && ${EAPI:-0} -ge 4 ]] && die "escons failed.";
 * 
 * If you need support, post the output of 'emerge --info =sci-geosciences/mapnik-9999',
 * the complete build log and the output of 'emerge -pqv =sci-geosciences/mapnik-9999'.
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/mapnik-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/mapnik-9999/temp/environment'.
 * S: '/var/tmp/portage/sci-geosciences/mapnik-9999/work/mapnik-9999'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-5888.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib64/libmapnik2.so.2.0.0
A: /usr/lib64/libmapnik2.so.2.0.0
R: /usr/lib64/libmapnik2.so.2.0.0
C: python2 /usr/bin/scons install 
--------------------------------------------------------------------------
Comment 3 Steve Arnold archtester gentoo-dev 2011-11-14 01:21:52 UTC
mapnik2 is now in the tree, but it's currently masked since it will break gpsdrive.  If you don't use gpsdrive, then please unmask mapnik2 and give it a try.
Comment 4 Raphaël Droz 2011-12-17 17:23:32 UTC
Could we reopen this so we can discuss this new ebuild ?

1) the URL about the release is now http://mapnik.org/news/2011/09/26/release_2_0/

2) the scons script rebuilds the whole at each run, this is suboptimal: try to run ebuild mapnik-2.0.0.ebuild twice (or even `scons shared=1` twice in the source directory)

3) should we make osm a useflag or use a MAPNIK_plugins useflag mechanism so that, eg, libcurl dep' depends on "osm" format activation ?

4) I didn't though enough before using the "nobfonts" semantic. I think it would be better to invert this: a "bundled-font" useflag defaulting to "off" ?

5) I don't understand the scons ${MAKEOPTS} shared=1 (especially the presence of MAKEOPTS here) in src_compile()

6) could we stay away from patching SConstruct if possible and rather using scons parameters (like I did in the original ebuild for PROJ_LIBS and PROJ_INCLUDE). It's probably proper in the long-run.

7) why does the patch introduce AGG_LIBS ? can't we rely on INTERNAL_LIBAGG (which seems to use pkg-config) ?

8) we may avoid some ebuild customizations using LINK_PRIORITY to override DEFAULT_LINK_PRIORITY.
Comment 5 Raphaël Droz 2012-04-21 16:25:37 UTC
these issues are still to be resolved (see also open bugs against 2.0 in the bugtracker).
I would add that there are problems related to boost version selection as it seems that :
1° ebuild request >= 1.48
2° scons search for > 1.41
3° whatever BOOST* variables passed to scons, it appears (at least for me) that 1.46 is always selected (while I do have both 1.46 and 1.48 installed).

The double-compilation (confirmed in bug #397421) and the impossibility to resume a build are especially annoying.