On Sun Mar 02, 2025 at 04:23:56AM +0000, Stuart Henderson wrote:
> Currently, kicad is marked brokem due to
> https://gitlab.com/kicad/code/kicad/-/issues/18621 so there is
> no package in -current.
> 
> As it depends on Python, the lack of package will interfere with a
> regular update from 7.6 to 7.7 at releas, leaving a faorly broken
> system.
> 
> I propose to allow packaging again to fix the update problem, but
> install the main binary wirh 0 permissions to avoid accidental use.
> OK?
> 
> (Maybe ee could also advise kicad users to hold off on updating in
> release notes).
> 
> 

I can't find a solution with ldd/cppflags. I have tested:

1.) 
-set( CMAKE_CXX_VISIBILITY_PRESET "hidden" )
-set( CMAKE_VISIBILITY_INLINES_HIDDEN ON )
+set( CMAKE_CXX_VISIBILITY_PRESET "default" )
+set( CMAKE_VISIBILITY_INLINES_HIDDEN OFF )

2.) 
-    set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstandalone-debug" )


3.) 
-    set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstandalone-debug" )
 CFLAGS +=              -I${X11BASE}/include -O1
 CXXFLAGS +=            -I${X11BASE}/include -O1

4.) 
Some ldd flags... Nothing works

OK rsadowski (with jtt@ typo findings)

> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/cad/kicad/Makefile,v
> diff -u -p -r1.73 Makefile
> --- Makefile  27 Feb 2025 12:47:13 -0000      1.73
> +++ Makefile  2 Mar 2025 04:20:40 -0000
> @@ -1,6 +1,5 @@
>  # Sync cad/kicad-share/Makefile.inc with archs where kicad is broken
> -BROKEN-powerpc =       segfaults when trying to run the PCB editor
> -BROKEN =             Needs _LIBCXXABI_FORGIVING_DYNAMIC_CAST in base 
> libcxxabi
> +BROKEN-powerpc =     segfaults when trying to run the PCB editor
>  
>  USE_NOBTCFI =                Yes
>  
> Index: pkg/MESSAGE
> ===================================================================
> RCS file: pkg/MESSAGE
> diff -N pkg/MESSAGE
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ pkg/MESSAGE       2 Mar 2025 04:20:40 -0000
> @@ -0,0 +1,4 @@
> +kicad on OpenBSD currently has issues with crashes for projects using
> +footprisnts, possibly resulting innbroken projects. As such, the main
> +binary has been installed with no permissions to avoid accidental
> +damage. See https://gitlab.com/kicad/code/kicad/-/issues/18621
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/cad/kicad/pkg/PLIST,v
> diff -u -p -r1.10 PLIST
> --- pkg/PLIST 27 Feb 2025 12:47:14 -0000      1.10
> +++ pkg/PLIST 2 Mar 2025 04:20:40 -0000
> @@ -16,7 +16,9 @@ bin/_pl_editor.kiface
>  @bin bin/idf2vrml
>  @bin bin/idfcyl
>  @bin bin/idfrect
> +@mode 000
>  @bin bin/kicad
> +@mode
>  @bin bin/kicad-cli
>  @bin bin/pcb_calculator
>  @bin bin/pcbnew
> 

Reply via email to