Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685234 - sci-geosciences/merkaartor-0.18.3-r4 cannot compile with the new sci-libs/proj-6.0.0
Summary: sci-geosciences/merkaartor-0.18.3-r4 cannot compile with the new sci-libs/pr...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
Whiteboard: workaround
Keywords: NeedPatch
: 685526 (view as bug list)
Depends on:
Blocks: PROJ-8
  Show dependency tree
Reported: 2019-05-06 21:43 UTC by PhobosK
Modified: 2020-07-01 11:50 UTC (History)
3 users (show)

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

merkaartor-0.18.3-r4.ebuild.patch (merkaartor-0.18.3-r4.ebuild.patch,772 bytes, patch)
2019-05-06 21:43 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PhobosK 2019-05-06 21:43:03 UTC
Created attachment 575438 [details, diff]

The new sci-libs/proj-6.0.0 is preparing for v. 7.0.0 where the usage of proj_api.h will be deprecated, so now at version 6.0.0 an error occurs when trying to use it.
Packages must be updated properly upstream, but till that happens a way to fix this is to append the necessary flags.

The sci-geosciences/merkaartor-0.18.3-r4 package gives the error too:
In file included from common/Projection.h:12:0,
                 from common/MapView.h:4,
                 from Features/Feature.h:8,
                 from Features/Features.h:2,
                 from Backend/MemoryBackend.h:4,
                 from common/Global.h:19,
                 from common/Global.cpp:13:
/usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
 #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'

I am uploading a proposed fix for the ebuild tested to be working OK ...
Comment 1 Amy Liffey gentoo-dev 2019-06-30 07:06:20 UTC
*** Bug 685526 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2019-06-30 07:18:51 UTC
The bug has been closed via the following commit(s):

commit 7fee9321d16014b12fe82a608c79f860dba68a61
Author:     Amy Liffey <>
AuthorDate: 2019-06-30 07:17:40 +0000
Commit:     Amy Liffey <>
CommitDate: 2019-06-30 07:18:42 +0000

    sci-geosciences/merkaartor: fix compilation with proj-6.0.0
    Submitted-by: <>
    Signed-off-by: Amy Liffey <>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 sci-geosciences/merkaartor/merkaartor-0.18.3-r4.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 3 Andreas Sturmlechner gentoo-dev 2020-06-22 08:38:23 UTC
Re-opening as a workaround is no fix and it is running out of time.