Re: [dev] tinyx port to libXfont2

From: stefan11111 <stefan11111_AT_shitposting.expert>
Date: Tue, 12 Nov 2024 01:18:57 +0200

În 11 noiembrie 2024 23:17:48 EET, Storkman <storkman_AT_storkman.nl> a scris:
>On Thu, Nov 07, 2024 at 11:18:03AM +0000, stefan11111 wrote:
>> On 2024-11-05 10:37, stefan11111 wrote:
>> >
>> > Looks like git st works.
>>
>> Looked into it a bit more, and it turns out that the reason it failed
>> like that
>> is not because of code from st, but because of the alpha patch for st.
>>
>> XftColorAllocName() fails(likely not implemented in tinyx), which kills
>> st.
>>
>> Is there a way to get st to ignore/handle that error and not have it
>> kill the app?
>
>Turns out I was looking at the wrong diff somehow. The alpha patch indeed
>just introduced an entirely new bug, since the mainline st never needed
>a 32-bit color mode.
>
>I've made an updated version, if you'd like to check it out.
>

Thank you for this patch.
I can confirm it works.
I get proper alpha in Xorg and I can use st in Xfbdev.

The patch didn't apply as-is to git st.
I applied the patch by hand, and I'll add the output of git diff as an attachment.

Maybe this patch should be added to the list of alpha patches on the page for st on the suckless wiki?
-- 
Linux-gentoo-x86_64-Intel-R-_Core-TM-_i5-7400_CPU__AT__3.00GHz
COMMON_FLAGS="-O3 -pipe -march=native -fno-stack-check -fno-ident -fno-stack-protector -ftree-vectorize -ffast-math -funswitch-loops -fuse-linker-plugin -flto -fdevirtualize-at-ltrans -fno-plt -fno-semantic-interposition -falign-functions=64 -fgraphite-identity -floop-nest-optimize"
USE="-* git verify-sig rsync-verify man alsa X grub ipv6 ssl lto libressl olde-gentoo asm native-symlinks threads jit jumbo-build minimal strip system-man custom-cflags"
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d /usr/lib/tmpfiles.d /var/lib/dbus /lib/udev"
How to fix gcc 14:
diff --git a/gcc/c-family/c-opts.cc.bak b/gcc/c-family/c-opts.cc
index f4dced8..0e12ac0 100644
--- a/gcc/c-family/c-opts.cc
+++ b/gcc/c-family/c-opts.cc
_AT_@ -861,8 +861,6 @@ c_common_post_options (const char **pfilename)
reject certain GNU extensions also present the defaults for later
language modes. */
if (!c_dialect_cxx ()
- && !flag_isoc99
- && !global_dc->m_pedantic_errors
&& !OPTION_SET_P (flag_permissive))
{
flag_permissive = 1;

Received on Tue Nov 12 2024 - 00:18:57 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 12 2024 - 00:24:09 CET