[Bug 260852] multimedia/zoneminder distinfo update to allow for codeload.github.com hash and/or file size changes

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 Dec 2021 21:05:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260852

            Bug ID: 260852
           Summary: multimedia/zoneminder distinfo update to allow for
                    codeload.github.com hash and/or file size changes
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://cgit.freebsd.org/ports/tree/multimedia/zonemin
                    der/distinfo
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: grahamperrin@gmail.com
                CC: bsd@abinet.ru
             Flags: maintainer-feedback?(bsd@abinet.ru)
                CC: bsd@abinet.ru

In Information Security Stack Exchange at 
<https://security.stackexchange.com/a/240209/13575>: 

> GitHub dynamically generates a tar.gz file when a user downloads 
> a source release for a git tag. The hashes for those files are 
> not stable, as they are dependent on the versions of git, tar, 
> and gzip involved. These hashes have changed in the past, 
> which has affected various package repository/build systems.
> 
> Source: …

----

Now, for example: 

% tail -n 25
/usr/local/poudriere/data/logs/bulk/main-default/2021-12-31_20h35m15s/logs/errors/zoneminder-1.36.5.log
===========================================================================
=======================<phase: fetch          >============================
===== env: DEVELOPER_MODE=yes STRICT_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv2 accepted by the user
===>   zoneminder-1.36.5 depends on file: /usr/local/sbin/pkg - found
=> zoneminder-zoneminder-1.36.5_GH0.tar.gz doesn't seem to exist in
/portdistfiles/.
=> Attempting to fetch
https://codeload.github.com/zoneminder/zoneminder/tar.gz/1.36.5?dummy=/zoneminder-zoneminder-1.36.5_GH0.tar.gz
fetch:
https://codeload.github.com/zoneminder/zoneminder/tar.gz/1.36.5?dummy=/zoneminder-zoneminder-1.36.5_GH0.tar.gz:
size unknown
fetch:
https://codeload.github.com/zoneminder/zoneminder/tar.gz/1.36.5?dummy=/zoneminder-zoneminder-1.36.5_GH0.tar.gz:
size of remote file is not known
zoneminder-zoneminder-1.36.5_GH0.tar.gz                 10 MB 6983 kBps    01s
=> Fetched file size mismatch (expected 11347787, actual 11347838)
=> Trying next site
=> Attempting to fetch
http://distcache.FreeBSD.org/ports-distfiles/zoneminder-zoneminder-1.36.5_GH0.tar.gz
fetch:
http://distcache.FreeBSD.org/ports-distfiles/zoneminder-zoneminder-1.36.5_GH0.tar.gz:
Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/ and try again.
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/zoneminder
=>> Cleaning up wrkdir
===>  Cleaning for zoneminder-1.36.5
build of multimedia/zoneminder | zoneminder-1.36.5 ended at Fri Dec 31 20:46:51
GMT 2021
build time: 00:00:05
!!! build failure encountered !!!
% 

----

That's consistent with the report at
<https://forums.freebsd.org/threads/83549/>.

-- 
You are receiving this mail because:
You are the assignee for the bug.