svn commit: r513191 - head/Mk

Tijl Coosemans tijl at FreeBSD.org
Tue Oct 8 18:33:24 UTC 2019


On Tue, 8 Oct 2019 18:53:21 +0200 Baptiste Daroussin <bapt at FreeBSD.org>
wrote:
> On Tue, Oct 08, 2019 at 06:16:01PM +0200, Tijl Coosemans wrote:
>> On Sun, 29 Sep 2019 04:15:47 +0000 (UTC) Baptiste Daroussin
>> <bapt at FreeBSD.org> wrote:  
>>> Author: bapt
>>> Date: Sun Sep 29 04:15:47 2019
>>> New Revision: 513191
>>> URL: https://svnweb.freebsd.org/changeset/ports/513191
>>> 
>>> Log:
>>>   Reduce code duplication by calling fetch target
>>>   
>>>   when converting the do-fetch target to proper scripting
>>>   we lost the ability to overwrite do-fetch when running make makesum.
>>>   as reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=
>>>   
>>>   Let's call again do-fetch directly instead of duplicating its content
>>>   
>>>   PR:		215530
>>>   Reported by:	jbeich
>>>   Differential Revision:	https://reviews.freebsd.org/D21544
>>> 
>>> Modified:
>>>   head/Mk/bsd.port.mk
>>> 
>>> Modified: head/Mk/bsd.port.mk
>>> ==============================================================================
>>> --- head/Mk/bsd.port.mk	Sun Sep 29 03:54:21 2019	(r513190)
>>> +++ head/Mk/bsd.port.mk	Sun Sep 29 04:15:47 2019	(r513191)
>>> @@ -3873,20 +3873,8 @@ _CHECKSUM_INIT_ENV= \
>>>  # As we're fetching new distfiles, that are not in the distinfo file, disable
>>>  # checksum and sizes checks.
>>>  makesum: check-sanity
>>> -.if !empty(DISTFILES)
>>> -	@${SETENV} \
>>> -			${_DO_FETCH_ENV} ${_MASTER_SITES_ENV} \
>>> -			dp_NO_CHECKSUM=yes dp_DISABLE_SIZE=yes \
>>> -			dp_SITE_FLAVOR=MASTER \
>>> -			${SH} ${SCRIPTSDIR}/do-fetch.sh ${DISTFILES:C/.*/'&'/}
>>> -.endif
>>> -.if defined(PATCHFILES) && !empty(PATCHFILES)
>>> -	@${SETENV} \
>>> -			${_DO_FETCH_ENV} ${_PATCH_SITES_ENV} \
>>> -			dp_NO_CHECKSUM=yes dp_DISABLE_SIZE=yes \
>>> -			dp_SITE_FLAVOR=PATCH \
>>> -			${SH} ${SCRIPTSDIR}/do-fetch.sh ${PATCHFILES:C/:-p[0-9]//:C/.*/'&'/}
>>> -.endif
>>> +	@cd ${.CURDIR} && ${MAKE} fetch NO_CHECKSUM=yes \
>>> +			DISABLE_SIZE=yes  
>> 
>> This breaks make makesum in linux ports.  Uses/linux.mk includes all
>> architectures in DISTFILES in the case of make makesum.  The fetch
>> submake here doesn't know it's called from makesum so it gets the wrong
>> DISTFILES.  Maybe you can just add DISTFILES="${DISTFILES}" to this line?  
> 
> I am fine with that, can you check with the case in the PR is still functional?
> if yes, then please just commit with my approval.

Committed in r514097.


More information about the svn-ports-head mailing list