When I try to install science/libkml as a dependency of graphics/gdal, 'make install' gives the following error: [..snip..] Installing libkml-1.2_4... pkg-static: libkml-1.2_4 conflicts with minizip-1.2.8_1 (installs files into the same place). Problematic file: /usr/local/lib/libminizip.a *** Error code 70 This happens, because the static library libminizip.a from science/libkml conflicts with the one of archivers/minizip, which also is installed on my boxes. archivers/minizip is needed by other ports like multimedia/vlc, emulators/mupen64plus-core, and net-im/psi. It would be nice, if we could disable the integrated minizip version of science/libkml, and use the port archivers/minizip instead. Unfortunately, my skills are not enough to prepare a patch for this :(
Hi, I have identified the problem. libkml use third party in its code; there have already been a patch for expat. The problem is that the version of MINIZIP used not only very old but modified (libkml _... in sources). I think the easiest way is to keep their version of MINIZIP renaming the libkml_minizip; care should be taken to make links with this "new" lib. Best regards.
@code, can/will you provide a patch to resolve this issue (whether make them not conflict, or add CONFLICTS)
Created attachment 168897 [details] patches to science/libkml and graphics/gdal to rename libkml's libminizip to libkmlminizip Here are my patches to science/libkml and graphics/gdal to get rid of the conflict with the libminizip library from archivers/minizip by renaming libkml's library to libkmlminizip. Notes: - I did not check which other ports besides graphics/gdal might need to be patched to live with this modified sciene/libkml. - The patches also upgrade libkml from version 1.2 to version 1.3, taken directly from the SVN repository. This should probably be fixed to use a regular release file. Apply the patches in /usr/ports. -- Martin
A commit references this bug: Author: sunpoet Date: Thu Apr 7 13:28:47 UTC 2016 New revision: 412662 URL: https://svnweb.freebsd.org/changeset/ports/412662 Log: - Resolve conflict with archivers/minizip: rename libminizip to libkmlminizip - Bump PORTREVISION for science/libkml shlib change PR: 206560 (based on) Submitted by: Martin Birgmeier <la5lbtyi@aon.at> Changes: head/graphics/gdal/Makefile head/science/libkml/Makefile head/science/libkml/files/patch-examples-helloworld-Makefile.am head/science/libkml/files/patch-src-kml-base-Makefile.am head/science/libkml/files/patch-third_party-Makefile.am head/science/libkml/pkg-plist
Library renaming committed. Thanks!