Skip to content

Conversation

invidian
Copy link

As if libsoup3 is installed together with libsoup2, libsoup3 is selected
which makes test fails.

Signed-off-by: Mateusz Gozdek mgozdekof@gmail.com

@romgrk
Copy link
Owner

romgrk commented May 20, 2022

Good catch! One thing though, setting the version explicitly to 2.4 fails the macos tests. Can you find which is the package version for macos and set it for that? It might be necessary to use process.platform to detect the OS and pick the right version.

@invidian
Copy link
Author

According to https://formulae.brew.sh/formula/libsoup and

on MacOS version 3 should be installed, which seem incorrect as in job https://github.com/romgrk/node-gtk/runs/6532823769?check_suite_focus=true I see the same error as I saw locally, so TypeError: Soup.URI is not a constructor. I think CI for MacOS should also be using v2 and tests can be updated for v3 compatibility.

invidian added 2 commits May 21, 2022 20:04
As current tests are not compatible with v3.

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
As if libsoup3 is installed together with libsoup2, libsoup3 is selected
which makes test fails.

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
@invidian invidian force-pushed the fix-running-tests-with-libsoup3-installed branch from 6585ea3 to b8734ce Compare May 21, 2022 18:04
@invidian
Copy link
Author

Hmm, on my Arch libsoup 2.74.2 installs libsoup 2.4:

$ pacman -Ql libsoup | grep 2.4.so
libsoup /usr/lib/libsoup-2.4.so
libsoup /usr/lib/libsoup-2.4.so.1
libsoup /usr/lib/libsoup-2.4.so.1.11.2
libsoup /usr/lib/libsoup-gnome-2.4.so
libsoup /usr/lib/libsoup-gnome-2.4.so.1
libsoup /usr/lib/libsoup-gnome-2.4.so.1.11.2

I'll check on MacOS when I have some time..

@WebReflection
Copy link
Contributor

Same here ... I have this

extra/libsoup 2.74.2-2 [installed]
    HTTP client/server library for GNOME
extra/libsoup3 3.0.6-1 [installed]
    HTTP client/server library for GNOME

but then the installed one is named 2.4 ... and that's expected though

@invidian
Copy link
Author

@invidian
Copy link
Author

Also, perhaps those should be unified:

$ git grep "gi.require('Soup'"
tests/conversion__g_hash.js:const soup = gi.require('Soup')
tests/conversion__g_list.js:const Soup = gi.require('Soup')
tests/conversion__g_s_list.js:const soup = gi.require('Soup')
tests/function_call__invalid_type.js:const Soup = gi.require('Soup')
tests/object__initialization.js:const Soup = gi.require('Soup', '2.4')
tests/regressions.js:const soup = gi.require('Soup', '2.4')

Or there should be separate set of test for 3.x.

I can also reproduce the failing tests on MacOS.

@ten0s ten0s mentioned this pull request Jul 8, 2022
@ten0s ten0s mentioned this pull request Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants