Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install static-dev while using udev/devfs tmpfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bulletbill22
n00b
n00b


Joined: 15 Oct 2022
Posts: 34

PostPosted: Thu Jul 11, 2024 6:37 pm    Post subject: Install static-dev while using udev/devfs tmpfs Reply with quote

I am trying to install sys-fs/static-dev. Running 'sudo emerge -avuDN @world' I get the following list of packages to install:

Code:
│[ebuild  N     ] acct-group/uucp-0-r3::gentoo  0 KiB
│[ebuild  N     ] sys-apps/makedev-3.23.1-r3::gentoo  USE="-build (-selinux)" 0 KiB
│[ebuild  N     ] sys-fs/static-dev-0.1-r3::gentoo  0 KiB


But when attempting to merge these packages, I get a pre-merge check error:

Code:
We have detected that you currently use udev or devfs or devtmpfs
and this ebuild cannot install to the same mount-point.
ERROR: sys-fs/static-dev-0.1-r3::gentoo failed (pretend phase):
  Cannot install on udev/devfs tmpfs


/dev is a devtmpfs and I don't see an entry for it in fstab.
fstab says /dev/shm is a tmpfs
fstab says /dev/pts is devpts with options 'gid=5,mode=620'

What needs to be changed to enable installing static-dev?


Last edited by bulletbill22 on Mon Jul 15, 2024 12:10 am; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4650
Location: Bavaria

PostPosted: Thu Jul 11, 2024 9:05 pm    Post subject: Re: Install static-dev while using udev/devfs tmpfs Reply with quote

bulletbill22 wrote:
/dev is a devtmpfs and I don't see an entry for it in fstab.

Look into your kernel and check if you have:
Code:
Device Drivers  --->
    Generic Driver Options  --->
        -*- Maintain a devtmpfs filesystem to mount at /dev
            [*]   Automount devtmpfs at /dev, after the kernel mounted the rootfs

In <Help> you see the reason why it is hard enabled:
Code:
Selected by [y]:
  - GENTOO_LINUX_UDEV [=y] && GENTOO_LINUX [=y]

Look now into:
Code:
Gentoo Linux  --->
    [*]   Linux dynamic and persistent device naming (userspace devfs) support


bulletbill22 wrote:
What needs to be changed to enable installing static-dev?

Kernel and you must de-install udev ... I DONT RECOMMEND ... If you really want this you have to wait for our forums legend Neddy ... :lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3010

PostPosted: Thu Jul 11, 2024 11:50 pm    Post subject: Re: Install static-dev while using udev/devfs tmpfs Reply with quote

bulletbill22 wrote:
I am trying to install sys-fs/static-dev

Bear in mind you will not be able to run xorg, all the X input and video drivers now in Portage depend on udev.

Essentially only useful for console system.
Back to top
View user's profile Send private message
bulletbill22
n00b
n00b


Joined: 15 Oct 2022
Posts: 34

PostPosted: Fri Jul 12, 2024 6:44 am    Post subject: Reply with quote

Quote:
Bear in mind you will not be able to run xorg, all the X input and video drivers now in Portage depend on udev.

Essentially only useful for console system.


Well this server is mostly only console, but I do sometimes run X apps with X forwarding.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22193

PostPosted: Fri Jul 12, 2024 1:22 pm    Post subject: Reply with quote

X11 forwarding causes the application to talk to the Xorg server, which would be running where you display a GUI and have a keyboard. You don't need to run (or even install) Xorg on the server if you only want to run X11 applications on the server and render them on your desktop.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 305

PostPosted: Sat Jul 13, 2024 7:26 am    Post subject: Reply with quote

I've switched from udev to static-dev back in 2016, for a while.

You'll have to boot a live environment, chroot your gentoo, but without `/dev` and then install static-dev.
...
Assuming I remember the steps correctly.

As for Xorg, you can certainly run it. There's just more steps to setting it up:

Put -udev in your make.conf's USE flags.
Write ebuilds for xf86-input-keyboard and xf86-input-mouse.
Put those ebuilds into your local repository.
Replace xf86-input-libinput with the other two above.
And the hard part - write your own Xorg.conf, because you have no udev any more.
Even harder part - if you are using an Intel gpu, you will have to be explicit about xorg module loading order. Don't know about Intel Arc or other dedicated gpus.
Back to top
View user's profile Send private message
bulletbill22
n00b
n00b


Joined: 15 Oct 2022
Posts: 34

PostPosted: Mon Jul 15, 2024 12:12 am    Post subject: Reply with quote

@bstaletic Thanks for the tips. This server has no GPU and doesn't run any X apps except via X11 forwarding.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum