TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Swapping GNU coreutils for uutils coreutils on Gentoo Linux

89 pointsby JoshMcguigan11 months ago

15 comments

LightFog11 months ago
It’s a shame to see all this effort going toward replacing core GPL licensed utilities with permissive ones. It seems like a particularly common thing in the Rust community.<p>It feels disrespectful of the intentions of the work that went into the tools that are being cloned.
评论 #40735380 未加载
评论 #40735329 未加载
评论 #40735301 未加载
评论 #40735365 未加载
评论 #40735330 未加载
评论 #40738555 未加载
评论 #40736026 未加载
评论 #40735464 未加载
M95D11 months ago
&gt; Instead of modifying all the packages that depend on GNU coreutils (known as the package sys-apps&#x2F;coreutils in Gentoo), I modified the GNU coreutils package to instead install uutils coreutils.<p>That&#x27;s not the way to do it (in Gentoo). He should have added coreutils to &#x2F;etc&#x2F;portage&#x2F;profile&#x2F;package.provided. Portage would then assume the package is installed even if it&#x27;s not. This is used to install self-built binaries or packages from other distributions instead of packages provided by portage.<p><a href="https:&#x2F;&#x2F;wiki.gentoo.org&#x2F;wiki&#x2F;&#x2F;etc&#x2F;portage&#x2F;profile&#x2F;package.provided" rel="nofollow">https:&#x2F;&#x2F;wiki.gentoo.org&#x2F;wiki&#x2F;&#x2F;etc&#x2F;portage&#x2F;profile&#x2F;package.pr...</a>
评论 #40735654 未加载
评论 #40738520 未加载
评论 #40736753 未加载
ComputerGuru11 months ago
No, please don&#x27;t! At least, not if you aren&#x27;t equipped to handle the fallout yourself and not until these tools are further refined!<p>I&#x27;m a fish-shell developer and I just dealt with a user that was getting bizarre test failures. Turns out the developers didn&#x27;t account for basic things like the normalcy of `cat` having its output fd closed mid-stream (e.g. you are piping cat to something and that something exits before cat does) and their vesrion bails with an exception dumped to stderr instead of silently closing with a non-zero exit code.
评论 #40735008 未加载
评论 #40740124 未加载
wodenokoto11 months ago
If you read the article, it’s a guy playing around on his system to see if hacking this thing with that thing works.<p>If you only read the comments, you think Gentoo was switching out core utils and doing it in the worst technical way possible.
vzaliva11 months ago
Unlike some other commenters, I believe having alternatives to coreutils is beneficial. Since I started using Unix, I&#x27;ve worked with HPUX, IRIX, SunOS, Solaris, *BSD, Linux, Xenix, and probably a few others I&#x27;ve forgotten. This diversity in implementations necessitated standardization. Nowadays, 90% of the systems I use are various Linux distributions, and I often encounter packages that implicitly assume on specific versions like GNU make or GNU tar. Having alternatives encourages better compatibility and flexibility across different systems.
评论 #40735824 未加载
评论 #40736223 未加载
daghamm11 months ago
Aren&#x27;t the Rust binaries significantly larger? Wouldn&#x27;t that be a problem for embedded system and containers?<p>I&#x27;m also sceptical to the whole idea. There are tons of more interesting problems to solve than replacing an stable solution with a new one just because you don&#x27;t like GPL.
评论 #40735596 未加载
评论 #40735566 未加载
评论 #40735711 未加载
teo_zero11 months ago
I think the author swapped problems #1 and #2. The first one (name clash between different packages) is triggered only if the binaries are called the same, that is after you fix the second one (binaries having uu- prefix).<p>Problem #5 is not well explained: if &#x2F;usr&#x2F;bin and &#x2F;usr&#x2F;sbin are conflated, how could cowsay not find its templates? Paths relative to the two directories are the same. For example, if cowsay is looking for its templates in ..&#x2F;share&#x2F;cows, such relative path points to the same destination no matter if the binary is in bin or sbin.
评论 #40738824 未加载
jdoss11 months ago
Gentoo Linux will always have a special place in my heart. I learned so much about Linux doing Stage 1 installs back in 2002. I also learned patience with the long compile times and I heated my apartment during the winter. Pentium 4s kicked off a lot of heat. :)<p>Leaving the should uutils be used over coreutils debate aside, this was a fun read for me and the urge to install Gentoo one one of my many old Thinkpads is flaring up hard.
yjftsjthsd-h11 months ago
Two thoughts on the whole &quot;alternate&quot; thing:<p>1. When I first learned about the alternatives system, I initially assumed that it <i>was</i> in use for every single binary - that there was an alternatives selection to decide what provided &#x2F;bin&#x2F;ls, and one to choose &#x2F;bin&#x2F;sh, and one to determinue &#x2F;bin&#x2F;chmod, etc. (I mean, &#x2F;bin&#x2F;sh sometimes <i>is</i> depending on your distro and how they feel about bash&#x2F;dash&#x2F;ash but you get the idea.) And honestly I still kinda feel like that&#x27;s a good idea, though it leans toward redoing how packages work in a way that reminds me of nix and Gobo; &#x2F;bin becomes just a symlink farm pointing into per-package bin directories.<p>2. Although this kind of bulk-replacement is a good initial test, I feel like letting packages directly depend on GNU coreutils or not is maybe a good way to go - you can test packages one by one and switch them to point to a virtual package as they&#x27;re validated, thereby letting the package manager properly manage dependencies by giving it enough information to asses the situation.
DeathArrow11 months ago
To me &quot;let&#x27;s rewrite X in Y&quot; seems like a wasted effort, but what do I know.
评论 #40756653 未加载
vkaku11 months ago
I welcome this. Would love to see more people attempt building with uutils.
egberts111 months ago
This is good stuff, especially when making an embedded system.<p>Good work, Joshua Mcguigan!
parasti11 months ago
What motivates the uutils project? I get rewriting things in language X. I don&#x27;t really get naming your thing the same name, making a pretty website for it, and apparently trying to replace the original thing.
hulitu11 months ago
&gt; Similar to busybox, coreutils uutils was being installed as a single binary, and each entrypoint (i.e. ls) was just a symlink to that binary.<p>What can go wrong ? &#x2F;s<p>One tool to rule them all.
评论 #40739030 未加载
nubinetwork11 months ago
&gt; This Gentoo setup has &#x2F;bin, &#x2F;sbin, &#x2F;usr&#x2F;bin, and &#x2F;usr&#x2F;sbin all merged.<p>I hope this isn&#x27;t going to be the norm in the future, but Gentoo has been making my life difficult for years as it is... it&#x27;s as if the developers don&#x27;t test or use what they are forcing on everyone.
评论 #40735086 未加载
评论 #40736954 未加载
评论 #40735054 未加载