gimp: condition python2 behind new withPython argument#203395
gimp: condition python2 behind new withPython argument#203395dotlambda merged 1 commit intoNixOS:masterfrom
Conversation
|
I wonder how important the python stuff is in gimp. The security issues in python2 will get fixed in nixpkgs (probably), so it might be OK to keep it here (by default). |
I think we need to add it to the release notes for 23.05 at least. Looking at https://bugzilla.redhat.com/show_bug.cgi?id=1737933, Python looks like necessary for a good part of the core functionality of Gimp, so yeah, disabling by default may be bad. However, I would still go with this as-is. While I am trying to get Python 2 in a good state here in nixpkgs (see #203362 and #203428) for the use cases that I think it matters (mainly for old packages that will never be updated to work with Python 3), if we can reduce the users of Python 2, it is better. IMO, we should work in adding Gimp 2.99.x as an option for those that want it. Gimp 2.99.x will bring both GTK3 and Python 3 support, so this would fix two of our main deprecation targets in one package. Of course, this should be done in another PR, so I am giving this one a go. |
|
Afaik it is used for plugins and not as common. @jtobin might have better information. |
Arch Linux seems to ship it without support for Python, so this looks good: https://github.com/archlinux/svntogit-packages/blob/d25b5ac3e107623411b25ffde09cd74efc37c457/trunk/PKGBUILD#L50 |
4c0a349 to
d3b71d5
Compare
|
Result of 1 package marked as broken and skipped:
14 packages built:
|
The following built-in plug-ins use Python:
I do not think we have any third-party Python plug-ins packaged in
The unstable version is packaged in #67576 I did not want to merge it to avoid increasing maintenance burden but perhaps we have no other choice if we want to preserve those plug-ins. |
| , Cocoa | ||
| , gtk-mac-integration-gtk2 | ||
| , withPython ? false | ||
| , python2 ? null |
There was a problem hiding this comment.
Why do we need the ? null here? We are not going to drop the python2 package from the tree.
There was a problem hiding this comment.
Then we can still do this in the future or just remove the dead code.
|
This is a breaking change and should at least come with a release note. |
Description of changes
Conditionally Python2 dep (EOLed 2020-01-01) as per #201859
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes