Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Various GNOME 3.26 libraries: update #30371

Merged
merged 46 commits into from Nov 6, 2017
Merged

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Oct 12, 2017

Motivation for this change

These libraries were updated as a part of the GNOME 3.26 pull request but they can actually be used independently. Since pull requests updating many of these packages started to pop up, I decided to submit those changes to prevent duplication of effort.

Updated libraries
  • appstream-glib
  • clutter_gtk
  • colord
  • fwup
  • glib_networking
  • glibmm
  • gnome3.dconf
  • gnome3.folks
  • gnome3.gjs
  • gnome3.grilo
  • gnome3.grilo-plugins
  • gnome3.libpeas
  • gnome3.libgdata
  • gnome3.libgepub
  • gnome3.libgxps
  • gnome3.libzapojit
  • gnome3.mutter
  • gnome3.nautilus-sendto
  • gnome3.totem-pl-parser
  • gnome3.vte
  • gobjectIntrospection
  • granite
  • gstreamer
  • gusb
  • gvfs
  • json_glib
  • libchamplain
  • libevdev
  • libgtop
  • libgudev
  • libical
  • libinput
  • librsvg
  • libwacom
  • libxkbcommon
  • networkmanagerapplet
  • ostree
  • packagekit
  • spice_gtk
  • spice_protocol
  • spidermonkey_52
  • telepathy_glib
  • xf86_input_wacom
  • zeitgeist
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@jtojnar jtojnar requested a review from FRidh as a code owner October 12, 2017 22:07
@jtojnar jtojnar changed the base branch from master to staging October 12, 2017 22:16
@FRidh FRidh added the 6.topic: GNOME GNOME desktop environment and its underlying platform label Oct 22, 2017
@FRidh
Copy link
Member

FRidh commented Oct 22, 2017

@jtojnar what is the status? Did you test these changes? Do you think we should run a Hydra job?

@jtojnar
Copy link
Contributor Author

jtojnar commented Oct 22, 2017

I only build tested them with GNOME 3.26. I will need to take a second pass. Hydra job might help.

@jtojnar
Copy link
Contributor Author

jtojnar commented Oct 26, 2017

@FRidh Finished review, could you please arrange the Hydra job? Or @vcunat?

@dezgeg
Copy link
Contributor

dezgeg commented Nov 3, 2017

I don't have Hydra creation permissions, but in the meantime here's some failures I noticed when build-testing this:
colord:

Compiler for C supports argument -Wl,-z,now: YES
Found pkg-config: /nix/store/pki9r32nbdvdrmxaxrkb7j8lbq3jfihi-pkg-config-0.29.2/bin/pkg-config (0.29.2)
Native dependency gio-2.0 found: YES 2.54.1
Native dependency glib-2.0 found: YES 2.54.1
Native dependency gmodule-2.0 found: YES 2.54.1
Native dependency gio-unix-2.0 found: YES 2.54.1
Native dependency lcms2 found: YES 2.8
Native dependency sqlite3 found: YES 3.21.0
Native dependency gusb found: YES 0.2.11
Native dependency gudev-1.0 found: YES 232
Library m found: YES
Native dependency udev found: YES 234
Native dependency libudev found: YES 234
Native dependency systemd found: YES 234
Native dependency libsystemd found: YES 234
Has header "pwd.h": YES
Has header "syslog.h": YES
Has header "unistd.h": YES
Checking for function "getuid": YES
Native dependency bash-completion found: YES 2.7
Native dependency sane-backends found: YES 1.0.27
Native dependency dbus-1 found: YES 1.10.24
Program spotread found: YES (/nix/store/fwzbk1l1lkil2ffxig946xhyn3m6aay3-argyllcms-1.8.3/bin/spotread)
Program vapigen found: NO

Meson encountered an error in file meson.build, line 170, column 2:
Program "vapigen" not found or not executable

A full log can be found at /tmp/nix-build-colord-1.4.1.drv-0/colord-1.4.1/build/meson-logs/meson-log.txt
builder for ‘/nix/store/frk7p89khfx3zqjjb4iybz0idj9hsqsy-colord-1.4.1.drv’ failed with exit code 1

Needs vala or -Denable-vala=false?

mutter:

  CC       backends/native/meta-idle-monitor-native.lo
In file included from /nix/store/d9s2m4fs3m8ifngnkzmpik6li1yqy0z9-glib-2.54.1/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gtypes.h:32,
                 from /nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/galloca.h:32,
                 from /nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib.h:30,
                 from /nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/gobject/gbinding.h:28,
                 from /nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib-object.h:23,
                 from backends/native/meta-launcher.h:23,
                 from backends/native/meta-launcher.c:22:
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: error: redefinition of 'glib_autoptr_cleanup_GUdevDevice'
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
backends/native/meta-launcher.c:52:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevDevice, g_object_unref)
 ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: note: previous definition of 'glib_autoptr_cleanup_GUdevDevice' was here
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
/nix/store/hg3qjccvdqzxpwc8xzs3savnzhvkp430-libgudev-232/include/gudev-1.0/gudev/gudevdevice.h:39:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUdevDevice, g_object_unref)
 ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: error: redefinition of 'glib_autoptr_cleanup_GUdevClient'
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
backends/native/meta-launcher.c:53:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevClient, g_object_unref)
 ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: note: previous definition of 'glib_autoptr_cleanup_GUdevClient' was here
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
/nix/store/hg3qjccvdqzxpwc8xzs3savnzhvkp430-libgudev-232/include/gudev-1.0/gudev/gudevclient.h:39:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUdevClient, g_object_unref)
 ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: error: redefinition of 'glib_autoptr_cleanup_GUdevEnumerator'
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
backends/native/meta-launcher.c:54:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevEnumerator, g_object_unref)
 ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:430:43: note: previous definition of 'glib_autoptr_cleanup_GUdevEnumerator' was here
 #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
                                           ^
