[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: gentoo.jpg (71 KB, 728x762)
71 KB
71 KB JPG
>no real purpose outside of making packages take 10x longer to install
What am I missing here?
>>
-march and any compile flag you want
use flags
ebuilds
openrc by default

if you search these terms and it doesnt make any sense then obviously it isnt for you
>>
>>108062354
Having OpenRC is nice, but I still don't see the purpose of compiler flags, is there ever a case where you actually get a substantial performance gain with a custom compiled package over just a binary?
>>
>>108062354
The entire idea behind gentoo is to compile your entire system targeting your exact architecture and facilitate that process? If so, that's pretty cool. Compiling from source is often a pain in the ass. Gentoo has been a meme for he longest time but I never really looked into it.
>>
>>108062267
steam ruins my gentoo install with those 32bit deps
>>
>>108062400
Yes.
>>
>>108062400
No, it is minimalist brainrot syndrome. There are no performance gains, build servers already use highest optimization flags. It is for excluding shit at compile time
>>
gentoo is based
>>
>gentoo thread
inb4 wall of text
>>
File: 1770112593142.gif (9 KB, 355x261)
9 KB
9 KB GIF
>>108062267
Use CachyOS instead, they do most of the work for you with package optimizations.

>>108062422
https://github.com/ivan-hc/Steam-appimage
>>
>>108062450
They do not, they don't do pgo or use x86-64-v4 features.
>>
>>108062462
second this
>>
>>108062462
>>108062513
third this
posted from my macbook
>>
>>108062400
>>108062450
do you seriously think a binary that runs on both a core 2 duo and an emerald rapids xeon (as is the case with most distros) is completely optimized for either case?
>>
File: maxresdefault.jpg (113 KB, 1280x720)
113 KB
113 KB JPG
>>108062267
>>
>>108062267
yes, a brain to comprehend gentoo
>>
>>108062584
>do you seriously think a CPU that runs a binary from 20 years ago and a binary for 0 years ago hasn't completely optimized for the 20 year old binary?
>>
File: gentoo_systemd.jpg (154 KB, 850x850)
154 KB
154 KB JPG
The point isn't the compiling nor the optimizations. The point of gentoo is to have absolute control of what's on your system. The only way to remove harmful features from software is to compile them yourself with those features disabled. Eg removing dependencies on redhat crapware. Or sometimes the other way around, you get to add non-standard features to the software you run. Eg EAC compat in glibc, alsa support in firefox, etc optional patches.
We've had these threads for as long as I remember, when will you learn?
>>
They have a lot of binary packages available now which solves the compile time problem. I have no idea how plausible it would be to install a system and not really have to build much.
>>
File: install_gentoo_s.png (163 KB, 480x360)
163 KB
163 KB PNG
>>108062488
just do it
>>
>>108062584
There is no measurable difference
>>
>>108062407
>your exact architecture
as opposed to the prebuilt packages that target half my architecture?
>>
>>108062267
The boomer mindset that is now seeping into Gen X and older Millennials.
>Muh nostalgia
>Muh learn how to walk before ya run
>Back in muh day we had to compile our own drivers
It's all old fucks who can't let go and seem to have forgotten that we live in a new paradigm where we don't have to instead each and every library we need for an app or software package.
>B-but but but
But nothing.
Linux has evolved and is far better now than it has ever been.
Gentoo, Slackware, LFS are for chuds. People who value their time install Fedora, Mint, Pop, Ubuntu, Catchy, or a slew of other distros that make your life 1000 times easier.
That's not hate it's truth
>>
>>108062267
>no real purpose
besides PURGING POETTERINGWARE FROM MY DISTRO
TOTAL POETTERING DEATH
>>
>>108062267
>take 10x longer to install
more like x100000, retard. firefox takes an hour and a half to compile for me here.
>What am I missing here?
you're too low iq. gen2 is just not for you.
>>108062656
lmao! so true
>>
>>108063491
holy filtered
>>
>>108062354
>package manager written in python award
guix >
crux >
>>
>>108062267
Probably the most fresh distro among stable.
Also ability to customize as you want. You can literally cut out something rather huge.
But for most usecases yeah, it's kinda a waste of time. It was a good next exercise to learn more about Linux ecosystem after Arch for me but I called it a day after that.

>>108062511
>>108062584
But how does that help? Check what instructions are in v4 in comparison to v3 which is minimal for at least RPM distros now and tell me how is that shit used by system.
The irony is the shit that can actually benefit from those is usually something that you won't compile.
PGO is... well... PGO.
For me the only noticeable win was faster boot time compared to Arch, both booted directly into kernel.

Also those niggers used python for portage, fucking subhumans. I get that with compilation times loss from using python is not as noticeable as it is for dnf<5 but still. The fact that walking over dependency graphs takes so long and that simplest loops are not auto resolved with compiling twice is such a fucking meme.
>>
>>108064803
agree the simple fact that portage is a python mess makes Gentoo dogshit. I wrote my package manager in go and it's awesome, zero external dependencies, statically compiled x86 and arm binaries. I can uninstall glibc and my package manager still works
>>
>>108064854
It takes hardly any time to compile things, outside of chromium or something. So it doesn't bother me. But yeah, agree about python. But until an alternative exists it's the best I have.
>>
>>108062267
packages are optimized for your system, because it was compiled on your system
>>
>>108064803
>mentions guix
fuck you
lisp is fast, don't compare it to python
>>
>>108062400
>is there ever a case where you actually get a substantial performance gain with a custom compiled package over just a binary?
Yes, see CachyOS benchmarks from Phoronix that constantly stomp over other distros.

Optimised binaries and kernel packages make a difference.
>>
>>108064857
static linking is just interpreter (ld.so) + all its dependencies bundled into one binary
anyone can do that
>>
>>108064857
On Gentoo if you unmerge Glibc then nothing breaks because the preserved libs feature of Portage keeps them there. Yes, they thought of that.
>>
>>108064857
>tar czf your-package-manager.tar.gz your-package-manager-binary /usr/lib/glibc
>>
>>108062422
I use an Archlinux chroot for that. There are signs Valve may finally have realised 64-bit computing exists though. On Windows they're shipping 64-bit binaries now, on macOS they did that ages ago thanks to Apple (but who games on a Mac?) so Linux is hopefully next.
>>
im being swayed as my hardware ages and everyone else is going for latest today
>>
>>108065029
what was valve's reason to use 32-bit binaries?
is it just them being retarded or some technical reason?
>>
>>108064963
It's a retarded language that should be dead for like 30 years now but bunch of thinking cap niggers keep it alive for some reason.
>>
>>108065154
Just Valve time.
32-bit computers used to still be in use even though everything else has long since moved on only now Valve is doing so. Steam is quite possibly the only piece of 32-bit software running on your PC.
>>
>>108065162
lambda calculus is the correct way to do computation
>>
>>108064979
yet none of the distros do that, go ahead delete /lib/libc.so.6 or equivalent and show me your package manager still working
>>108064993
delete /lib/libc.so.6 and /bin/python* and show you me how portage recovers
>>108065004
what if tar is not statically linked, what if you don't have a local binary and need to fetch it from the repos
>>
>>108065390
you extract the tarball archive into your ISO, retard
when you boot, glibc is there, voila, super easy
>delete /lib/libc.so.6 and /bin/python*
delete /usr/bin/your-package-manager and let's see your package manager recover
your argument is midwit, anon
>>
>>108065420
why are you talking about an ISO retard.
my point is if you break python portage is broken, if something breaks glibc 99% of distros are broken, with my package manager is just do packagemanager install glibc and it fetches the archive from the repo and installs it. zero dependencies required, no buysbox required either.
>>
File: 1733254129444655.jpg (1.01 MB, 894x894)
1.01 MB
1.01 MB JPG
>>108062267
>Source-based with optional binary packages
>Optimized builds for your specific processor
>Compile time customization through USE flags
>Overlays for custom repos
>Very simple to write your own ebuilds
>Very simple (and expected) to compile your own kernel
>Good documentation
>>108062400
Yes.
>>108063159
>that image
By Me.
>>
>>108064854
>>108064857
>python portage
I wonder how much of the slowdown during dependency resolution have to do with Python and how much with the algorithmical complexity (combinatorial explosion) of graph traversal with backtracking constrained by masks, USE flags, slots, etc...
>>108065207
Based, although not a single Lisp is actually implemented with λ-calculus, that would be unbearably slow without dedicated hardware, they are all implemented with virtual machines, or compiled, it's more of a way to think about computation.
>>
>>108065443
Python is simply a system dependency like many others, similarly Portage depends on Bash too, and?
>>
>>108065448
I heard that their algorithms are suboptimal trash.
Doesn't cancel out the fact that they chose python. And that it does its job in slowing shit down.
>>
>>108065162
>t. brutally filtered
>>
>>108063491
Why are zoomers so scared of actually learning something?
>>
>>108062488
You just know the gentooFUD schizo will appear
>>
>>108062400
Not just performance, also security...if you don't need a specific part/functionality of a program just dont compile it with the program. Less code getting loaded into memory = less attack vector for unknown vulnerabilities. Also it all adds up...think about all the unnessesary ram usage when you deploy thousands of virtualservers etc...this also makes backups smaller that are done of those machines...storing and loading bloat is expensive.
>>
>>108066701
but you need all the python bloat that comes with portage and extra overhead from compiling everything lmao, if you want a minimal system use alpine.
>>
>>108066950
>all the python bloat that comes with portage
Python itself is not even that bloated, at its core it's a bytecode compiler and virtual machine with a bunch of data structure implementations all in C, sure it has a complete standard library written in Python (oh noes the horrors imagine having a decent std huh rustfags?)
It gets its bad reputation from its ecosystem and packaging, but Portage has no third party Python dependencies.
>extra overhead from compiling everything
???
>>
>What am I missing here?
/etc/portage/patches
>>
>>108067024
>???
are you retarded or just pretending? do you think gcc and all the other development tools and headers don't add extra bloat to your minimalist setup?
>>
File: 1770160962469135.gif (266 KB, 480x270)
266 KB
266 KB GIF
>>108067155
>gcc and all the other development tools and headers
No faggot, that's not what bloat is, that is called useful (actually fundamental) software.
Actual minimalism braindamage here.
>>
File: 1064966400.jpg (115 KB, 909x938)
115 KB
115 KB JPG
>>108067178
didn't realize I was talking to the anime avatar schizo tard, here have your last (you)
>>
Compiling isn't an installation process. And it takes much longer than that.
>>
File: 1767496967262675.png (41 KB, 741x527)
41 KB
41 KB PNG
>>108067207
If you don't have a compiler installed and you can't compile you're not worth talking to anyway.
>>
>>108065154
You don't have video games otherwise faggot
>>
File: i.4cdn.orgw1461649131254.jpg (360 KB, 1111x1462)
360 KB
360 KB JPG
>>108067266
if you don't have your own distro you're not worth talking to either
>>
Look at these faggots posting anime girl avatars.
They won't even use git. They don't know how virtualization works.
They think 32 bit dependencies are bloat. They are unemployed underaged skiddies.
>>
>>108062267
Nothing. It's pointless. Which was fine when it was based, but it's been pozzed for years. I mean, look at what this thread became almost instantly.
>>
File: i.4cdn.orgw1461641461079.jpg (392 KB, 1920x1200)
392 KB
392 KB JPG
>>108067325
I built my distro and package manager from scratch, full multilib support, binary repos and cross compilation to arm64 for my Pi that also runs my own distro. what have you done faggot?
>>
>lambda calculus
>it's not lambda and its not calculus
total cs death
>>
File: 1769863318079834.gif (7 KB, 64x64)
7 KB
7 KB GIF
It's the only sane distro but sadly trannies are slowly infiltrating into the gentoo development community so we'll see how long it lasts.
>>
>>108062450
you are a retard
>>
i just find it weird that arch is so highly respected here for being about setting it up how you like, yet gentoo is made fun of for providing even more options for setting it up how you like

the issue of compilation times is so overblown as well imo. sure it may be off-putting during the initial installation, but like once things are set up, why would i care how long it takes to compile a new version of my browser? i can keep using the current version while it's building, i'm not using my computer 24 hours a day, either. not to mention there are binary packages available for things you don't care to build yourself
>>
File: 1763803788452098.jpg (727 KB, 1012x1536)
727 KB
727 KB JPG
>>108067406
I was going to do that but it became so fucking boring to write install scripts for the packages that I quit early. I had my own package manager which was just a shell script and it supported dependency resolution and everything was fucking simple. Just too much work with the actual nuances for each package.
>>
>>108066950
I would prefer portage to be written in lua. I do think it has to be an interpreted language, because you want it to be able to take lots of custom changes.

But it's python. I don't really care about conpiling that either, because i need it for other things already, so it is not bloat.
Idk what your definiton of bloat is, but it is surely something unique to you.

I am not going to reject gentoo and go for a binary distros because the package manager is written in a language i have to install in all of them.
I dont understand what the argument is here.
>>
>>108067444
Have you been on 4channel for 30 minutes? Your perspective is entirely wrong. Arch has been made fun of this board for literally a decade. Gentoo was largely praised up until recently (because of it's tranny coup)
>>
>>108067266
I use proprietary nvidia drivers, so i need to have a compiler installed, and the kernel sources, anyway, to build the module.
>>
>>108067446
yeah it can get boring so I implemented a script to scrape the arch pkgbuild to make a new package structure that fits my package format. so instead of doing everything from scratch I just do a few adjustments in nano and I'm done.
>>
>>108067484
i'm just talking about recently
>>
File: 1748547811252318.png (420 KB, 530x540)
420 KB
420 KB PNG
>>108067504
I guess that works, nice. I got as far as into compiling Xorg and I just said fuck it I'm not maintaining this shit.
>>
>>108062267
I used gentoo for three years, over a decade ago. And my only prior experience with Linux was a year of Ubuntu.
Gentoo helped me a lot.
You don't need to be skilled to use Gentoo, you acquire skill by using it. All the docs and manuals exist. You just have to be ready to read a bit.

In fact, Gentoo IS the solution to distro hopping.
If you know how shit works, you can modify any distro to your liking.
You use Fedora or Ubuntu and don't like something? Thanks to your prior Gentoo experience, it's no problem for you to build your own package.

Distro hopping is retarded. If you switch distro than twice in a year, you unironically need to install Gentoo and main it, until you feel that you are ready. Once you have knowledge and you don't get anything new out of it, you can go for something that doesn't take hours to update firefox.
>>
>>108067577
>you can go for something that doesn't take hours to update firefox.
But it doesn't, thanks to FEATURES="getbinpkg"
>>
>>108067596
Why use gentoo if you then get a binary package?
Compiling firefox is a good experience, because it has so many build flags and so many different languages.
So rather than having to maintain a user.js with 500 flags to disable telemetry and spyware, you just don't compile that shit in in the first place.

I would take clang and llvm from binary packages, though, there is no reason why you would ever care about that shit, llvm is cancer that should not exist... but still does, because corpos dont like the gcc license.
>>
File: i.4cdn.orgw1465008593458.jpg (658 KB, 1920x1200)
658 KB
658 KB JPG
>>108067546
yeah I automated a lot, local repology instance to keep track of outdated packages, bump version that automatically bumps a package version, applies substitution to sources file and commit to git. automatic sync of local packages with the binary repo and so on. next automation step would be to have a git hook that sends build requests to a build server that then uploads successful artifacts back to the binary repo. something like alpine does with their apk builds.
>>
>>108067632
>Why use gentoo if you then get a binary package?
You still configure USE flags and stuff for all packages as before, portage simply pulls a binary build of a package from the binary repo IF it matches your USE flags. If it doesn't, it compiles from source.
>>
>>108067432
Did it take 8 hours to compile that response?
>>
>>108067697
-> firefox 147.0.3 2 x86_64 native 27m58s
-> nodejs 25.6.0 1 x86_64 native 24m36s
-> gcc 15.2.0 1 x86_64 native (multi) 7m22s
-> rust 1.93.0 1 x86_64 native (multi) 21m5s
compilation times are not bad if you don't have a shitbox, the worst is probably webkit2gtk but appart for lutris nothing I use requires it
>>
>>108067546
>>108067638
Are you doing LFS?
>>
>>108067851
it's mostly based on LFS/Gaming on LFS and Arch but I have everything packaged including KDE Plasma.
>>
File: 1507095480730.jpg (403 KB, 824x1018)
403 KB
403 KB JPG
>>108067950
>KDE Plasma
Gigabloat.
>>
File: i.4cdn.orgw1462452569342.png (3.89 MB, 2135x1936)
3.89 MB
3.89 MB PNG
>>108068010
but it's comfy so I don't care
>>
File: 1748069616048900.png (203 KB, 1280x800)
203 KB
203 KB PNG
>>108067638
I see, very nice work. As a last resort before ditching my idea of my own distro, I tried to use the BSD pkgsrc package manager (builds from source) and I managed to get Xorg running but even with pkgsrc's patches it was too much work for me because there were bugs related to linux even though pkgsrc theoretically supports linux.
>>
File: 1768942198963961.png (482 KB, 1414x1237)
482 KB
482 KB PNG
Opinion on doing bootstrapping from Gentoo stage 1 with a custom profile?
Can it be considered an LFS-lite experience?
>>
>>108068052
yeah it's a lot of work but I always liked playing around with LFS/Gentoo/Kiss so making my own distro made sense to me and I decided to make the package manager from scratch when I realized my lack of programming skills wasn't an issue anymore thanks to AI.
>>
>>108068119
while i'm not an expert, from what i understand starting from stage 1 is likely practically pointless unless you have an actual need for it, like if you're targeting an unusual platform or something. even with a stage 3 install usually the first steps involve setting up your make.conf and rebuilding everything, replacing the binaries from the stage 3 anyway
>>
Which way is the logo facing? is it an arrow pointing right or a pacman eating left?
>>
>>108065390
>delete /lib/libc.so.6 and /bin/python* and show you me how portage recovers
Why are you deleting that though? What even is this argument? If you fucked up that catastrophically restore from your last known good backup. You shouldn't be manually deleting ANYTHING in /lib. If you are then you clearly don't know what you're doing and Gentoo is not for you.
>>
>>108068119
What >>108068270 said, you don't need it. If you're thinking you should do that so everything uses your custom flags or whatever then you still don't need it,
emerge -e @system
followed by
emerge -e @world
is enough.
>>
File: 100870759_p0.png (1.93 MB, 1447x1447)
1.93 MB
1.93 MB PNG
>>108068270
>>108069134
But I wanted to hypothetically use a non-supported init or develop my own implementation of portage I would need to bootstrap from stage 1 right?
I might also just do it to better undestand Gentoo and Portage as a whole, right now it's not entirely clear what is configured and how are things built in the profile.
>>
>>108069215
>But I wanted to hypothetically use a non-supported init or develop my own implementation of portage I would need to bootstrap from stage 1 right?
Not at all. Just make an ebuild for your "hypothetical non-supported init" and unmerge OpenRC and Sysv. Be aware that you'd be on your own to make init scripts for your hypothetical non-supported init but you absolutely don't need a stage1 for that.

Stage1 installs are designed for bootstrapping new platforms (think a new CPU architecture, etc).
>>
>>108069238
>>108069215
Where you would need a new stage1 though is if you were doing something unusual like using a different libc like Relibc or Picolibc, etc, instead of one of the supported libc's (currently only Musl and Glibc) or using different toolchains like Clang as a system compiler with libc++ (Clang didn't used to be supported as a system compiler without the GCC bits but now it is).
>>
>>108069262
>>108069215
Also, as for developing your own Portage, as long as you support the same package database format in /var/db/pkg then you could replace Portage without needing an entire new stage1.

Keep in mind this is a very large undertaking and would be a lot of work. There were attempts to replace Portage with a C++ implementation called Paludis but it failed because it didn't keep up with Portage development and was full of bugs so couldn't reliably be used.
https://wiki.gentoo.org/wiki/Paludis
>>
>>108069215
>use a non-supported init
You could literally just point /etc/inittab to your own shell scripts in /etc/init.d/
>>
>>108069238
>>108069262
>>108069457
>>108069625
Thanks for the information.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.