This bug should be made a blocker of : https://bugs.gentoo.org/show_bug.cgi?id=430702 And assigned to blueness@gentoo.org Reproducible: Always
Created attachment 404864 [details] build.log.gz
I believe that this is independent from, and not a duplicate of : https://bugs.gentoo.org/show_bug.cgi?id=542780
Try to backport the patch http://git.alpinelinux.org/cgit/aports/tree/main/qt5-qtbase/qt-musl-socklen.patch
Also appears on amd64. Back-ported patch from [0] and seems to be building fine. [0] https://github.com/meta-qt5/meta-qt5/blob/6d9e2a6dfc21f7d9a3a11b4bcb426b5dfe6feaeb/recipes-qt/qt5/qtbase/0014-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch
Created attachment 406192 [details, diff] Add dev-qt/qtcore to the musl overlay
Okay committed to the musl overlay.(In reply to Wiktor W Brodlo from comment #4) > Also appears on amd64. Back-ported patch from [0] and seems to be building > fine. > > [0] > https://github.com/meta-qt5/meta-qt5/blob/ > 6d9e2a6dfc21f7d9a3a11b4bcb426b5dfe6feaeb/recipes-qt/qt5/qtbase/0014-linux-oe- > g-Invert-conditional-for-defining-QT_SOCKLE.patch Is this patch heading for upstream qt?
(In reply to Anthony Basile from comment #6) > Okay committed to the musl overlay. Thanks. > Is this patch heading for upstream qt? The original patch has been committed to upstream qt5 3 days ago. I can confirm =qtcore-5.5.0_rc::qt builds fine against musl. AFAIK qt4 is not maintained any more: https://blog.qt.io/blog/2015/05/26/qt-4-8-7-released/
Turns out I was wrong - the patch has not been submitted to qt5 upstream.
qtcore-4.8.{6,7}[iconv] builds fine on musl, but results in runtime errors in applications. For example: 唀猀愀最攀㨀 automoc4 㰀漀甀琀昀椀氀攀㸀 㰀猀爀挀搀椀爀㸀 㰀戀甀椀氀搀搀椀爀㸀 㰀洀漀挀 攀砀攀挀甀琀愀戀氀攀㸀 㰀挀洀愀欀攀 攀砀攀挀甀琀愀戀氀攀㸀 嬀ⴀⴀ琀漀甀挀栀崀 This doesn't mean anything. However, if we flip every pair of bytes, we get this UTF-16-encoded text: Usage: automoc4 <outfile> <srcdir> <builddir> <moc executable> <cmake executable> [--touch] (which is what's intended). Input is also broken in some Qt4 applications. Building with iconv disabled fixes the issue. Qt 5 is not affected.
There is also some strange output on amd64 non-hardened. For instance, this is the output of vlc started via console. core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. 唀渀愀戀氀攀 琀漀 氀漀愀搀 氀椀戀爀愀爀礀 椀挀甀椀㠀渀 ∀䌀愀渀渀漀琀 氀漀愀搀 氀椀戀爀愀爀礀 椀挀甀椀㠀渀㨀 ⠀Error loading shared library 椀挀甀椀㠀渀: No such file or directory⤀∀ 唀渀愀戀氀攀 琀漀 氀漀愀搀 最爀愀瀀栀椀挀猀猀礀猀琀攀洀 ∀raster∀ I switched to qt5 meanwhile, which solved all problems. But would you mind to mask the iconv useflag for qtcore:4 on musl profiles to solve this problem eventually?
Qt4 is gone.