Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

palemoon: Drop #232571

Merged
merged 1 commit into from
May 18, 2023
Merged

palemoon: Drop #232571

merged 1 commit into from
May 18, 2023

Conversation

OPNA2608
Copy link
Contributor

Description of changes

It has Python 2.x as a build-time dependency, which has been EOL for years and was finally marked as insecure in #201859. As such, it has been unbuildable on master without enabling insecure packages for almost half a year.

Upstream has no plans to migrate their build system away from py2 (though they might accept help with it), so we'll have to drop it: https://forum.palemoon.org/viewtopic.php?f=62&t=28863&p=232152


I've tried replacing python2 with pypy, but that doesn't seem to work:

building
 0:00.63(B /nix/store/nnis9ph3wj866bbs0lalbf22i5bq8yry-gnumake-4.4.1/bin/make -f client.mk MOZ_PARALLEL_BUILD=1 -s configure
 0:02.43(B Clobber not needed.
 0:04.29(B Generating /build/source/configure
 0:04.30(B Generating /build/source/platform/configure
 0:04.30(B Generating /build/source/platform/js/src/configure
78 0:04.31(B cd /build/source/obj-x86_64-pc-linux-gnu
78 0:04.31(B /build/source/configure
78 0:04.55(B Traceback (most recent call last):
78 0:04.56(B   File "/build/source/configure.py", line 14, in <module>
78 0:04.56(B     from mozbuild.configure import ConfigureSandbox
78 0:04.56(B   File "/build/source/platform/python/mozbuild/mozbuild/configure/__init__.py", line 153, in <module>
78 0:04.56(B     class ConfigureSandbox(dict):
78 0:04.56(B   File "/build/source/platform/python/mozbuild/mozbuild/configure/__init__.py", line 193, in ConfigureSandbox
78 0:04.56(B     for b in ('None', 'False', 'True', 'int', 'bool', 'any', 'all', 'len',
78 0:04.56(B   File "/build/source/platform/python/mozbuild/mozbuild/configure/__init__.py", line 196, in <dictcomp>
78 0:04.56(B     if b in __builtins__},
78 0:04.56(B TypeError: 'module' object is not iterable
78 0:04.56(B *** Fix above errors and then restart with\
78 0:04.56(B                "/nix/store/nnis9ph3wj866bbs0lalbf22i5bq8yry-gnumake-4.4.1/bin/make -f client.mk build"
78 0:04.56(B make: *** [client.mk:370: configure] Error 1

Forum reports indicate that building with tauthon would work but I don't know what the attitude towards introducing that is, or if/how they address any CVEs that py2 has accumulated / will accumulate.

CC @AndersonTorres

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.05 Release Notes (or backporting 22.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.

It has Python 2.x as a build-time dependency, which has been EOL for years and was finally marked as insecure in NixOS#201859.
As such, it has been unbuildable on master without enabling insecure packages for almost half a year.

Upstream has no plans to migrate their build system away from py2 (though they might accept help with it), so we'll have to drop it:
https://forum.palemoon.org/viewtopic.php?f=62&t=28863&p=232152
@ofborg ofborg bot added 8.has: clean-up 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels May 18, 2023
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label May 18, 2023
@Scrumplex Scrumplex added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels May 18, 2023
@lovesegfault
Copy link
Member

Tagging @AndersonTorres as the other maintainer

@AndersonTorres
Copy link
Member

Goodbye, palemoon! See you someday!

@AndersonTorres AndersonTorres merged commit 9f3b538 into NixOS:master May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: clean-up 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 12.approvals: 2 This PR was reviewed and approved by two reputable people
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants