Skip to content

discourse: 3.1.0 -> 3.2.2 - #299269

Merged
mweinelt merged 3 commits into
NixOS:masterfrom
mweinelt:discourse-update
May 27, 2024
Merged

mweinelt merged 3 commits into
NixOS:masterfrom
mweinelt:discourse-update

Conversation

@mweinelt

@mweinelt mweinelt commented Mar 26, 2024 •

Copy link
Copy Markdown
Member

https://meta.discourse.org/t/3-1-1-security-and-bug-fix-release/278760
https://meta.discourse.org/t/3-1-2-security-and-bug-fix-release/282427
https://meta.discourse.org/t/3-1-3-security-and-bug-fix-release/284973
https://meta.discourse.org/t/3-1-4-security-and-bug-fix-release/290939
https://blog.discourse.org/2024/01/celebrating-discourse-3-2/
https://meta.discourse.org/t/3-2-1-security-and-bug-fix-release/298237
https://meta.discourse.org/t/3-2-2-bug-fix-release/307780

Co-Authored-By: Christian Albrecht [email protected]

Fixes:
CVE-2023-38706, CVE-2023-40588, CVE-2023-41043, CVE-2023-41042,
CVE-2023-44388, CVE-2023-43814, CVE-2023-45147, CVE-2023-43659,
CVE-2023-44391, CVE-2023-45131, CVE-2023-47120, CVE-2023-45816,
CVE-2023-46130, CVE-2023-47119, CVE-2023-47121, CVE-2023-45806,
CVE-2023-49099, CVE-2024-21655, CVE-2024-21655, CVE-2023-48297,
CVE-2024-24748, CVE-2024-24827, CVE-2024-27085, CVE-2024-27100,
CVE-2024-28242

Things done

  • Fixes to the update script
  • Updated patches for 3.2.1
  • The yarn.lock was migrated into the repository root

Currently stuck at the yarn install

yarn config v1.22.22
success Set "yarn-offline-mirror" to "/nix/store/k6f62yxfz4qmaq0ici0zmgmndi1ai2ph-offline".
Done in 0.04s.
yarn install v1.22.22
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "unset-value@^1.0.0"
[2/4] Fetching packages...
warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/build/fake_home/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e4…
error Can't make a request in offline mode ("https://registry.yarnpkg.com/unset-value/-/unset-value-2.0.1.tgz")
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

cc @MTRNord #296144

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@mweinelt
mweinelt requested a review from talyz March 26, 2024 18:14
@mweinelt
mweinelt marked this pull request as draft March 26, 2024 18:14
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 26, 2024
@drupol

drupol commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

So great someone take care of this, thank you @mweinelt !

@drupol

drupol commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

Any news on this?

@mweinelt

mweinelt commented Apr 9, 2024

Copy link
Copy Markdown
Member Author

Any news on this?

Lack of willpower to sink time into the yarn issue. Not my expertise.

@mweinelt

mweinelt commented May 5, 2024

Copy link
Copy Markdown
Member Author

Tried regenerating the yarn.lock file, but then another dependency would run into the same issue.

mweinelt added 2 commits May 27, 2024 10:58
The distutils module is deprecated and was removed in Python 3.12, which
would eventually break this updater.
The plugin updater would previously stumble over compat spec version
entries that begin with angled brackets.

````
< 3.3.0.beta1-dev: 56b0de3896361b6a87523537c8f5b450d2fe0807
3.2.0: 33c43ca51ac7b7baa8a309a269dcf8685b8bd638
< 3.2.0.beta2-dev: ac930c509e2a5b0c37b84bcea28d332e686add95
3.1.999: a304cd2028ccf1f5b00f5137633aa7027a1fd334
3.1.0.beta3: 9c270cac9abc1c2b30574d8c655fb3a90546236b
[...]
````
@mweinelt
mweinelt force-pushed the discourse-update branch from 8f26e12 to e50869e Compare May 27, 2024 08:59
@drupol drupol mentioned this pull request May 27, 2024
2 of 12 tasks
@mweinelt
mweinelt force-pushed the discourse-update branch from e50869e to be33e6c Compare May 27, 2024 09:24
@mweinelt mweinelt added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-24.05 labels May 27, 2024
@mweinelt mweinelt changed the title discourse: 3.1.0 -> 3.2.1 discourse: 3.1.0 -> 3.2.2 May 27, 2024
@mweinelt
mweinelt force-pushed the discourse-update branch from be33e6c to 25755c0 Compare May 27, 2024 11:37
@mweinelt
mweinelt marked this pull request as ready for review May 27, 2024 11:37
@mweinelt

mweinelt commented May 27, 2024 •

Copy link
Copy Markdown
Member Author

Will merge and backport later today for lack of maintainer response.

Tests are running fine on aarch64-linux and x86_64-linux.

@mweinelt
mweinelt merged commit e486d51 into NixOS:master May 27, 2024
@mweinelt
mweinelt deleted the discourse-update branch May 27, 2024 13:55
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-24.05:

@risicle

risicle commented May 27, 2024

Copy link
Copy Markdown
Contributor

I'm getting a failure to build discourseAllPlugins on nixos x86_64:

rake aborted!
Gem::LoadError: can't activate ffi-1.15.5, already activated ffi-1.16.3 (Gem::LoadError)

@mweinelt

Copy link
Copy Markdown
Member Author

Will look into that later tonight. Sorry!

@mweinelt mweinelt mentioned this pull request May 27, 2024
4 of 13 tasks
@drupol

drupol commented Jun 6, 2024

Copy link
Copy Markdown
Contributor

I'm getting a failure to build discourseAllPlugins on nixos x86_64:

rake aborted!
Gem::LoadError: can't activate ffi-1.15.5, already activated ffi-1.16.3 (Gem::LoadError)

Has this been fixed yet? If not, shouldn't we revert this PR ?

@mweinelt

mweinelt commented Jun 6, 2024

Copy link
Copy Markdown
Member Author

Fixed in #315162.

@teutat3s teutat3s mentioned this pull request Feb 13, 2025
6 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants