News for hackers. Stuff that matters.
Re:“Open source” is broken by the_duke on Saturday December 11, 2021 @03:42PM (#29524099)
Some package managers (eg yarn , cargo) have a solution for that and allow you to specify a local resolution override that will apply to all dependencies.
Re:“Open source” is broken by zaarn on Saturday December 11, 2021 @03:45PM (#29524114)
But again, that means EVERY single product, open source or not, will have to patch their deployment to use the fork instead of simply using the updated version of upstream. Permanently no less if it's unmaintained.

Meaning every single Java product would have to include that "if you want to use log4j, you have to include this patch line to use a fork, because of unmaintained dependencies".

That just ossifies log4j and fixes nothing. Patching dependencies in Cargo is not meant to permanently replace code, it's to be used while you're waiting for an upstream merge.

Re:“Open source” is broken by IiydAbITMvJkqKf on Saturday December 11, 2021 @04:00PM (#29524257)
You can fix it for your own applications and libraries. The tooling exists.

You can't force other people to use your fork.

Re:“Open source” is broken by zaarn on Saturday December 11, 2021 @04:06PM (#29524305)
Correct, all those other people will have to manually find some fork or make their own, repeating the same work thousands of times and ossifying that some part of your java build system now permanently includes a section to patch log4j dependencies.
Re:“Open source” is broken by alexvoda on Saturday December 11, 2021 @07:47PM (#29525907)
You can not force your dependencies to do what you want. You can only patch the problem for yourself and maintain that patch in the build system, or you can fork each dependency in the chain, maintain those and then your build system is cleaner.

There is nothing wrong with these options.

Re:“Open source” is broken by zaarn on Sunday December 12, 2021 @03:39AM (#29528060)
Forking yourself is not scalable for fixing a 10/10CVE and I don't get how people think that somehow "fork it" is a viable solution across the entire industry.

This is not about forcing my dependencies to do anything, this is about caring about maintainers and maybe ensuring that the bedrock of our ecosystems aren't maintained by unpaid volunteers in their free time, exploiting the sweat on their backs for our amusement for free. Forking the project is just spitting on their efforts on top of that.

Re:“Open source” is broken by alexvoda on Wednesday December 15, 2021 @03:14PM (#29571046)
Entirely agree, we should find ways to reliably support upstream. But that is a different issue, and unfortunately it is one that the main beneficiaries are not willing to solve.

Forking solves the issue of an upstream dependency not willing to fix a bug.

Re:“Open source” is broken by zaarn on Wednesday December 15, 2021 @11:16PM (#29574769)
As I've pointed out a few times now, forking upstream is not a long term or sustainable solution.
Re:“Open source” is broken by kristjansson on Saturday December 11, 2021 @04:12PM (#29524350)
Does it matter that other products don’t patch something that yours does? Like, sure, it’s unsatisfying from an ecosystem perspective, and one would hope for fixes to be incorporated upstream. But if they aren’t, who cares if other products are broken after you’ve patched the ones you’re responsible for?
Re:“Open source” is broken by zaarn on Saturday December 11, 2021 @04:14PM (#29524360)
It does because now I pull in a dependency that indirectly relies on log4j instead of my favorite fork of log4j and I end up having the same CVE in the project anyway. Yes this needs to work ecosystem wide, otherwise you have fixed nothing at all.
Re:“Open source” is broken by the_af on Saturday December 11, 2021 @05:09PM (#29524719)
> It does because now I pull in a dependency

How would proprietary software make this better? You wouldn't even have anything to pull in!

Is your argument "having the source code and the legal rights to fix this bug even when nobody else wants to or even can fix it is not good enough because not everyone will use my fix"? Because good luck with proprietary software then!

Re:“Open source” is broken by zaarn on Saturday December 11, 2021 @06:21PM (#29525269)
My argument is not closed source. My argument is that "just fork it" does not magically fix all problems. Closed source makes this worse but "fork it" is no answer either.

I believe I made this very clear on my very first comment.

Re:“Open source” is broken by kristjansson on Saturday December 11, 2021 @07:28PM (#29525734)
Right … open source doesn’t guarantee an absence of problems, only that, in the worst case, a user can repair a problem herself. As you note, that’s strictly preferable to closed source, where a problem with a dependency is not guaranteed to be fixable by the user. Isn’t that enough?
Re:“Open source” is broken by zaarn on Sunday December 12, 2021 @03:41AM (#29528062)
That is not sufficient no. As a user, I want to be able to support developers so they have the time to fix things that go wrong. That the log4j Maintainers are entirely unpaid for maintaining what amounts to the bedrock of the java ecosystem is a tragedy and that people continue to argue that this is how it should be are simply exploiting what amounts to slave labor.
Re:“Open source” is broken by the_af on Sunday December 12, 2021 @05:59AM (#29528625)
> As a user, I want to be able to support developers so they have the time to fix things that go wrong.

As an individual user, you shouldn't be required to. It's not how or why the project started, anyway. Maybe big companies whose system depend on log4j could fund it, yes.

> what amounts to slave labor

That kind of hyperbole doesn't help the discussion. The situation is nothing at all like slave labor.

Re:“Open source” is broken by IiydAbITMvJkqKf on Sunday December 12, 2021 @06:09AM (#29528671)
You have zero clue about what slave labour is.
Re:“Open source” is broken by zaarn on Sunday December 12, 2021 @06:13AM (#29528691)
I have plenty of clues of what slave labor is and big companies exploiting the hard work of people working for free without paying them is definitely pretty damn close.
Re:“Open source” is broken by IiydAbITMvJkqKf on Sunday December 12, 2021 @07:55AM (#29529208)
This is reddit tier derangedness, any one of the millions of people living under real slavery, where you get lined up to a wall and shot if you refuse to work would gladly switch places with anyone living under what you dream up to be "slavery".
Re:“Open source” is broken by the_af on Sunday December 12, 2021 @08:53AM (#29529606)
Agreed, calling this slavery is a level of hyperbole that doesn't help the debate at all.
Re:“Open source” is broken by the_af on Saturday December 11, 2021 @08:45PM (#29526274)
I misunderstood you then. I agree with your statement. Open source doesn't solve all problems, just some. There are hard problems about dependency management and vulnerabilities that are not magically solved by something being open source, I agree.