Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835489

Summary: x11-libs/vte-0.66.2 - ../.../widget.cc: error: W_EXITCODE was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: gnome
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/vte/-/issues/72
https://bugs.gentoo.org/show_bug.cgi?id=554416
https://bugs.gentoo.org/show_bug.cgi?id=840583
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
x11-libs:vte-0.66.2:20220316-225520.log
workaround for w_exitcode for musl

Description Toralf Förster gentoo-dev 2022-03-17 08:08:40 UTC
too long lines were shrinked:

[164/204] x86_64-gentoo-linux-musl-g++ -Isrc/libvte-2.91.so.0.6600.2.p -Isrc -I../vte-0.66.2/src -I. -I../vte-0.66.2 -Isrc/vte -I../vte-0.66.2/src/vte -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -
FAILED: src/libvte-2.91.so.0.6600.2.p/widget.cc.o 
x86_64-gentoo-linux-musl-g++ -Isrc/libvte-2.91.so.0.6600.2.p -Isrc -I../vte-0.66.2/src -I. -I../vte-0.66.2 -Isrc/vte -I../vte-0.66.2/src/vte -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/incl
../vte-0.66.2/src/widget.cc: In member function 'void vte::platform::Widget::dispose()':
../vte-0.66.2/src/widget.cc:726:30: error: 'W_EXITCODE' was not declared in this scope; did you mean 'WEXITED'?
  726 |                 int status = W_EXITCODE(0, SIGKILL);
      |                              ^~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220315-220013

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang/llvm (if any):
clang version 13.0.1
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.1
Python 3.9.11
Available Ruby profiles:
  [1]   ruby26
  [2]   ruby27 *
Available Rust versions:
  [1]   rust-1.59.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

php cli:
  [1]   php7.4 *
  [2]   php8.0
  [3]   php8.1

  HEAD of ::gentoo
commit a1723dc6937fe586c89cf9ef74c546dd5fb0ccce
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Mar 16 21:49:56 2022 +0000

    2022-03-16 21:49:46 UTC

emerge -qpvO x11-libs/vte
[ebuild  N    ] x11-libs/vte-0.66.2  USE="crypt icu introspection vala -debug -gtk-doc (-systemd) -vanilla"
Comment 1 Toralf Förster gentoo-dev 2022-03-17 08:08:41 UTC
Created attachment 767230 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-17 08:08:43 UTC
Created attachment 767231 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-03-17 08:08:44 UTC
Created attachment 767232 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-03-17 08:08:48 UTC
Created attachment 767233 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-03-17 08:08:49 UTC
Created attachment 767234 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-03-17 08:08:50 UTC
Created attachment 767235 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-03-17 08:08:52 UTC
Created attachment 767236 [details]
x11-libs:vte-0.66.2:20220316-225520.log
Comment 8 Jory A. Pratt gentoo-dev 2022-03-18 13:48:38 UTC
Created attachment 767310 [details, diff]
workaround for w_exitcode for musl
Comment 9 Larry the Git Cow gentoo-dev 2022-04-22 00:46:26 UTC
The bug has been closed via the following commit(s):

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

commit c44771d1fa957cd2f04b42d79f900205575f0faa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-22 00:46:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-22 00:46:05 +0000

    x11-libs/vte: fix musl build
    
    Closes: https://bugs.gentoo.org/835489
    Closes: https://bugs.gentoo.org/554416
    Thanks-to: Jory A. Pratt <anarchy@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../vte/files/vte-0.66.2-musl-W_EXITCODE.patch     | 29 ++++++++++++++++++++++
 x11-libs/vte/vte-0.66.2.ebuild                     |  2 ++
 x11-libs/vte/vte-0.68.0.ebuild                     |  2 ++
 3 files changed, 33 insertions(+)