notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)

Two new features

Two two features were added on 2020-05-30:
  1. Repology links - each port now has a link to See issue 148 for details.
  2. Ports I maintain report - port maintainers can now subscribe to a daily report of commits to the ports they maintain. See Watch ports I maintain at Report Subscriptions. Details at issue 138
non port: Mk/Scripts/

Number of commits found XX: 12

Wed, 31 Jul 2019
[ 10:10 mat ] Original commit   Revision:507705
507705 Mk/Scripts/
Fix fetch-list when running as a user.

The fetch-list target is used to generate a shell script that will more
or less replicates what do-fetch does. It allows one to do most things
as a regular user, and generate that script to run, say, on another
machine, if the one where you build things does not have access to the
internet, or has much slower access.

It was failing when DISTDIR was not writable by the current user, and
the port had a distribution file with a path in it. (Not using
DIST_SUBDIR, something else, like lang/rust does.) It was failing
because it was trying to create that subdirectory unconditionally,
instead of only creating the subdirectory if actually had to.  This also
fixes the bug that the generated script did not have the appropriate
mkdirs for those directories.

PR:		239293
Submitted by:	tobik (earlier version)
Reported by:	Ruslan Garipov
Differential Revision:
Wed, 21 Feb 2018
[ 21:26 bdrewery ] Original commit   Revision:462544
462544 Mk/Scripts/
Remove leftover debugging
Tue, 20 Feb 2018
[ 22:58 bdrewery ] Original commit   Revision:462464
462464 Mk/Scripts/
462464 Mk/

- /usr/games/random moved to /usr/bin/random in 11.0+
- Need to explicitly add in the pipe '|'

Approved by:	portmgr (implicit)
Sat, 16 Dec 2017
[ 08:53 mat ] Original commit   Revision:456460
456460 Mk/Scripts/
Fix a edge case in the fetch related targets.

This would have given an error when:

- The port uses DIST_SUBDIR
- That sub-directory does not exist
- The current user does not have permission to write in DISTDIR.

Something like:

$ sudo rmdir /usr/ports/distfiles/gallery2
$ make fetch-urlall-list
mkdir: /usr/ports/distfiles/gallery2: Permission denied
*** Error code 1

PR:		222819
Reported by:	sunpoet
Sponsored by:	Absolight
Sat, 28 Jan 2017
[ 10:52 mat ] Original commit   Revision:432617
432617 Mk/Scripts/
Remove some code added in r858[1], still don't know what it was supposed to
be doing at the time.

When fetching, the code was looking for a distfile in either its
DIST_SUBDIR or the main DISTDIR, which was ok.  Until a port
(devel/cargo) moves one of its distfile
(cargo-nightly-x86_64-unknown-freebsd.tar.gz) into a subdirectory.
do-fetch would see the distfile in DISTDIR and say, ok, it's there, and
checksum would not see it in its subdirectory and fail.

1: phabricator's blame mode is really, really, great to unroll history.

PR:		216442
Submitted by:	mat
Reported by:	Bob Willcox, dhw (on ports)
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:
Mon, 8 Aug 2016
[ 12:57 mat ] Original commit   Revision:419840
419840 Mk/Scripts/
Only try to create DISTDIR if it does not exist already.

It turns out, some people, instead of setting DISTDIR, replace it with a
symlink pointing to where DISTDIR should be pointing.

And mkdir -p <symlink> fails.

PR:		211623
Reported by:	Harald Schmalzbauer
Sponsored by:	Absolight
Sun, 19 Jun 2016
[ 11:25 mat ] Original commit   Revision:417111
417111 Mk/Scripts/
417111 Mk/Scripts/
417111 Mk/Scripts/
Reverse tests to decrease complexity.

PR:		210198
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:
[ 11:25 mat ] Original commit   Revision:417110
417110 Mk/Scripts/
417110 Mk/Scripts/
417110 Mk/
417110 games/narcissu2/Makefile
417110 graphics/waifu2x-converter-cpp/Makefile
417110 shells/ksh93/Makefile
417110 sysutils/geomWatch/Makefile
417110 textproc/kmfl-sil-ezra/Makefile
417110 textproc/kmfl-sil-ipa-unicode/Makefile
417110 textproc/kmfl-sil-panafrican-latin/Makefile

(Only the first 10 of 11 ports in this commit are shown above. View all ports for this commit)
Remove unnecessary evals that do-fetch was using.

Turns out that env(1) knows how to parse a properly quoted string
using -S "string", it makes the double eval used for the fetch
command to be unnecessary.

This is because running:
eval "foo $(escape $bar)"
is silly when this works:
foo $bar

So remove escaping and quoting, and sillyness.

PR:		210198
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:
[ 11:24 mat ] Original commit   Revision:417109
417109 Mk/Scripts/
417109 Mk/
Simplify do-fetch, and remove now unused code.

Turns out that the DEFAULT, and other groups sites were handled in
a different way, ending up having the same code twice, but in
slightly different places.

PR:		210198
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:
Mon, 6 Jun 2016
[ 15:25 mat ] Original commit   Revision:416468
416468 Mk/Scripts/
Fix having the :DEFAULT MASTER_SITES entries ending up being there twice
in the end.

Sponsored by:	Absolight
Sun, 29 May 2016
[ 08:02 mat ] Original commit   Revision:416087
416087 Mk/Scripts/
Fix fetch-list and fetch-url-list-int when DISTDIR is not writable.

PR:		209820
Reported by:	amdmi3
Sponsored by:	Absolight
Wed, 25 May 2016
[ 15:58 mat ] Original commit   Revision:415842
415842 Mk/Scripts/
415842 Mk/Scripts/
415842 Mk/Scripts/
415842 Mk/Scripts/
415842 Mk/Scripts/
415842 Mk/
Extract the larger targets into separate scripts.

Refactor all the fetch code so that there are not 6 slightly different
versions of it but one that does it all.

The targets that have been extracted are:
- check-vulnerable
- do-fetch
- fetch-list
- fetch-url-list-int
- fetch-urlall-list
- checksum.
- makesum.
- check-checksum-algorithms
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found XX: 12

User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
How big is it?
The latest upgrade!

Enter Keywords:

Latest Vulnerabilities
mysql56-clientJul 11
mysql56-serverJul 11
mysql57-clientJul 11
mysql57-serverJul 11
mysql80-clientJul 11
mysql80-serverJul 11
unbound*Jul 10
mybbJul 09
sqlite3*Jul 09
rubygem-kramdownJul 08
gitlab-ceJul 07
mbedtlsJul 07
anydeskJul 04
dbusJul 03
py-matrix-synapseJul 03

19 vulnerabilities affecting 148 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2020-07-11 12:42:41

Deleted ports
Sanity Test Failures

NEW Graphs (Javascript)

Calculated hourly:
Port count 39961
Broken 78
Deprecated 588
Ignore 310
Forbidden 5
Restricted 147
Vulnerable 25
Expired 4
Set to expire 558
Interactive 0
new 24 hours 9
new 48 hours11
new 7 days27
new fortnight59
new month138

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2020 Dan Langille. All rights reserved.