/nix/store/cf7hbajqjr93kc50mpi32cqjbcq53x6k-glib-2.54.1-dev/include/glib-2.0/glib/gmacros.h:444:22: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                      ^~~~~~~~~~~~~~~~~~~~~~~
/nix/store/hg3qjccvdqzxpwc8xzs3savnzhvkp430-libgudev-232/include/gudev-1.0/gudev/gudevenumerator.h:39:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUdevEnumerator, g_object_unref)
 ^
  CC       backends/native/meta-cursor-renderer-native.lo
  CC       backends/native/meta-clutter-backend-native.lo
make[4]: *** [Makefile:2162: backends/native/meta-launcher.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/tmp/nix-build-mutter-3.24.4.drv-0/mutter-3.24.4/src'
make[3]: *** [Makefile:2334: all-recursive] Error 1
make[3]: Leaving directory '/tmp/nix-build-mutter-3.24.4.drv-0/mutter-3.24.4/src'
make[2]: *** [Makefile:1336: all] Error 2
make[2]: Leaving directory '/tmp/nix-build-mutter-3.24.4.drv-0/mutter-3.24.4/src'
make[1]: *** [Makefile:484: all-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-mutter-3.24.4.drv-0/mutter-3.24.4'
make: *** [Makefile:414: all] Error 2
builder for ‘/nix/store/fxb96yvr92zcn3bvvfm27cd9jvayzl5q-mutter-3.24.4.drv’ failed with exit code 2

totem-pl-parser:

unpacking sources
unpacking source archive /nix/store/594v76fxd4waiwz25xys9kwdhh2lyws5-totem-pl-parser-3.10.2.tar.xz
source root is totem-pl-parser-3.10.2
setting SOURCE_DATE_EPOCH to timestamp 1395667871 of file totem-pl-parser-3.10.2/docs/reference/totem-pl-parser.types
patching sources
configuring
meson flags: --buildtype=release --prefix=/nix/store/krbfsi9g7ilhqpz6kjq0p0grw8b98qi6-totem-pl-parser-3.10.2  
Warning: You are using 'ANSI_X3.4-1968' which is not a Unicode-compatible locale.
You might see errors if you use UTF-8 strings as filenames, as strings, or as file contents.
Please switch to a UTF-8 locale for your platform.
Error during basic setup:

Neither directory contains a build file meson.build.
builder for ‘/nix/store/3ldfqhhdzql0hcxdgv404i6ckbdrcgbi-totem-pl-parser-3.10.2.drv’ failed with exit code 1

(I don't know if it matters but I had rebased onto c4be15a when testing)

@jtojnar
Copy link
Contributor Author

jtojnar commented Nov 3, 2017

@orivej Looks like a cherry-picking failure. Should be fixed now.

@orivej
Copy link
Contributor

orivej commented Nov 3, 2017

@orivej Looks like a cherry-picking failure. Should be fixed now.

You meant @dezgeg.

BTW updating libgit2 is more involved than that, I'm doing it in #31119

@jtojnar
Copy link
Contributor Author

jtojnar commented Nov 5, 2017

@vcunat No idea what was up with it. I rebuilt it and GNOME and the apps work just fine with the libraries.

@vcunat
Copy link
Member

vcunat commented Nov 6, 2017

I probably just tried at the right moment by luck. There's also a short-time negative local cache for the binary cache lookups.

@globin
Copy link
Member

globin commented Nov 6, 2017

So this should be ready to be merged now?

@vcunat
Copy link
Member

vcunat commented Nov 6, 2017

Yes, I've been just waiting for the remaining builds to finish on Hydra.

@vcunat vcunat merged commit 09bda35 into NixOS:master Nov 6, 2017
vcunat added a commit that referenced this pull request Nov 6, 2017
@jtojnar
Copy link
Contributor Author

jtojnar commented Nov 7, 2017

Looks like fwupd build is broken after libgudev update. #30252 attempts to fix it.

@dezgeg
Copy link
Contributor

dezgeg commented Nov 7, 2017

It was actually broken previously since September (https://hydra.nixos.org/build/59954108) but fixes are still welcome :)

@jtojnar jtojnar deleted the gnome-3.26-libs branch November 8, 2017 14:15
@orivej
Copy link
Contributor

orivej commented Dec 1, 2017

@jtojnar
Copy link
Contributor Author

jtojnar commented Dec 1, 2017

@orivej This does not seem to be the problem. The same tests fail even if I downgrade fwup. And it does not look like it depends on any other package changed in this PR.

Edit: I was fetching incorrect tarball, it indeed breaks with fwup ≥ 0.15. I opened an upstream issue fwup-home/fwup#83

@orivej
Copy link
Contributor

orivej commented Dec 3, 2017

Thank you! Fixed in 3954032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants