Bug 241874 - textproc/py-elasticsearch6: Prepare for urllib3 >= 1.25
Summary: textproc/py-elasticsearch6: Prepare for urllib3 >= 1.25
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL: https://github.com/elastic/elasticsea...
Keywords:
Depends on:
Blocks: 229322
  Show dependency treegraph
 
Reported: 2019-11-11 08:33 UTC by Kai Knoblich
Modified: 2019-11-25 10:08 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)
kai: merge-quarterly?


Attachments
py-elasticsearch-prepare-for-urllib3-1.25.patch (1.75 KB, patch)
2019-11-11 08:33 UTC, Kai Knoblich
kai: maintainer-approval? (sunpoet)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer freebsd_triage 2019-11-11 08:33:21 UTC
Created attachment 209049 [details]
py-elasticsearch-prepare-for-urllib3-1.25.patch

Hi Sunpoet,

attached is a patch that fixes the "verify_certs=False" behavior for net/py-urllib >= 1.25 because that version has SSL certificate verification enabled by default.

The patch for "elasticsearch/connection/http_urllib3.py" was fixed by upstream in release 7.0.5 and was backported from there.

This change needs also to be MFH'ed because the 1.25.x release of net/py-urllib3 is going to be merged into the 2019Q4 branch.

QA:
~~~
- poudriere (11.3-RELEASE amd64) for each py27 + py36 flavor -> OK
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-11-13 23:48:33 UTC
A commit references this bug:

Author: sunpoet
Date: Wed Nov 13 23:47:49 UTC 2019
New revision: 517541
URL: https://svnweb.freebsd.org/changeset/ports/517541

Log:
  Fix build with py-urllib 1.25+

  - Bump PORTREVISION for package change

  PR:		241874
  Submitted by:	kai
  Backport from:	https://github.com/elastic/elasticsearch-py/commit/4c531c5cdbd5ba8b59be16c2fa15d5cf81d0a92f

Changes:
  head/textproc/py-elasticsearch6/Makefile
  head/textproc/py-elasticsearch6/files/
  head/textproc/py-elasticsearch6/files/patch-elasticsearch-connection-http_urllib3.py
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-11-13 23:48:38 UTC
Committed. Thanks!
Comment 3 Kai Knoblich freebsd_committer freebsd_triage 2019-11-14 14:06:59 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #2)

Hi Sunpoet,

thanks for committing the patch. Can you please also merge it to the 2019Q4 branch?

I've re-opened the issue as the MFH is still pending and once merged it will pave the way for urllib 1.25 for the 2019Q4 branch a bit more.
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-11-14 16:17:12 UTC
(In reply to Kai Knoblich from comment #3)

Then I need an approval from either portmgr or ports-secteam.
Comment 5 Kai Knoblich freebsd_committer freebsd_triage 2019-11-17 13:18:48 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #4)

Yes, indeed. Can you please still get the approval in the next few days? 

If not, I'll try to get the approval for it to the next weekend and do the MFH then.
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-11-25 09:29:45 UTC
A commit references this bug:

Author: sunpoet
Date: Mon Nov 25 09:28:59 UTC 2019
New revision: 518389
URL: https://svnweb.freebsd.org/changeset/ports/518389

Log:
  MFH: r517541

  Fix build with py-urllib 1.25+

  - Bump PORTREVISION for package change

  PR:		241874
  Submitted by:	kai
  Backport from:	https://github.com/elastic/elasticsearch-py/commit/4c531c5cdbd5ba8b59be16c2fa15d5cf81d0a92f

  Approved by:	ports-secteam (joneum)

Changes:
_U  branches/2019Q4/
  branches/2019Q4/textproc/py-elasticsearch6/Makefile
  branches/2019Q4/textproc/py-elasticsearch6/files/
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-11-25 10:08:44 UTC
(In reply to Kai Knoblich from comment #5)

MFH'd. Thanks!