Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621826 - sci-geosciences/merkaartor 0.18.3-r1: is looking in Portage build location for plugins
Summary: sci-geosciences/merkaartor 0.18.3-r1: is looking in Portage build location fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-15 10:28 UTC by Jonathan Marten
Modified: 2018-12-29 23:52 UTC (History)
1 user (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 Jonathan Marten 2017-06-15 10:28:56 UTC
The packages builds and installs with no problems, but prints the following log messages on stderr when started:

$ merkaartor
****  "2017-06-15T11:17:11"  -- Starting  "Merkaartor 0.18.3"
------- "using Qt version 5.6.2 (built with 5.6.2)"
------- "using PROJ4 version 4.8.0"
------- "using GDAL version 2.0.2"
------- with arguments:  ("merkaartor")
PluginsDir: "/var/tmp/portage/sci-geosciences/merkaartor-0.18.3-r1/image/usr/lib64/merkaartor/plugins"
Loading plugins from directory  "plugins"
Loading plugins from directory  "plugins"
loadProjection  "/home/jjm/.merkaartor/Projections.xml"
loadProjection  "/var/tmp/portage/sci-geosciences/merkaartor-0.18.3-r1/image/usr/share/merkaartor/Projections.xml"
loadProjection  ":/Projections.xml"
loadFiltersFromFile  "/home/jjm/.merkaartor/Filters.xml"
loadFiltersFromFile  "/var/tmp/portage/sci-geosciences/merkaartor-0.18.3-r1/image/usr/share/merkaartor/Filters.xml"
loadFiltersFromFile  ":/Filters.xml"
Requesting preferences from OSM server.
Created layer "Map - None"

Looking at the lines mentioning "PluginsDir", "loadProjection" and "loadFiltersFromFile", the paths to those appear to be still pointing to the Portage build location.  Obviously, nothing is found there which means no background plugins or projection support.
Comment 1 Larry the Git Cow gentoo-dev 2018-08-05 15:37:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0553c73ec423b80b07df52b87db616d17a2f00eb

commit 0553c73ec423b80b07df52b87db616d17a2f00eb
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2018-08-05 15:34:43 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-08-05 15:37:17 +0000

    sci-geosciences/merkaartor: fix plugins path
    
    Closes: https://bugs.gentoo.org/621826
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../merkaartor-0.18.3-sharedir-pluginsdir.patch    | 28 +++++++
 .../merkaartor/merkaartor-0.18.3-r3.ebuild         | 91 ++++++++++++++++++++++
 2 files changed, 119 insertions(+)
Comment 2 Jonathan Marten 2018-09-25 07:44:02 UTC
Many thanks for the fix, but 0.18.3-r3 still seems to be looking in the wrong location for plugins:

Merkaartor(13056)/default unknown: PluginsDir: "/usr/lib64/plugins"

and no plugins are found.  This is because they are installed in subdirectories of /usr/lib64/merkaartor/plugins.

The patch below, along with the changes as in comment #1, fixes this and correctly locates the Bing background and other plugins:

--- merkaartor-0.18.3-r3.ebuild 2018-08-05 17:09:33.000000000 +0100
+++ merkaartor-0.18.3-r4.ebuild 2018-09-25 07:18:33.043545375 +0100
@@ -62,7 +62,7 @@
        eqmake5 \
                PREFIX="${ED%/}/usr" \
                LIBDIR="${ED%/}/usr/$(get_libdir)" \
-               PLUGINS_DIR="/usr/$(get_libdir)/plugins" \
+               PLUGINS_DIR="/usr/$(get_libdir)/${PN}/plugins" \
                SHARE_DIR_PATH="/usr/share/${PN}" \
                TRANSDIR_MERKAARTOR="${ED%/}/usr/share/${PN}/translations" \
                TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt5/translations" \
Comment 3 Larry the Git Cow gentoo-dev 2018-12-29 23:52:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8b45e983c4a03566e2341538f688684ea1b2c47

commit a8b45e983c4a03566e2341538f688684ea1b2c47
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-12-29 22:46:47 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-12-29 23:52:37 +0000

    sci-geosciences/merkaartor: Fix plugin path
    
    Sync 9999 with 0.18.3-r3 changes
    Drop bundled libs
    Drop obsolete pkg_preinst
    
    Thanks-to: Jonathan Marten <jjm@keelhaul.me.uk>
    Closes: https://bugs.gentoo.org/621826
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../merkaartor/merkaartor-0.18.3-r4.ebuild         | 90 ++++++++++++++++++++++
 sci-geosciences/merkaartor/merkaartor-9999.ebuild  | 16 ++--
 2 files changed, 98 insertions(+), 8 deletions(-)