3 ms·
For me this is great news for less powerful devices I use that I don't feel like setting up a binrepo for (especially when it involves cross-compilation), but s
by mid-kid 3y ago
For me this is great news for less powerful devices I use that I don't feel like setting up a binrepo for (especially when it involves cross-compilation), but still want to reuse my portage config and custom ebuilds for.
- goku12 3y agoThere are definitely going to be interesting use cases like yours. I'm in no way against this development. The more the merrier! But to be honest, I haven't looked at binrepos so far. Perhaps your reply is a good reason to.
- adrian_b 3y agoFor less powerful devices it has always been possible to install Gentoo in a chroot directory on a powerful computer, using a configuration appropriate for the less powerful device, compile and install in the chroot environment any packages, and then just copy all the files from the chroot directory, through Ethernet or using a USB memory, over the root HDD/SSD of the less powerful device. I have used Gentoo in this way on many small computers with various kinds of Atom CPUs and with a small DRAM memory and small and slow SSD/HDD. With multiple computers of a compatible kind, the files from such a chrooted installation compiled on a powerful computer can be copied over all of them and everything will work fine. If the chrooted installation is preserved, it can be updated later with other software packages and all the changes can be propagated with rsync on all other computers. Linux is not like Windows, which will complain when run on a different computer than that on which it was installed initially.
- bee_rider 3y agoNext you’ll tell me there are optimization settings other than -mtune=native
- klodolph 3y agoWell, duh. There’s also -funroll-loops.
- trelane 3y agoYou always have to remember to fun roll the loops, though. :) https://forums.gentoo.org/viewtopic-t-245041-start-25.html https://forums.gentoo.org/viewtopic-t-245041-start-25.html
- adrian_b 3y agoI am not sure what you mean, but in the chrooted environment where you compile for a distinct machine you obviously use configuration options, including compiler flags, appropriate for the target computer, not for the host computer, so "-mtune=native" cannot be used. My point is that you do not need to setup a binrepo or any other complication like this. You can install easily Gentoo on a very weak computer, by performing the installation on a typical desktop computer, which may run a different Linux distribution, not necessarily also Gentoo, and then just copying the files. The Gentoo manual has always included information on how to install Gentoo inside a chrooted environment.
- trelane 3y ago> not for the host computer, so "mtune=native" cannot be used. Right, I am sure they intended it to be absurd in an amusing way.
- bee_rider 3y agoIndeed I did. Although, I do somewhat think that working out good optimization flags for cross-platform compiles is a moderately unusual skill, even among people who compile things regularly. Hopefully I caveated that sufficiently, I’m not saying it is a hyper-advanced dark art or anything. I have in the past set up code on a cluster to just compile on one node for the first run with -mtune=native because I’m lazy!
- Maken 3y agoNever forget -Ofast.
- mid-kid 3y agoI know this, I mentioned this as "setting up a binrepo" in my comment, as I think the binrepo approach makes more sense (esp. with regards to easy updates). It's just an unwieldy amount of extra overhead, disk space, and time, which I'd rather avoid, especially for devices I'm not fully committed to maintaining over a long period. I've tried what you mention, it's just never convenient enough to be worth the pain.