Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Xorg for old hardware
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Alejandro_23
n00b
n00b


Joined: 26 Jun 2008
Posts: 19
Location: Argetina

PostPosted: Fri Aug 27, 2021 4:58 pm    Post subject: Emerge Xorg for old hardware Reply with quote

Hi All, I'm trying to install xorg in an old and particular hardware and its not possible to do it, xorg package require a lot of dependences which are not designed for my hardware.

jut to put in words... my hardware is a Via C3 Samuel 2 which has noy PAE, SSE, SSE2. Only MMX, 3DNow.

Graphic card is Via UniChrome.

So with that specs, libmesa is not possible to apply, rust don't work because SSE2 instruction is not supported, spidermonkey depends of rust and rest are all are the same.

so my question is.... its possible to install xorg on this hardware? I tried Debian 8 and X11 is functional (xorg starts and is fully functional but iceweasel don't work)

Thanks a lot in advance
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Fri Aug 27, 2021 5:17 pm    Post subject: Reply with quote

Alejandro_23,

Maybe.

You appear to have several questions mixed up.
xorg does not require rust or spidermonkey.

Post the output of
Code:
emerge --info
and we can start with that.

x11-base/xorg-server should install.
Set
Code:
VIDEO_CARDS="vesa via"
vesa is a fallback in case the openchrome driver won't work.
None of that requires rust.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1526
Location: South America

PostPosted: Sat Aug 28, 2021 2:12 am    Post subject: Reply with quote

NeddySeagoon wrote:
xorg does not require rust or spidermonkey.

The dependency chain that the OP is likely seeing is x11-base/xorg-server[elogind,-suid] --> sys-auth/elogind[policykit] --> Polkit --> SpiderMonkey --> Rust.

The first thing I'd do here is using /etc/portage/package.use to unset the policykit USE flag for sys-auth/elogind. Polkit is not needed if elogind is only used for running Xorg with an unprivileged effective user.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Aug 28, 2021 8:02 am    Post subject: Reply with quote

GDH-gentoo wrote:
NeddySeagoon wrote:
xorg does not require rust or spidermonkey.

The dependency chain that the OP is likely seeing is x11-base/xorg-server[elogind,-suid] --> sys-auth/elogind[policykit] --> Polkit --> SpiderMonkey --> Rust.

The first thing I'd do here is using /etc/portage/package.use to unset the policykit USE flag for sys-auth/elogind. Polkit is not needed if elogind is only used for running Xorg with an unprivileged effective user.




Honestly, I would first of all try to do x11-base/xorg-server[-elogind,+suid]. If it is old hardware, why not to use X old style :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Aug 28, 2021 11:35 am    Post subject: Reply with quote

dmpogo,

That's sort of where I was probably going ...
I wanted to see the profile setting and VIDEO_CARDS because they can cause all sorts of nasties on old hardware.
Then set a nice simple profile.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Alejandro_23
n00b
n00b


Joined: 26 Jun 2008
Posts: 19
Location: Argetina

PostPosted: Mon Aug 30, 2021 3:17 am    Post subject: Reply with quote

First at all thanks a lot for your answers!

the output for emerge --info:

Code:
Portage 3.0.20 (python 3.9.6-final-0, default/linux/x86/17.0, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo i686)
=================================================================
System uname: Linux-5.10.52-gentoo-i686-VIA_Samuel_2-with-glibc2.33
KiB Mem:      955404 total,    684336 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 09 Aug 2021 00:45:01 +0000
Head commit of repository gentoo: 2b5cc80d7317e1c6107bd1dec487bdefcb255736
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.6_p1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE @EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-march=c3 -mmmx -m3dnow -fomit-frame-pointer -Os -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=c3 -mmmx -m3dnow -fomit-frame-pointer -Os -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=c3 -pipe -mmmx"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=c3 -pipe -mmmx"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ rsync://gentoo.c3sl.ufpr.br/gentoo/ https://mirror.ufro.cl/gentoo/ rsync://gentoo.ufro.cl/gentoo/"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X X86 acl alsa bluetooth bzip2 cli crypt dri dvd fortran gdbm iconv ipv6 jpeg2k libglvnd libtirpc mp3 ncurses nls nptl openmp oss pam pcre pulseaudio readline samba seccomp split-usr ssl tcpd unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="via82xx" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa via cle266" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS





removing elogind from USE emerge returns this:

Code:
 # emerge --ask x11-base/xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by x11-base/xorg-server-1.20.11::gentoo[elogind]
# required by x11-drivers/xf86-input-libinput-1.1.0::gentoo
# required by x11-base/xorg-drivers-1.20-r2::gentoo[input_devices_libinput]
>=sys-auth/pambase-20210201.1 elogind


I already tried the option -policikit but emerge still asking me for packages which I don't want to install.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Aug 30, 2021 8:33 am    Post subject: Reply with quote

Alejandro_23,

Make a directory called /etc/portage/package.use
In that directory create a file, say xorg.

In /etc/portage/package.use/xorg add

Code:
# Run xorg suid, not with elogind
x11-base/xorg-server suid -elogind

That's the old way. Instead of having a Heath Robinson machine to do the root things for you, xorg will run as root and the Heath Robinson machine is not required.

Do not put suid into make.conf. Its a USE flag to be applied only as needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Mon Aug 30, 2021 2:31 pm    Post subject: Reply with quote

That's is a blast from the past. One of my very first gentoo installs were on Via C3 Samuel 2. May I ask why you even try to use it? If memory serves me right, this CPU do not even have CMOV instruction making it not compatible with i686 march, no code built for i686 would start, I had to limit myself to i586, It was nearly as slow as 333 MHz Celeron for slot1

What use do you have for such a hardware in 2021?
Back to top
View user's profile Send private message
Alejandro_23
n00b
n00b


Joined: 26 Jun 2008
Posts: 19
Location: Argetina

PostPosted: Mon Aug 30, 2021 3:27 pm    Post subject: [SOLVED]Emerge Xorg for old hardware Reply with quote

Hi NeedySeagoon,

Thanks for your response! now seems emerge is working.


I could emerge xorg excluding elogind. thanks a lot to all for your answers!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Aug 30, 2021 4:41 pm    Post subject: Reply with quote

SlashBeast,

I guess the answer is ... because I can. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Alejandro_23
n00b
n00b


Joined: 26 Jun 2008
Posts: 19
Location: Argetina

PostPosted: Mon Aug 30, 2021 5:22 pm    Post subject: Reply with quote

Because not all the time you need ultimate hardware to do simple tasks.

This chip does not uses a lot of energy and also I just need for control only.

if you remember this kind of motherboards they have I2C integrated and a PCI slot free with all other stuff integrated.


the most simple question is... why should I buy a Raspberry Pi to act as arduino receiver if I have this board with same things?

and also... it helps me to continue understanding Gentoo.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Mon Aug 30, 2021 5:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Instead of having a Heath Robinson machine to do the root things for you, xorg will run as root and the Heath Robinson machine is not required.
Ha. Ha. looked up Heath Robinson on wiklipedia. On this side of the pond we say "Rube Goldberg"
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Mon Sep 06, 2021 4:39 pm    Post subject: Re: [SOLVED]Emerge Xorg for old hardware Reply with quote

Alejandro_23 wrote:
Hi NeedySeagoon,

Thanks for your response! now seems emerge is working.


I could emerge xorg excluding elogind. thanks a lot to all for your answers!!


I think you should be able to do it without provided as well, by getting rid of libinput from device drivers ( evdev should be enough for you(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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