Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238959 - app-misc/gpsdrive-2.10_pre5: disabled mapnik use flag causes build failure
Summary: app-misc/gpsdrive-2.10_pre5: disabled mapnik use flag causes build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-28 16:57 UTC by Maciej Pawlik
Modified: 2008-11-02 03:39 UTC (History)
4 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 Maciej Pawlik 2008-09-28 16:57:58 UTC
From gpsdrive-2.10_pre5.ebuild:
 54     use mapnik && sed -i -e "s:truetype/ttf-dejavu:dejavu:g" \
 55         tests/{gpsdriverc,gpsdriverc-in,gpsdriverc-pre} \
 56         src/gpsdrive_config.c || die "sed failed"

The 'and' operation is evaluated first, causing build to fail unless mapnik use flag is enabled. The problem can be solved by a pair of parenthesis around the sed and die part.

Reproducible: Always

Steps to Reproduce:
1. emerge gpsdrive

Actual Results:  
root@laptok ~# emerge -v gpsdrive 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] app-misc/gpsdrive-2.10_pre5 [2.09-r1] USE="dbus%* -debug% -doc% -gdal% -mapnik% -scripts% (-garmin%) (-mysql%)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-misc/gpsdrive-2.10_pre5
 * gpsdrive-2.10pre5.tar.gz RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking gpsdrive-2.10pre5.tar.gz to /var/tmp/portage/app-misc/gpsdrive-2.10_pre5/work
 * Applying gpsdrive-drawmarkers-remove.patch ...                         [ ok ]
 * 
 * ERROR: app-misc/gpsdrive-2.10_pre5 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_unpack
 * environment, line 2216:  Called die
 * The specific snippet of code:
 * use mapnik && sed -i -e "s:truetype/ttf-dejavu:dejavu:g" tests/{gpsdriverc,gpsdriverc-in,gpsdriverc-pre} src/gpsdrive_config.c || die "sed failed";
 * The die message:
 * sed failed
Comment 1 Jesse Adelman 2008-09-30 06:01:23 UTC
Fix above confirmed to work - compiling now.
Comment 2 Jesse Adelman 2008-09-30 06:03:13 UTC
Ah, and 2.10_pre6 is out, btw. Thanks.
Comment 3 Neil Skrypuch 2008-10-19 04:08:36 UTC
I just hit this now. The fix seems straightforward, is there a reason it hasn't been applied yet?
Comment 4 Travis Morgan 2008-10-23 15:32:02 UTC
Ran into this today too.. Bump.
Comment 5 Steve Arnold archtester gentoo-dev 2008-11-02 03:39:52 UTC
This is fixed, along with a mapnik update (separate issue).