Bug 249063

Summary: lang/python-doc-html incorrect distinfo
Product: Ports & Packages Reporter: george
Component: Individual Port(s)Assignee: freebsd-python (Nobody) <python>
Status: New ---    
Severity: Affects Many People CC: leres
Priority: --- Flags: bugzilla: maintainer-feedback? (python)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 249537    
Bug Blocks:    
Attachments:
Description Flags
distinfo patch none

Description george 2020-09-02 14:27:07 UTC
Created attachment 217705 [details]
distinfo patch

The distinfo entry for python-3.8.5-docs-html.tar.bz2 appears to be incorrect based on the 20 July version that's available at python.org.  I've attached a patch against ports/head version 546287.
Comment 1 Craig Leres freebsd_committer 2020-09-22 22:03:08 UTC
I added a dependency on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249537 which will fix makesum for lang/python-doc-html.
Comment 2 Craig Leres freebsd_committer 2020-11-16 15:56:26 UTC
lang/python-doc-html uses two different values for MASTER_SITES; for most targets it is set based on the DEFAULT_VERSIONS setting of python:

    zinc 164 # make -C /usr/ports/lang/python-doc-html -V MASTER_SITES
    https://www.python.org/ftp/python/doc/3.7.9/ https://www.python.org/ftp/python/doc/current/

But when the target is makesum, the port's Makefile sets MASTER_SITES (like DISTFILES) to reflect all supported versions of python:

    zinc 169 # make -C /usr/ports/lang/python-doc-html -V MASTER_SITES makesum
    https://www.python.org/ftp/python/doc/2.7.18/:2x7x18 https://www.python.org/ftp/python/doc/3.6.12/:3x6x12 https://www.python.org/ftp/python/doc/3.7.9/:3x7x9 https://www.python.org/ftp/python/doc/3.8.6/:3x8x6 https://www.python.org/ftp/python/doc/3.9.0/:3x9x0 https://www.python.org/ftp/python/doc/current/

But because Mk/bsd.port.mk now does a sub-make for makesum, the carefully constructed MASTER_SITES value is getting stripped when trying to generate a new distinfo.

I guess I don't understand why it's ok for Mk/bsd.port.mk to pass DISTFILES to the makesum sub-make but not MASTER_SITES?