Re: [dev] tinyx port to libXfont2

From: stefan11111 <stefan11111_AT_shitposting.expert>
Date: Wed, 13 Nov 2024 10:55:34 +0000

On 2024-11-13 06:55, Storkman wrote:
>
> Check out the man page for xinit. You can specify the server and
> options
> to it on the command line.

I tried doing 'xinit -- /usr/bin/Xfbdev :0 vt1'
Sadly, when I do this, keyboard input doesn't work, and I can't even
switch to another tty.

Doing 'xinit -- /usr/bin/Xfbdev :0' works, and fixes the problem of
freezing when dwm dies,
but spawns X to the default vt7.

This is not a big problem, but I'd like it to work with vt1.
Explicitly passing vt7 also works.

Xfbdev is suid root, and should have permissions to every tty, including
tty1.
Even without suid root, it should have permissions to tty1, because it's
owned my the user I logged in as.

This wasn't a problem with the old script.

Do you have an idea how to fix this?

-- 
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 Wed Nov 13 2024 - 11:55:34 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 13 2024 - 12:00:10 CET