From Newsgroup: muc.lists.freebsd.ports
--00000000000011f778063b635fbc
Content-Type: text/plain; charset="UTF-8"
Hi,
As a rule, Github offers dynamic tarball generation. Dynamic tarballs do
not exist at Gighub, they are generated on user's request from the sources, after user clicks on a special link. Which link points to virtual (non-existent) directory on Github. This technology is supported by
FreeBSD's USE_GITHUB pragma.
But sometime project owner chooses to generate static tarballs by hand, and places them into a special and real directory at Github. This approach is
used to escape cyclic dependencies or abnormally long compilations.
Cf. discussion here:
https://lists.freebsd.org/pipermail/freebsd-ports/2020-July/119000.html
The technology of static tarballs is NOT supported by FreeBSD's USE_GITHUB pragma. To comply with it, FreeBSD's porters have to use something like:
MASTER_SITES=
https://github.com/uriparser/uriparser/releases/download/uriparser-${DISTVERSION}/
Note that as it happens MASTER_SITES here obligatory involve a directory
name with explicit version number.
It is exactly the point where Portscout fails. Because it keeps looking for
new tarballs inside the directory of the old tarball. I have explicitly
checked it by running portscout from my local host and asking to check a
couple of ports of this kind.
The total number of problematic ports is 905:
grep -RIl -E -e 'MASTER_SITES=.*//github.com/.*VERSION' --include Makefile --exclude-dir Mk /usr/ports > gh-static-names.txt
Full list gh-static-names.txt of these problematic ports (which use static tarballs from Github) is here:
https://drive.google.com/file/d/13ExEXbtF5e1Rpgtu-YrsaO7-3FWVJ-7w/view?usp=sharing
Once portscout fails to process them, a workaround to trace new versions
is: maintainer can subscribe to appropriate notifications from Github.
Do you know a way how developers or maintainers of portscout could be
kindly asked to elaborate portscout to cope with this kind of ports?
What PR (and where) can be created to address this issue?
Regards, Sergei
--00000000000011f778063b635fbc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<br><br>As a rule, Github offers dynamic tarball genera= tion. Dynamic tarballs do not exist at Gighub, they are generated on user&#= 39;s request from the sources, after user clicks on a special link. Which l= ink points to virtual (non-existent) directory on Github. This technology i=
s supported by FreeBSD's USE_GITHUB pragma.<br><br>But sometime project=
owner chooses to generate static tarballs by hand, and places them into a = special and real directory at Github. This approach is used to escape cycli=
c dependencies or abnormally long compilations. <br><br>Cf. discussion here= :<br><a href=3D"
https://lists.freebsd.org/pipermail/freebsd-ports/2020-July= /119000.html">
https://lists.freebsd.org/pipermail/freebsd-ports/2020-July/1= 19000.html</a><br><br>The technology of static tarballs is NOT supported by=
FreeBSD's USE_GITHUB pragma. To comply with it, FreeBSD's porters = have to use something like:<br><br>MASTER_SITES=3D <a href=3D"
https://githu=
b.com/uriparser/uriparser/releases/download/uriparser-${DISTVERSION}/">http= s://github.com/uriparser/uriparser/releases/download/uriparser-${DISTVERSIO= N}/</a><br><br>Note that as it happens MASTER_SITES here obligatory involve=
a directory name with explicit version number. <br><br>It is exactly the p= oint where Portscout fails. Because it keeps looking for new tarballs insid=
e the directory of the old tarball. I have explicitly checked it by running=
portscout from my local host and asking to check a couple of ports of this=
kind.<br><br>The total number of problematic ports is 905:<br>grep -RIl -E=
-e 'MASTER_SITES=3D.*//<a href=3D"
http://github.com/.*VERSION">github.= com/.*VERSION</a>' --include Makefile --exclude-dir Mk /usr/ports > = gh-static-names.txt<br><br>Full list gh-static-names.txt of these problemat=
ic ports (which use static tarballs from Github) is here:<br><a href=3D"htt= ps://drive.google.com/file/d/13ExEXbtF5e1Rpgtu-YrsaO7-3FWVJ-7w/view?usp=3Ds= haring">
https://drive.google.com/file/d/13ExEXbtF5e1Rpgtu-YrsaO7-3FWVJ-7w/v= iew?usp=3Dsharing</a><br><br>Once portscout fails to process them, a workar= ound to trace new versions is: maintainer can subscribe to appropriate noti= fications from Github.<br><br>Do you know a way how developers or maintaine=
rs of portscout could be kindly asked to elaborate portscout to cope with t= his kind of ports? <br>What PR (and where) can be created to address this i= ssue?<br><br>Regards, Sergei<br></div>
--00000000000011f778063b635fbc--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to
news-admin@muc.de
--- Synchronet 3.21a-Linux NewsLink 1.2