Package Details: glib2-static 2.64.4-1

Git Clone URL: https://aur.archlinux.org/glib2-static.git (read-only, click to copy)
Package Base: glib2-static
Description: Low level core library: Static library
Upstream URL: https://wiki.gnome.org/Projects/GLib
Licenses: LGPL2.1
Submitter: sergej
Maintainer: nightuser
Last Packager: nightuser
Votes: 10
Popularity: 0.000315
First Submitted: 2013-10-11 17:41
Last Updated: 2020-07-13 14:37

Latest Comments

1 2 3 4 Next › Last »

nightuser commented on 2020-06-26 10:17

@archolaf: I tried a clean build on a fresh arch installation and all tests passed. Did you report the issues upstream?

archolaf commented on 2020-06-14 12:10

If i try to build glib2-static 2.64.3-1, there are two errors in check():


==> Beginne check()...
ninja: Entering directory `/var/tmp/pamac-build-betriebssystem/glib2-static/src/_build'
ninja: no work to do.
  1/269 glib:glib / array-test                          OK             0.09s
  2/269 glib:glib / asyncqueue                          OK             0.47s
  3/269 glib:glib / atomic                              OK             0.13s
...
181/269 glib:gio / g-file-info-filesystem-readonly      OK             0.01s
182/269 glib:gio / gschema-compile                      OK             0.22s
183/269 glib:gio / trash                                FAIL           0.42s (killed by signal 6 SIGABRT)
184/269 glib:gio / gsocketclient-slow                   OK             1.27s
185/269 glib:gio / appinfo                              OK             0.07s
186/269 glib:gio / desktop-app-info                     OK             1.17s
...
205/269 glib:gio+slow / gdbus-threading                 OK             17.98s
206/269 glib:gio+slow / gmenumodel                      OK             5.09s
207/269 glib:gio / gnotification                        FAIL           1.49s (killed by signal 6 SIGABRT)
208/269 glib:gio / gdbus-test-codegen-old               OK             0.12s
209/269 glib:gio / gdbus-test-codegen-min-required-2-64 OK             0.13s
...
267/269 glib:glib / cxx-test                            OK             0.01s
268/269 glib:glib / timeloop                            OK             0.22s
269/269 glib:glib / iochannel-test                      OK             0.01s

Ok:                 267 
Expected Fail:      0   
Fail:               2   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   


The output from the failed tests:

183/269 glib:gio / trash                                FAIL           0.42s (killed by signal 6 SIGABRT)

--- command ---
10:16:22 G_TEST_BUILDDIR='/var/tmp/pamac-build-betriebssystem/glib2-static/src/_build/gio/tests' G_TEST_SRCDIR='/var/tmp/pamac-build-betriebssystem/glib2-static/src/glib-2.64.3/gio/tests' GIO_MODULE_DIR='' /var/tmp/pamac-build-betriebssystem/glib2-static/src/_build/gio/tests/trash
--- stdout ---
# random seed: R02S6b89a9c70db273776cc354861efcf057
1..2
# Start of trash tests
# Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
# File: /tmp/test-trashZYJJM0 (parent st_dev: 47)
# Home: /home/betriebssystem (st_dev: 2050)
# Mount: /tmp
Bail out! GLib-GIO:ERROR:../glib-2.64.3/gio/tests/trash.c:75:test_trash_not_supported: assertion failed (error == (g-io-error-quark, 15)): error is NULL
--- stderr ---
**
GLib-GIO:ERROR:../glib-2.64.3/gio/tests/trash.c:75:test_trash_not_supported: assertion failed (error == (g-io-error-quark, 15)): error is NULL
-------

207/269 glib:gio / gnotification                        FAIL           1.49s (killed by signal 6 SIGABRT)

--- command ---
10:16:29 G_TEST_BUILDDIR='/var/tmp/pamac-build-betriebssystem/glib2-static/src/_build/gio/tests' G_TEST_SRCDIR='/var/tmp/pamac-build-betriebssystem/glib2-static/src/glib-2.64.3/gio/tests' GIO_MODULE_DIR='' /var/tmp/pamac-build-betriebssystem/glib2-static/src/_build/gio/tests/gnotification
--- stdout ---
# random seed: R02S07e4e394b0180c27fc3fae2acfcea9ae
1..2
# Start of gnotification tests
# GLib-DEBUG: Launching with posix_spawn
Bail out! GLib-GIO:ERROR:../glib-2.64.3/gio/tests/gnotification.c:167:basic: assertion failed (received_count == 5): (0 == 5)
--- stderr ---
**
GLib-GIO:ERROR:../glib-2.64.3/gio/tests/gnotification.c:167:basic: assertion failed (received_count == 5): (0 == 5)
cleaning up pid 246453
-------

Full log written to /var/tmp/pamac-build-betriebssystem/glib2-static/src/_build/meson-logs/testlog.txt
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...

nightuser commented on 2020-03-26 12:44

Bumped to the latest version and applied some changes from upstream.

Should fix @weltio's problem.

nightuser commented on 2020-03-10 19:19

@weltio:

I'll set the locale explicitly for the time being, but it shouldn't be a problem since this test has setlocale(LC_ALL, "");. Out of curiosity, what's your locale?

UPD: Nevermind, figured what the issue is about. Now I don't really understand why it works in shared case.

In English locale 'Jörgen' normalizes to 'jorgen' and in German one to 'joergen'. I don't know whatever is the correct way, but specifically setting it in the test without specifying the locale of the string seems strange to me.

weltio commented on 2020-03-10 19:12

had the same issue as traschke at 2019-02-12 17:41 with version 2.64

62/256 glib:glib / search-utils                FAIL     0.17 s (killed by signal 6 SIGABRT)

--- command ---
MALLOC_PERTURB_='107' G_TEST_SRCDIR='/home/user/.cache/yay/glib2-static/src/glib/glib/tests' G_TEST_BUILDDIR='/home/user/.cache/yay/glib2-static/src/build/glib/tests' MALLOC_CHECK_='2' G_DEBUG='gc-friendly' /home/user/.cache/yay/glib2-static/src/build/glib/tests/search-utils --tap
--- stdout ---
# random seed: R02S8e7b7c1d50ba0d2d5e2c1321957a09f9
1..1
# GLib-DEBUG: Started
# GLib-DEBUG: 'he' - 'Hello World' should match: OK
# GLib-DEBUG: 'wo' - 'Hello World' should match: OK
# GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK
# GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK
# GLib-DEBUG: 'wo' - 'Hello-World' should match: OK
# GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK
# GLib-DEBUG: 'jor' - 'Jörgen' should match: FAILED
Bail out! GLib:ERROR:../glib/glib/tests/search-utils.c:67:test_search: assertion failed: (ok)
--- stderr ---
**
GLib:ERROR:../glib/glib/tests/search-utils.c:67:test_search: assertion failed: (ok)
-------

Had to set LC_ALL=C. Please apply that to the PKGBUILD as well (it unfortunately wasted my whole day)

see also https://gitlab.gnome.org/GNOME/glib/issues/1648

DDoSolitary commented on 2020-02-18 10:01

@nightuser Yes, original error occurred when building a downloaded snapshot. It is quite surprising to me that git apply doesn't report skipped patches without the --verbose option, though.

nightuser commented on 2020-02-17 17:06

@DDoSolitary: did you download a snapshot or clone the package's repo? I usually do the latter and hence didn't catch the error. Will fix this in a moment, sorry.

DDoSolitary commented on 2020-02-17 05:41

The package no longer builds after you adding the patch:

error: --3way outside a repository

And even if you remove --3way option, the patch won't be applied properly because 1) You're in $srcdir rather than the source code directory extracted from the .tar.gz file; 2) It seems that git apply doesn't work when not in a git repository. If you run git apply --verbose ../CVE-2020-6750.patch in the correct directory, you will still see Skipped patch 'gio/gsocketclient.c'.

So I think it's better to apply the patch using the patch utility:

cd glib-$pkgver
patch -Np1 -i ../CVE-2020-6750.patch

nightuser commented on 2019-11-29 08:08

RX14: Why do you think this is bad? Except for the time, obviously.

RX14 commented on 2019-11-28 22:51

Could we please turn off lto for the build (-D b_lto=false), since compiling the spec suite with LTO means essentially compiling and optimizing glib2-static for every single test binary.