Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942010 - net-wireless/gnuradio Missing dependency for grc USE flag
Summary: net-wireless/gnuradio Missing dependency for grc USE flag
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-23 13:20 UTC by Thomas
Modified: 2025-01-15 22:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2024-10-23 13:20:43 UTC
First note that this depends on #942009 as else this gets silently ignored.

Now this happens when I try to compile with the grc USE flag fixed and setted:
```
-- Configuring gnuradio-companion support...
--   Dependency ENABLE_GNURADIO_RUNTIME = ON
--   Dependency ENABLE_PYTHON = ON
--   Dependency PYYAML_FOUND = TRUE
--   Dependency MAKO_FOUND = TRUE
--   Dependency PYGI_FOUND = TRUE
--   Dependency GTK_GI_FOUND = FALSE
--   Dependency CAIRO_GI_FOUND = TRUE
--   Dependency PANGOCAIRO_GI_FOUND = TRUE
--   Dependency NUMPY_FOUND = TRUE
CMake Error at cmake/Modules/GrComponent.cmake:72 (message):
  user force-enabled gnuradio-companion but configuration checked failed                                                                                                                      
Call Stack (most recent call first):                                                                                                                                                          
  grc/CMakeLists.txt:81 (GR_REGISTER_COMPONENT)                                                                                                                                               
                                                                                                                                                                                              
                                                                                                                                                                                              
-- Configuring incomplete, errors occurred!
```

Sadly I have no idea what provides GTK_GI_FOUND cause both gui-libs/gtk-4.14.4-r1 and x11-libs/gtk+-3.24.41-r1 are installed and as you see the check for PYGI_FOUND passes.

Reproducible: Always

Steps to Reproduce:
1. Apply patch from #942009
2. Execute `USE=grc emerge -v =net-wireless/gnuradio-9999`
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2024-11-20 20:44:50 UTC
GI could stand for gobject-introspection

Check if x11-libs/gtk+:3 was built with USE="introspection"
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2024-12-19 02:48:32 UTC
This is the section that is failing:

https://github.com/gnuradio/gnuradio/blob/main/grc/CMakeLists.txt#L34-L38

GR_PYTHON_CHECK_MODULE_RAW(
    "Gtk (GI) >= 3.10.8"
    "import gi; gi.require_version('Gtk', '3.0'); \
     from gi.repository import Gtk; Gtk.check_version(3, 10, 8)"
    GTK_GI_FOUND
)

I am not really sure why that fails.  I tested building gtk without USE=introspection but gnuradio still configured and built fine for me.
Comment 3 Thomas Beierlein gentoo-dev 2024-12-19 09:53:55 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #2)
> 
> I am not really sure why that fails.  I tested building gtk without
> USE=introspection but gnuradio still configured and built fine for me.

Same here - I just checked yesterday.

Maybe Thomas you can give some more information:

- emerge --info
- was gtk+ build with USE=introspection or not?
- failing build command for gnuradio
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2025-01-15 22:00:20 UTC
Unable to reproduce.  If you can provide any additional information I would be happy to try to resolve this.