pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

graphics/inkscape in NetBSD 9.2



Hello,

I've been trying to resolve a couple issues building graphics/inkscape
on NetBSD 9.2/amd64:

* src/object/sp-use.cpp (by way of sp-use-reference.h) fails to compile
  properly. This has already been fixed upstream, although not in any
  release yet. The merge request with this change is at
  https://gitlab.com/inkscape/inkscape/-/merge_requests/3345.

* CMake is trying to link with -lstdc++fs, which doesn't exist on at
  least my install. Commenting out the relevant line in CMakeScripts
  works as a workaround, but will probably break support for any other
  platform or if GCC 8 is used.

I've attached both patches I used for reference. I feel the first one
can be committed, but I was hoping someone with more CMake and/or pkgsrc
experience might have a better idea for the second that won't cause more
breakage.
$NetBSD$

Fix compile error. From upstream pull request
(https://gitlab.com/inkscape/inkscape/-/merge_requests/3345)

--- src/object/sp-use-reference.h.orig	2021-08-19 19:35:17.149195160 +0000
+++ src/object/sp-use-reference.h
@@ -14,11 +14,10 @@
 
 #include "sp-item.h"
 #include "uri-references.h"
+#include "display/curve.h"
 
 #include <memory>
 
-class SPCurve;
-
 namespace Inkscape {
 namespace XML {
 class Node;
$NetBSD$

Don't attempt to link with libstdc++fs (works on NetBSD 9.2, will
probably break everything else).

--- CMakeScripts/DefineDependsandFlags.cmake.orig	2021-08-19 23:27:00.930415468 +0000
+++ CMakeScripts/DefineDependsandFlags.cmake
@@ -299,7 +299,7 @@ endif()
 find_package(Boost 1.19.0 REQUIRED COMPONENTS filesystem)
 
 if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
-    list(APPEND INKSCAPE_LIBS "-lstdc++fs")
+#    list(APPEND INKSCAPE_LIBS "-lstdc++fs")
 endif()
 
 list(APPEND INKSCAPE_INCS_SYS ${Boost_INCLUDE_DIRS})


Home | Main Index | Thread Index | Old Index