Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912438 - games-kids/gmult-12.0 - ../.../main.vala:112.29-112.36: error: Argument 1: Cannot convert from unowned uint8[] to unowned string
Summary: games-kids/gmult-12.0 - ../.../main.vala:112.29-112.36: error: Argument 1: Ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-18 07:13 UTC by Toralf Förster
Modified: 2023-09-23 11:48 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.14 KB, text/plain)
2023-08-18 07:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,75.64 KB, text/plain)
2023-08-18 07:13 UTC, Toralf Förster
Details
environment (environment,131.99 KB, text/plain)
2023-08-18 07:13 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-08-18 07:13 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,21.34 KB, application/x-xz)
2023-08-18 07:13 UTC, Toralf Förster
Details
games-kids:gmult-12.0:20230818-031116.log (games-kids:gmult-12.0:20230818-031116.log,12.04 KB, text/plain)
2023-08-18 07:13 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,3.16 KB, application/x-xz)
2023-08-18 07:13 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.49 KB, application/x-xz)
2023-08-18 07:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-08-18 07:13:00 UTC
too long lines were shrinked:

[37/50] /usr/bin/msgfmt -o po/vi/LC_MESSAGES/gmult.mo ../gmult-12.0/po/vi.po
[38/50] /usr/bin/msgfmt -o po/zh_TW/LC_MESSAGES/gmult.mo ../gmult-12.0/po/zh_TW.po
[39/50] x86_64-pc-linux-gnu-gcc -Igmult/gmult.p -Igmult -I../gmult-12.0/gmult -Idata -I/usr/include/libadwaita-1 -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/harfbuzz -I
[40/50] /usr/bin/valac-0.56 -C --pkg=config --vapidir /var/tmp/portage/games-kids/gmult-12.0/work/gmult-12.0/vapi --pkg gtk4 --target-glib ' 2.72' --pkg glib-2.0 --pkg libadwaita-1 --color=always --directory gmult/gmult.p --basedir ../gmult-12.0/gmult --gresources=../gmult-12.0/data/resources.xml --
FAILED: gmult/gmult.p/main.c gmult/gmult.p/Canvas.c gmult/gmult.p/CharBox.c gmult/gmult.p/DigitBox.c gmult/gmult.p/GtkMult.c gmult/gmult.p/MultPuzzle.c gmult/gmult.p/ScalingLetter.c gmult/gmult.p/Separator.c gmult/gmult.p/TableBox.c 
/usr/bin/valac-0.56 -C --pkg=config --vapidir /var/tmp/portage/games-kids/gmult-12.0/work/gmult-12.0/vapi --pkg gtk4 --target-glib ' 2.72' --pkg glib-2.0 --pkg libadwaita-1 --color=always --directory gmult/gmult.p --basedir ../gmult-12.0/gmult --gresources=../gmult-12.0/data/resources.xml --gresourc
../gmult-12.0/gmult/main.vala:112.29-112.36: error: Argument 1: Cannot convert from `unowned uint8[]' to `unowned string'
  112 |     provider.load_from_data(css.data);
      |                             ^~~~~~~~  

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20230816-193503

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-1.71.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):
go version go1.21.0 linux/amd64

  HEAD of ::gentoo
commit a228d4e27364d4a8854f8f335a8c58a231cb15bc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Aug 18 01:48:30 2023 +0000

    2023-08-18 01:48:28 UTC

emerge -qpvO games-kids/gmult
[ebuild  N    ] games-kids/gmult-12.0
Comment 1 Toralf Förster gentoo-dev 2023-08-18 07:13:01 UTC
Created attachment 868136 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-08-18 07:13:02 UTC
Created attachment 868137 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-08-18 07:13:03 UTC
Created attachment 868138 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-08-18 07:13:04 UTC
Created attachment 868139 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-08-18 07:13:05 UTC
Created attachment 868140 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-08-18 07:13:06 UTC
Created attachment 868141 [details]
games-kids:gmult-12.0:20230818-031116.log
Comment 7 Toralf Förster gentoo-dev 2023-08-18 07:13:06 UTC
Created attachment 868142 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-08-18 07:13:07 UTC
Created attachment 868143 [details]
temp.tar.xz
Comment 9 Ionen Wolkens gentoo-dev 2023-08-18 10:57:06 UTC
Hm, wonder if this is an unintended change[1] in vala-0.56.11? I feel like this was supposed to be in vala-0.58 and gmult's upstream had prepared for this:

#if VALA_0_58
    provider.load_from_data(css);
#else
    provider.load_from_data(css.data);
#endif

Thing is that can't drop this to 0_56 because it's broken with vala-0.56.8 then.
And also can't replace to the non-deprecated load_from_string given that needs masked gtk-4.12.

Seems the length argument is no longer optional too, so the above furthermore needs (css, -1) or else:

error: 1 missing arguments for `void Gtk.CssProvider.load_from_data (string, ssize_t)'
  110 |     provider.load_from_data(css);

[1] https://gitlab.gnome.org/GNOME/vala/-/commit/6aaecb3b
Comment 10 Larry the Git Cow gentoo-dev 2023-08-18 12:12:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44ae26cf8619d521cf66e7bd2373740a024df7f6

commit 44ae26cf8619d521cf66e7bd2373740a024df7f6
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-08-18 11:39:57 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-08-18 12:11:43 +0000

    games-kids/gmult: workaround for vala-0.56.11
    
    Will see how this go, but for now just do a dirty fix.
    
    Closes: https://bugs.gentoo.org/912438
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch | 15 +++++++++++++++
 games-kids/gmult/gmult-12.0.ebuild                   | 15 +++++++++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2023-09-23 11:48:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd6360a570ec3b0067ddf252e5fe6c02e0986f86

commit cd6360a570ec3b0067ddf252e5fe6c02e0986f86
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-09-23 11:41:42 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-09-23 11:47:22 +0000

    games-kids/gmult: drop vala workaround patch
    
    Seems fixed in vala-0.56.13 and is now instead causing a failure.
    
    Could add some ranges in BDEPEND, but rather drop this mess
    entirely.
    
    Bug: https://bugs.gentoo.org/912438
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch | 15 ---------------
 games-kids/gmult/gmult-12.0.ebuild                   |  9 ---------
 2 files changed, 24 deletions(-)