Open nschoe opened 5 years ago
Okay so I finally managed to make it work.
I first looked for the glib-networking
install dir with echo $buildInputs | grep --color=auto glib-networking
. It gave me /nix/store/6r6b6p3c7hyvgidlnlyqa1zrvh9ajm9d-glib-networking-2.62.1
.
Then I ran exported: export GIO_MODULE_DIR=/nix/store/6r6b6p3c7hyvgidlnlyqa1zrvh9ajm9d-glib-networking-2.62.1/lib/gio/modules/
. From there everything works as it is supposed to be.
So... I have no idea how to port this to glib-networking/default.nix
, but something must be done with GIO_MODULE_DIR
.
They mentioned wrapGAppsHook
because if glib-networking
was added to buildInputs
it would have produced a script to export
GIO_EXTRA_MODULES=/nix/store/q96w3zn26siwl9nz9hq9nvhva6sp78q4-glib-networking-2.62.1/lib/gio/modules
So your issue would have been solved if gst-launch-1.0
was wrapped and that entry was added for glib-networking's gio module.
What we do in nixos, for applications that need glib-networking functionality but aren't wrapped, is set it in the global nixos environment https://github.com/NixOS/nixpkgs/blob/5f5bfce078257ba9a882aaccf0bd8ac3d0232e78/nixos/modules/services/desktops/gnome3/glib-networking.nix#L29
I'm not sure if we should add glib-networking
into gstreamer and wrap the example programs, but that would be the solution to this issue. For any application that uses gstreamer and gilb-networking, they'll use wrapGAppsHook
and the environment for which the program should run will be ensured correctly.
This also is showing up for me on gnome3.gnome-boxes
.
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.627: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/ubuntu.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.627: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/ubuntu.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.754: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/debian.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.754: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/debian.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.755: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/opensuse.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.755: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/opensuse.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.958: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/silverblue.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.958: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/silverblue.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.960: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/fedora.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:18.960: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/fedora.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:19.040: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/redhat.svg': TLS/SSL support not available; install glib-networking
(gnome-boxes:10211): Boxes-WARNING **: 19:05:19.040: downloader.vala:212: Error loading logo file 'https://gitlab.gnome.org/GNOME/gnome-boxes-logos/raw/master/logos/redhat.svg': TLS/SSL support not available; install glib-networking
@bb010g I will add glib-networking to gnome-boxes
.
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
I'm trying to make a patch for libsoup to solve this. First, it seem that the compile time need of glib-networking is here only to check that it is present, and isn't used for compiling. It's GIO that depend on glib-networking. Will try to see if I can make a default path for it in gio.
A call to g_io_modules_scan_all_in_directory somewhere should allow to dynamically load glib-networking.
Well, too hard. will just add the wrapGApps and glib-networking to the necessery software.
I marked this as stale due to inactivity. → More info
Describe the bug Gstreamer cannot support SSL/TLS URIs.
To Reproduce Steps to reproduce the behavior:
nix-shell
environment with the gstreamer plugins:nix-shell -p nix-shell -p gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
Expected behavior It should open the video and play it.
Error reported I get this error:
What I tried
glib-networking
andgnutls
added, it doesn't change anything.gnutls
as a dependency. By looking at the meson options on the github for glib-networking, I saw that the featuregnutls
was set toauto
, so I added-Dgnutls=enabled
in themesonFlags
array, in glib-networking/default.nix and tried entering the shell again, but I keep getting the same error.wrapGAppsHook
, which I did not understand, but from a quick look at the nixos manual, I tried adding it to glib-networking's dependencies and addedwrapGAppsHook
in itsnativeBuildInputs
list but again, it did not make the slight difference.So I don't understand what is going one nor what should be done.
Please note that I then tried to use the uninstalled version of gstreamer, build with
gst-build
. Everything builds okay and all, but I have the same problem. So I don't know what is wrong :/For information, here is my shell.nix's
buildInputs
(for building and using the uninstalledgst-build
):Not sure if this helps.
Metadata Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result.I don't know how much this is related, but I tried running centricular's gstreamer-based, webrtc example, it compiled okay, but when run, I get:
So it seems to be that this is a problem with the networking part of the glib? Something like that?
Thanks for your time.