Page MenuHomeFreeBSD

Use python 2.7+ instead of 3.6 in mail/claws-mail
ClosedPublic

Authored by joneum on Jan 10 2019, 10:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 16 2023, 12:08 AM
Unknown Object (File)
Dec 11 2023, 1:17 PM
Unknown Object (File)
Nov 25 2023, 5:28 PM
Unknown Object (File)
Nov 10 2023, 9:53 AM
Unknown Object (File)
Nov 8 2023, 9:52 AM
Unknown Object (File)
Oct 11 2023, 10:45 PM
Unknown Object (File)
Oct 7 2023, 8:49 AM
Unknown Object (File)
Sep 29 2023, 8:49 AM
Subscribers

Details

Reviewers
koobs
mmokhi
Summary

After r489852, i talk with koobs on irc.
He suggested using python better: 2.7+. So the user can decide he wants Python 2.7 or higher.
I think that's a very good idea.
I open this review to discuss this with mmokhi as well.
This review is for the change from 3.6 to 2.7+. The poudrire tests look good:
http://joneumbox.org/build.html?mastername=112amd64-ports&build=2019-01-10_10h31m28s
http://joneumbox.org/build.html?mastername=112i386-ports&build=2019-01-10_10h31m28s

http://joneumbox.org/build.html?mastername=120amd64-ports&build=2019-01-10_10h36m18s
http://joneumbox.org/build.html?mastername=120i386-ports&build=2019-01-10_10h36m25s

http://joneumbox.org/build.html?mastername=13amd64-ports&build=2019-01-10_10h41m07s
http://joneumbox.org/build.html?mastername=13i386-ports&build=2019-01-10_10h41m33s

koobs also suggested to use "dm" instead of "m" in the patch. There is an error here:
http://joneumbox.org/build.html?mastername=120amd64-ports&build=2019-01-10_10h03m54s

I am not sure: when changing the Python version, does PORTREVISION need to be bump?

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 21911
Build 21155: arc lint + arc unit

Event Timeline

Hi,
About python27 compatibility I think it's good idea definitely
(It's good that you tested it and it's fine too ๐Ÿ˜Š I think the changes on the previous commit were mostly compatible).

For the m/dm stuff, I'm actually not very sure what @koobs meant, but
I propose this change (which tested and seems working for me),
so if you both can verify I appreciate ๐Ÿ˜„
I thinks it covers now all python versions (and all m/dm/blanks).

Oh and about the PORT_REVISION I support changing it, because we're making change on configure.ac of claws-mail
So sub-ports should get notified. It's safer decision imho :)

linimon retitled this revision from Use python 2.7+ instead of 3.6 in claws-mail to Use python 2.7+ instead of 3.6 in mail/claws-mail.Jan 11 2019, 12:23 AM
koobs accepted this revision.EditedJan 12 2019, 2:06 AM

It's not that 2.7+ is "better", its that :3.6 is "incorrect" in that:

  • It forces one specific version unnecessarily
  • It doesn't accurately/precisely describe the versions the software does supports (basically: any version)

The pattern/guidelines is:

  • The Python ports version specifier should be the set of Python versions that the package supports, not what Python version should be used (declarative vs imperative). Unfortunately the distinction is made more difficult to grok because of the name of the USES directive, which has an imperative meaning.

What this means in practice is:

  • Don't specify one version unless the package *only* supports that (and only that) one specific version. There are practically no python packages in the world that are like this. For python "ports".

Also, please make sure this gets to quarterly too (MFH)

This revision is now accepted and ready to land.Jan 12 2019, 2:06 AM