Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918633 - =sci-electronics/gspiceui-1.2.87-r1 fails to compile if x11-libs/wxGTK-3.0 is not installed
Summary: =sci-electronics/gspiceui-1.2.87-r1 fails to compile if x11-libs/wxGTK-3.0 is...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
: 920921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-26 22:28 UTC by Francois Chenier
Modified: 2024-04-04 21:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (gspiceui-1.2.87-r1.ebuild.patch,442 bytes, patch)
2024-01-30 19:33 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chenier 2023-11-26 22:28:57 UTC
sci-electronics/gspiceui-1.2.87-r1 depends now on wxGTK-3.2 and no longer wxGTK-3.0

If wxGTK-3.0 is not installed, the gspiceui compilation fails straight at the beginning:

x86_64-pc-linux-gnu-g++ -c -march=corei7-avx -O2 -fomit-frame-pointer -pipe  -I. CmdLinePcr.cpp -o obj/CmdLinePcr.o
In file included from CmdLinePcr.hpp:24,
                 from App_gSpiceUI.hpp:23,
                 from App_gSpiceUI.cpp:17:
TypeDefs.hpp:30:10: fatal error: wx/wx.h: No such file or directory
   30 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.

Reinstalling wxGTK-3.0 "*fix*" the issue but the linker links against wxGTK-3.0 libraries not wxGTK-3.2 libraries as it should per dependency in gspiceui-1.2.87-r1 package.

For wxWidgets, I'm not setting any profile so the system shall use the latest but obviously it's not. When I'm removing wxGTK-3.0 (after re-compiling gspiceui), old wxGTK libraries remains in the system because the system detects gspiceui still need wxGTK-3.0 libraries.

Available wxWidgets profiles:
  [1]   gtk3-unicode-3.0-gtk3 (<- only appears if wxGTK-3.0 is installed)
  [2]   gtk3-unicode-3.2-gtk3 *
Comment 1 Francois Chenier 2023-11-29 07:34:58 UTC
The issue here is not likely to be in sci-electronics/gspiceui but in wxGTK-3.2 package. It seems something is broken in wxGTK-3.2 package regarding support for wxGTK-3.0 in wxGTK-3.2

This command returns a warning

#/usr/lib64/wx/config/gtk3-unicode-3.2-gtk3 --unicode --version=3.0 --cxxflags
Warning: No config found to match: /usr/lib64/wx/config/gtk3-unicode-3.2-gtk3 --unicode --version=3.0 --cxxflags

whilst this one (w/o --version=3.0), just run fine

 /usr/lib64/wx/config/gtk3-unicode-3.2-gtk3 --unicode --cxxflags
-I/usr/lib64/wx/include/gtk3-unicode-3.2-gtk3 -I/usr/include/wx-3.2-gtk3 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
Comment 2 Toralf Förster gentoo-dev 2023-12-29 13:46:59 UTC
*** Bug 920921 has been marked as a duplicate of this bug. ***
Comment 3 Maciej S. Szmigiero 2024-01-30 19:32:50 UTC
I hit the same issue with sci-electronics/gspiceui-1.2.87-r1 and x11-libs/wxGTK-3.2.2.1-r3.

Simply patching the gspiceui ebuild to GSPICEUI_WXLIB=3.2 made it build for me (see the attached patch).
Comment 4 Maciej S. Szmigiero 2024-01-30 19:33:10 UTC
Created attachment 883745 [details, diff]
ebuild patch
Comment 5 Francois Chenier 2024-04-04 21:58:46 UTC
(In reply to Maciej S. Szmigiero from comment #4)
> Created attachment 883745 [details, diff] [details, diff]
> ebuild patch

Effectively compile fine with your patch but gspiceui doesn't like wxGTK-3.2. Textarea box in the main window is too small and you cannot resize it. Graphical glitches are simply too severe to use gspiceui with wxGTK-3.2