Thanks for sharing it! Compiling from sources is annoying and the newest package from the PPA is for Ubuntu 21.04.1, which is too âoldâ compared to bullseye.
Did you report the changes needed to the PPA maintainer?
Creating the package for bullseye I found 4 details:
- Swig 3.0 forced: now we have 4.0, forcing 3.0 makes it fail.
- Python 2 is obsolete: no âpythonâ command anymore, scripts must migrate to âpython3â
- Very old debian compatibility level. The PPA uses 9, which is obsolete. I didnât fix it.
- CMakeModules/FindOpenCASCADE.cmake seems to be wrongly named. I think it should be FindOCC.cmake
Also got the following compilation warnings:
recipe/kicad/common/build_version.cpp:57:68: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
57 | wxString msg = wxString::Format( wxT( "%s %s" ), wxT( __DATE__ ), wxT( __TIME__ ) );
| ^
recipe/kicad/common/build_version.cpp:57:85: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
57 | wxString msg = wxString::Format( wxT( "%s %s" ), wxT( __DATE__ ), wxT( __TIME__ ) );
| ^
recipe/kicad/pcb_calculator/dialogs/pcb_calculator_frame_base.cpp: In constructor âď â¸PCB_CALCULATOR_FRAME_BASE::PCB_CALCULATOR_FRAME_BASE(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int, const wxString&)âď â:
recipe/kicad/pcb_calculator/dialogs/pcb_calculator_frame_base.cpp:17:1: note: variable tracking size limit exceeded with âď â¸-fvar-tracking-assignmentsâď â, retrying without
17 | PCB_CALCULATOR_FRAME_BASE::PCB_CALCULATOR_FRAME_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : KIWAY_PLAYER( parent, id, title, pos, size, style, name )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
recipe/kicad/include/common.h:166: Warning 317: Specialization of non-template 'hash'.
recipe/kicad/include/common.h:174: Warning 317: Specialization of non-template 'less'.
recipe/kicad/include/layers_id_colors_and_visibility.h:268: Warning 401: Nothing known about base class 'GAL_BASE_SET'. Ignored.
recipe/kicad/include/board_design_settings.h:218: Warning 401: Nothing known about base class 'NESTED_SETTINGS'. Ignored.
recipe/kicad/include/richio.h:128: Warning 503: Can not wrap 'operator char*' unless renamed to a valid identifier.
recipe/kicad/libs/kimath/include/geometry/shape_line_chain.h:130: Warning 509: Overloaded method SHAPE_LINE_CHAIN::SHAPE_LINE_CHAIN(std::vector< wxPoint,std::allocator< wxPoint > > const &) effectively ignored,
recipe/kicad/libs/kimath/include/geometry/shape_line_chain.h:119: Warning 509: as it is shadowed by SHAPE_LINE_CHAIN::SHAPE_LINE_CHAIN(std::vector< int,std::allocator< int > > const &).
recipe/kicad/libs/kimath/include/geometry/shape_line_chain.h:119: Warning 509: Overloaded method SHAPE_LINE_CHAIN::SHAPE_LINE_CHAIN(std::vector< int,std::allocator< int > > const &) effectively ignored,
recipe/kicad/libs/kimath/include/geometry/shape_line_chain.h:130: Warning 509: as it is shadowed by SHAPE_LINE_CHAIN::SHAPE_LINE_CHAIN(std::vector< wxPoint,std::allocator< wxPoint > > const &).
footprint.h:115: Warning 509: Overloaded method FOOTPRINT::FOOTPRINT(FOOTPRINT &&) effectively ignored,
footprint.h:112: Warning 509: as it is shadowed by FOOTPRINT::FOOTPRINT(FOOTPRINT const &).