pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/58339 (cad/kicad fails without wayland being installed)
The following reply was made to PR pkg/58339; it has been noted by GNATS.
From: Rob Whitlock <rwhitlock22%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: bsiegert%netbsd.org@localhost,
pkgsrc-bugs%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost
Subject: Re: pkg/58339 (cad/kicad fails without wayland being installed)
Date: Sat, 14 Dec 2024 17:14:04 -0500
> On Dec 9, 2024, at 4:21 PM, bsiegert%netbsd.org@localhost wrote:
>=20
> Synopsis: cad/kicad fails without wayland being installed
>=20
> State-Changed-From-To: open->closed
> State-Changed-By: bsiegert%NetBSD.org@localhost
> State-Changed-When: Mon, 09 Dec 2024 21:21:55 +0000
> State-Changed-Why:
> Patch applied, thanks!
There were recent changes updating the kicad pkgsrc makefile to use the =
new version of the cmake interface but the patch wasn't updated for =
that. Here's a patch that handles that:
Index: options.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/cad/kicad/options.mk,v
retrieving revision 1.4
diff -u -r1.4 options.mk
--- options.mk 9 Dec 2024 21:20:52 -0000 1.4
+++ options.mk 14 Dec 2024 22:11:06 -0000
@@ -15,7 +15,7 @@
=20
.if !empty(PKG_OPTIONS:Mwayland)
. include "../../devel/wayland/buildlink3.mk"
-CMAKE_ARGS+=3D -DKICAD_WAYLAND=3DON
+CMAKE_CONFIGURE_ARGS+=3D -DKICAD_WAYLAND=3DON
# This conditional matches the conditional in Makefile
# so that it's effectively a test for whether
# KICAD_USE_EGL is enabled.
@@ -25,5 +25,5 @@
PKG_FAIL_REASON+=3D "for KICAD_WAYLAND in CMakeLists.txt."
. endif
.else
-CMAKE_ARGS+=3D -DKICAD_WAYLAND=3DOFF
+CMAKE_CONFIGURE_ARGS+=3D -DKICAD_WAYLAND=3DOFF
.endif
Without it the following error occurss when trying to build without the =
wayland option:
=3D> Bootstrap dependency digest>=3D20211023: found digest-20220214
=3D=3D=3D> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb =
fetch-pkg-vulnerabilities'.
=3D=3D=3D> Building for kicad-8.0.6
[ 0%] Built target glew
[ 1%] Built target metadata
[ 1%] Built target clipper
[ 1%] Built target delaunator
[ 1%] Built target clipper2
[ 1%] Built target dxflib_qcad
[ 2%] Built target fmt
[ 2%] Built target lemon
[ 3%] Built target libcontext
[ 3%] Creating image archive =
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/cmake-pkgsrc-build/resources/images=
.tar.gz
[ 3%] Built target nanodbc
[ 3%] Built target nanosvg
[ 3%] Built target markdown_lib
[ 3%] Built target othermath
[ 3%] Built target potrace
[ 3%] Built target tinyspline_lib
[ 3%] Built target TDxNavlib
[ 3%] Built target nlohmann_json_schema_validator
[ 3%] Built target core
[ 3%] Linking CXX static library libsexpr.a
[ 3%] Generating version string header
-- Found Git: /usr/pkg/bin/git (found version "2.47.1")
-- Using Git to determine build version string.
[ 3%] Building CXX object =
libs/kiplatform/CMakeFiles/kiplatform.dir/gtk/ui.cpp.o
-- git describe returned error 128: fatal: not a git repository (or any =
of the parent directories): .git
-- git rev-parse returned error 128: fatal: not a git repository (or any =
of the parent directories): .git
-- git rev-list --count returned error 128: fatal: not a git repository =
(or any of the parent directories): .git
-- Not updating =
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/cmake-pkgsrc-build/kicad_build_vers=
ion.h
[ 3%] Built target sexpr
[ 3%] Built target version_header
[ 3%] Building CXX object =
3d-viewer/3d_cache/sg/CMakeFiles/kicad_3dsg.dir/sg_base.cpp.o
[ 3%] Building CXX object =
libs/kimath/CMakeFiles/kimath.dir/src/geometry/convex_hull.cpp.o
[ 3%] Built target bitmap_archive
[ 3%] Building C object =
libs/kiplatform/CMakeFiles/kiplatform.dir/gtk/wayland-pointer-constraints-=
unstable-v1.c.o
=
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/libs/kiplatform/gtk/wayland-pointer=
-constraints-unstable-v1.c:29:10: fatal error: wayland-util.h: No such =
file or directory
29 | #include "wayland-util.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
--- =
libs/kiplatform/CMakeFiles/kiplatform.dir/gtk/wayland-pointer-constraints-=
unstable-v1.c.o ---
*** =
[libs/kiplatform/CMakeFiles/kiplatform.dir/gtk/wayland-pointer-constraints=
-unstable-v1.c.o] Error code 1
make[2]: stopped making =
"libs/kiplatform/CMakeFiles/kiplatform.dir/build" in =
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/cmake-pkgsrc-build
*** [all] Error code 6
make: stopped making "all" in =
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/cmake-pkgsrc-build
make: 1 error
make: stopped making "all" in =
/usr/pkgsrc/cad/kicad/work/kicad-8.0.6/cmake-pkgsrc-build
*** Error code 2
Stop.
make[1]: stopped making "install" in /usr/pkgsrc/cad/kicad
*** Error code 1
Stop.
make: stopped making "install" in /usr/pkgsrc/cad/kicad=
Home |
Main Index |
Thread Index |
Old Index