News for hackers. Stuff that matters.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by symlinkk on Tuesday November 10, 2020 @07:47PM (#25054237)
Yeah I hate it when distros do this.

Does Debian actually change upstream significantly? I thought they kept things fairly vanilla.

I know Fedora patched in VAAPI support on Firefox before it was merged into the Mozilla codebase. I can’t think of a worse piece of software to patch, the last thing I want to be running untested code on is my web browser.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by girst on Tuesday November 10, 2020 @08:07PM (#25054369)
Regarding Fedora's Firefox: The Fedora Firefox mainainers, Martin Stransky and Jan Horak, are also the main maintainers of the Linux/GTK parts of Firefox. The VAAPI patches you've mentioned are (afair) mostly-if-not-all Martin's work. So he's not applying some rando's "untested" patches.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by symlinkk on Tuesday November 10, 2020 @08:31PM (#25054564)
But the patches weren’t in Firefox’s codebase, so they didn’t go through the typical Firefox QA process including the Nightly, Beta, etc process.

I’m not saying those guys don’t know what they’re doing, obviously they are experts. But I would prefer to trust but verify (not just trust).

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jasonjayr on Tuesday November 10, 2020 @07:54PM (#25054287)
Most of the Debian changes I've seen consist of changing default paths to match Debian's standards, backporting security changes (esp if a version bump changes functionality), and support 'conf.d' directories so packages can drop-in configuration files, and remove them easily.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by ClumsyPilot on Tuesday November 10, 2020 @09:25PM (#25054880)
> "backporting security changes (esp if a version bump changes functionality"

Thats not a trivial matter, its a potential source of many issues

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by marcosdumay on Tuesday November 10, 2020 @10:13PM (#25055124)
It's also a source of many solutions.

There are really no perfect option here. Upstream and distro developers have different goals, and it's up to you to decide what you should adopt.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jhardy54 on Wednesday November 11, 2020 @12:00AM (#25055632)
Opinion: the 'perfect solution' is to keep up with upstream and avoid backporting. It takes more work, but it reduces the separation between distro and upstream.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by tsimionescu on Wednesday November 11, 2020 @01:34AM (#25056040)
That's definitely not ideal for users, though.

Forced updates every 6 months is annoying to most people. Forced updates every day or so would be annoying to basically everyone.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by bipson on Wednesday November 11, 2020 @05:26AM (#25057187)
Running Fedora since I-don't-even-remember-when (around 2008?) and I was never annoyed (unless I try to run CUDA and the like, because they rely on e.g. an ancient GCC etc.).

In particularly it was a significant improvement over the annoyances of Ubuntu, and I am still angry when thinking about the brief period I was maintaining a bunch of servers running Debian. Really unnecessarily difficult - particularly updating/upgrading and trying to clear the mess their systemd approach caused, in particular missing unit files for popular services (I think it was the isc-dhcp-server).

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by tsimionescu on Thursday November 12, 2020 @01:17AM (#25067019)
But this means that you are happy to upgrade all of your computer every six months or whatever Fedora's cadence is. Most people are definitely not happy to do so, because updates mean changes to stuff that works, and most people hate it when stuff that already works changes beneath them.

This is of course even worse if you are not the end-user but are trying to ship an appliance to your customers. Why would you want to update the entire appliance OS in the field fo all of your customers just to ship a security patch, instead of sticking with the same base OS on already released appliances?

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by bipson on Thursday November 12, 2020 @07:16AM (#25068988)
Hm, let's dissect.

Upgrade schedule for Fedora is twice a year, yes. Goes by without any issues, stuff still works.

There is change and then there is change. Yes, I understand that some things don't need to change, and why do they always have to. Do I need my Desktop to still resemble 3.11 because "Why did it ever change"? - No.

Some things in life simply change and they always have. I try to keep up where change is necessary.

And if I would be shipping appliances to customers, why should I have "forced updates" of any kind outside of my control? I would never sell anything without my own repos, quality control, etc.

Do you seriously sell Debian devices to anyone and support them, if anything outside of your control breaks? I seriously don't understand the argument.

And if I ship software of any kind that relies on some libraries, I have to maintain it, of course. This includes going with the major releases.

If this is embedded hardware, where there simply are only two or three updates in its lifetime, everything is different of course, but how on earth would I then have forced updates from RedHat??

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by tsimionescu on Thursday November 12, 2020 @03:24PM (#25074450)
My company actually sells CentOS and Ubuntu based appliances (B2B) and we provide customers with updates (which they can choose to install or not) whenever a security problem is found. But we do NOT upgrade major versions in the field - we try to release our latest and greatest with the latest LTS release, and then provide any updates to that LTS. After the OS support period expires, we work with customers to migrate to the newer version of our entire system, instead of trying to provide further security patches.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by bipson on Friday November 13, 2020 @03:15PM (#25086921)
Sounds perfectly reasonable.

Why are you afraid of updates then?

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by freedomben on Thursday November 12, 2020 @01:08PM (#25072702)
> Forced updates every 6 months is annoying to most people.

You aren't forced to update on Fedora. Fedora always supports current release n and n-1. There's even a window when n-2 is still supported after a new n is released.

Even then you aren't forced to update. I work with a guy still running Fedora 29. I wouldn't recommend that personally but his machine still works fine and is rock solid stable. Probably not the most secure though :-P

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by tremon on Wednesday November 11, 2020 @05:01AM (#25057063)
Your "perfect solution" just shifts responsibility for package maintenance (keeping up with changes) to the end user. Many people use Debian exactly because they don't want to deal with every upstream brainfart.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jacobush on Wednesday November 11, 2020 @03:39AM (#25056617)
Eh, upstream is not always the best either. Sometimes they don't fix security issues. Sometimes upstream is very change happy and the distribution will do best by lagging behind "and see what happens".
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by vbernat on Wednesday November 11, 2020 @02:02AM (#25056143)
It takes less work. Just run Debian unstable. That's exactly what it is.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by eikenberry on Tuesday November 10, 2020 @11:13PM (#25055443)
Yes, but the alternative is un-patched security issues. Non-trivial but important.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jhasse on Wednesday November 11, 2020 @06:05PM (#25064086)
No the alternative can also be to live with functionality changes.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by eikenberry on Friday November 13, 2020 @03:19PM (#25086971)
New functionality means new bugs and breaking changes to old functionality. Sometimes the trade-off is worth it, but don't like being forced to update when it isn't.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by eeZah7Ux on Thursday November 12, 2020 @06:58AM (#25068859)
It's the whole point of having a distribution.

If I wanted an endless stream of new vulnerabilities I can just use upstream software.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jhasse on Wednesday November 11, 2020 @06:04PM (#25064075)
Note that "bugfixes" are most of the time considered as a functionality change.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by npsimons on Tuesday November 10, 2020 @08:11PM (#25054396)
> Does Debian actually change upstream significantly? I thought they kept things fairly vanilla.

IME, they do keep things fairly vanilla, and I speak as someone who has run Debian since . . . I wanna say 2002? Plus I've done kernel dev work, and Debian's kernel patches ain't nothing compared to what RedHat used to do.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by freedomben on Tuesday November 10, 2020 @09:41PM (#25054978)
I maintain a custom/forked driver[1] and support both Fedora/RHEL/CentOS and Ubuntu, and while Ubuntu has gotten much better, in years past I actually had to manage Ubuntu specific branches because they were so hacked up with custom patches from Canonical. I would spend more time fixing Ubuntu weirdness than I would all other distros combined. It's gotten much better the past several releases though, so thank you to Canonical for that :-)

The various RPM flavors keep their kernels vanilla enough that I can mostly just rebase on top of linux-stable, and it's been that way since I started 7 years ago (according to github).

Arch is the winner. I've never had to make a custom patch for Arch.

Disclaimer: I work for Red Hat but opinions are my own

[1]: https://github.com/FreedomBen/rtl8188ce-linux-driver

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by npsimons on Wednesday November 11, 2020 @09:44AM (#25058782)
Fair enough, but I don't put Ubuntu in the same class as Debian, because while they may share many base packages in common, I do seem to remember them patching the kernel more than Debian, and usually stuff that would break my kernel dev too. Hence another reason I'm not on Ubuntu.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by freedomben on Wednesday November 11, 2020 @10:04AM (#25058932)
Agreed. On a related but different note it does seem like Debian gets (unfairly) painted with light generated by Ubuntu. I run Debian on some machines and most of the issues I have with Ubuntu are not problems on Debian (such as: Snap obsession and forcing, Abandoned/system-wrecking PPAs that are hard to recover from, etc)
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Tuesday November 10, 2020 @10:03PM (#25055076)
> Does Debian actually change upstream significantly? I thought they kept things fairly vanilla.

No, they radically change things to match their standards. E.g. look at their tomcat package which explodes it all over the filesystem.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gspr on Wednesday November 11, 2020 @04:12AM (#25056814)
What is a distribution if not a collection of software that obey the same standard?

Without the latter, all you have is a burlap sack full of software. Hardly a distribution. Fine if that's what you want, but it's not what Debian is.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Wednesday November 11, 2020 @05:19AM (#25057151)
A distribution is by definition distributing something that already exists, so I think distributions that stick close to upstream are more in the spirit of the concept. I also think Debian's approach has shown itself to produce something less reliable on the whole. Of course if you prefer the Debian approach, knock yourself out.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gspr on Wednesday November 11, 2020 @07:49AM (#25057868)
For those of you that don't like that terminology: let's just use the words that Debian itself uses, namely "the universal operating system". What is an operating system if not a collection of software that follow a standard so as to interoperate?

> I also think Debian's approach has shown itself to produce something less reliable on the whole

I think the opposite. Is there something particular you'd like to point to? I accept the SSH disaster. But that's 12 years ago now, and it is a single example.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Wednesday November 11, 2020 @07:50PM (#25064965)
> Is there something particular you'd like to point to? I accept the SSH disaster. But that's 12 years ago now, and it is a single example.

Debian's patches to cdrecord introduced so many bugs that they eventually ended up driving the original author away from open source.

I think I remember something about the python 2 -> 3 transition being harder on Debian because of changes they've made?

The packaged Tomcat on Debian is so different that every time I've seen someone running Tomcat they've installed it manually instead.

Debian has essentially given up on packaging Hadoop. Some of their criticisms of its build process are certainly valid, but others seem to be an unreasonable expectation that everything will build exactly the way Debian expects. E.g. if I'm understanding correctly, they essentially take the position that they won't package anything built with Maven, on frankly spurious grounds.

Debian tends to end up with very outdated versions of anything from an ecosystem that uses large numbers of small libraries, or, basically, anything that isn't written in C or Perl. E.g. Python libraries are typically a long way out of date (even compared to other distributions), and Debian's package management tends to be less compatible with Python's built-in tools like pip than other distributions (e.g. Debian is more likely to rename a Python library, in my experience, which then breaks reverse-dependencies on that library or leads to having two incompatible copies of it installed). So people running Python programs on Debian tend to end up with either a difficult-to-manage mix of system and non-system dependencies, or multiple parallel installs of Python.

You could say that Debian offers a reliable platform and it's the users' fault for installing these unreliable things on top of it. But an OS exists to run applications, not the other way around, and I find that in practice Debian's approach means users are forced to step outside the managed parts of it much more than with other distributions, and it handles it less well when they do, making for setups that are less reliable in practice. Put it this way: the "add-on repository" culture is a lot stronger in Debian/Ubuntu than in other distributions, and I think that's actually a weakness rather than a strength.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gspr on Thursday November 12, 2020 @04:26AM (#25068056)
> Debian's patches to cdrecord introduced so many bugs that they eventually ended up driving the original author away from open source.

That's not how I remember it. I remember distros (Debian and others) patching cdrecord, which resulted in the upstream author getting furious and re-licensing cdrecord under a non-free license to stop them. Of course the software was then forked, and the author indeed ragequit free software development. People can read more of the story here: https://en.wikipedia.org/wiki/Cdrtools#License_compatibility...

There's a reason stuff like this is named after Schilling: https://mako.cc/copyrighteous/award

> I think I remember something about the python 2 -> 3 transition being harder on Debian because of changes they've made?

No? There was no transition. 2 and 3 coexisted, 2 was recently removed.

> The packaged Tomcat on Debian is so different that every time I've seen someone running Tomcat they've installed it manually instead.

Different as in file layout?

> Debian has essentially given up on packaging Hadoop. Some of their criticisms of its build process are certainly valid, but others seem to be an unreasonable expectation that everything will build exactly the way Debian expects. E.g. if I'm understanding correctly, they essentially take the position that they won't package anything built with Maven, on frankly spurious grounds.

Hadoop is not buildable with non-bundled dependencies, as far as I understand. This violates Policy. We were discussing reliability – am I missing something here?

> Debian tends to end up with very outdated versions of anything from an ecosystem that uses large numbers of small libraries, or, basically, anything that isn't written in C or Perl. E.g. Python libraries are typically a long way out of date (even compared to other distributions),

Can you show some examples?

> and Debian's package management tends to be less compatible with Python's built-in tools like pip

This is just not true.

> than other distributions (e.g. Debian is more likely to rename a Python library, in my experience, which then breaks reverse-dependencies on that library or leads to having two incompatible copies of it installed)

The package names are often renamed, but not the Python modules.

> You could say that Debian offers a reliable platform and it's the users' fault for installing these unreliable things on top of it. But an OS exists to run applications, not the other way around

Python libraries are hardly applications.

> Put it this way: the "add-on repository" culture is a lot stronger in Debian/Ubuntu than in other distributions, and I think that's actually a weakness rather than a strength.

Add-on repos are frowned upon in Debian.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Friday November 13, 2020 @01:14AM (#25079463)
> I remember distros (Debian and others) patching cdrecord, which resulted in the upstream author getting furious and re-licensing cdrecord under a non-free license to stop them.

Right, because he was getting blamed for bugs introduced by those patches.

> Hadoop is not buildable with non-bundled dependencies, as far as I understand. This violates Policy. We were discussing reliability – am I missing something here?

Well, if you can't install programs you want to use, that's not reliable. My point is that in practice you end up with an awkward mix of system-managed and non-managed programs installed, because there's a lot that Debian is unwilling to package, and such a system becomes unreliable, particularly when those system-managed packages diverge from their upstreams.

> Python libraries are hardly applications.

No, but in the Python ecosystem it's normal for new versions of an application to require relatively up-to-date versions of a large number of small libraries. So the applications end up out very out of date. I think there was a post here not so long ago from the Debian side about how it's increasingly unsustainable to try to include programs from ecosystems with a small-library mentality in Debian.

> Add-on repos are frowned upon in Debian.

And yet I've seen far more of them being made for Debian than for other distributions.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jcelerier on Wednesday November 11, 2020 @05:24AM (#25057177)
> What is a distribution if not a collection of software that obey the same standard?

why would that definition make any sense ?

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gspr on Wednesday November 11, 2020 @07:49AM (#25057870)
For those of you that don't like that terminology: let's just use the words that Debian itself uses, namely "the universal operating system". What is an operating system if not a collection of software that follow a standard so as to interoperate?
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by jcelerier on Wednesday November 11, 2020 @08:39AM (#25058272)
> What is an operating system if not a collection of software that follow a standard so as to interoperate?

I have never heard that definition of an operating system, but it seems that every university & place has its own so we're all speaking different languages anyways when using that word :-)

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by Fnoord on Wednesday November 11, 2020 @05:51AM (#25057298)
When you use Nix, and Nix does it, you like it when they do it, cause else they software doesn't work (Nix doesn't use default FHS).