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

Why was the website so slow for so long?

The cause of the slowdown was a change to the ZFS dataset. In conjunction with the database server, very little caching was being done. This combination resulted in increased disk I/O as the system churned through the database. Details in the blog post which outlines the various things which changed. Many graphs.

non port: Mk/Scripts/

Number of commits found XX: 27

Tue, 27 Aug 2019
[ 08:52 bapt ] Original commit   Revision:509995
509995 Mk/Scripts/
Prevent globbing before validating env vars.

Submitted by:	dillon
Obtained from:	dports (dragonfly)
Sun, 30 Jun 2019
[ 23:02 bdrewery ] Original commit   Revision:505522
505522 Mk/Scripts/
Reduce code duplication from r504140.

Suggested by:	cem
Sponsored by:	DellEMC
Thu, 13 Jun 2019
[ 22:22 bdrewery ] Original commit   Revision:504140
504140 Mk/Scripts/
parse_plist: Avoid excess fork+exec inside the loop for stripping (mode) lines.

Need to do it still after stripping away @comment though.
The @dir handling could probably be improved as well somehow.
Fri, 8 Jun 2018
[ 09:26 mat ] Original commit   Revision:471988
471988 Mk/Scripts/
471988 Mk/Scripts/
471988 Mk/Scripts/
471988 Mk/Scripts/
471988 Mk/Scripts/
SC2046: Quote this to prevent word splitting.

When command expansions are unquoted, word splitting and globbing will
occur. This often manifests itself by breaking when filenames contain

Trying to fix it by adding quotes or escapes to the data will not work.
Instead, quote the command substitution itself.

If the command substitution outputs multiple pieces of data, use a loop

Add an exception when using set -- where splitting is intended.

PR:             227109
Submitted by:   mat
Exp-run by:	antoine
Sponsored by:   Absolight
Fri, 1 Jun 2018
[ 16:20 mat ] Original commit   Revision:471269
471269 Mk/Scripts/
SC2163: Exporting an expansion rather than a variable.

export takes a variable name, but shellcheck has noticed that you give
it an expanded variable instead. The problematic code does not export
MYVAR but a variable called foo if any.

Add exception when using indirections where the variable to extract is
actually the value of the variable.

PR:		227109
Submitted by:	mat
Sponsored by:	Absolight
[ 16:20 mat ] Original commit   Revision:471268
471268 Mk/Scripts/
SC2034: <some var> appears unused. Verify it or export it.

Variables not used for anything are often associated with bugs, so
ShellCheck warns about them.

PR:		227109
Submitted by:	mat
Sponsored by:	Absolight
[ 16:20 mat ] Original commit   Revision:471264
471264 Mk/Scripts/
471264 Mk/Scripts/
471264 Mk/Scripts/
SC2145: Argument mixes string and array. Use * or separate argument.

The behavior when concatenating a string and array is rarely intended.
The preceeding string is prefixed to the first array element, while the
succeeding string is appended to the last one. The middle array elements
are unaffected.

For example, with the parameters foo,bar,baz, "--flag=$@" is equivalent
to the three arguments "--flag=foo" "bar" "baz".

PR:		227109
Submitted by:	mat
Sponsored by:	Absolight
Tue, 13 Mar 2018
[ 21:43 bdrewery ] Original commit   Revision:464435
464435 Mk/Scripts/
464435 Mk/Uses/
Add PORTS_ENV_VARS caching support to USES=objc.

Approved by:	portmgr (implicit)
Sat, 3 Mar 2018
[ 01:18 bdrewery ] Original commit   Revision:463460
463460 Mk/Scripts/
Avoid double exporting PORTS_ENV.

Approved by:	portmgr (implicit)
Wed, 28 Feb 2018
[ 19:34 bdrewery ] Original commit   Revision:463259
463259 Mk/Scripts/
463259 Mk/Uses/

This only handles the default CC=cc but is enough to significantly improve
INDEX/Poudriere ports var gathering due to reducing around a dozen cc
fork+exec for every port that all have the same result.  These values
are reused during the port build as well which reduces more fork+exec
contention there.

Approved by:	portmgr (implicit)
[ 18:38 bdrewery ] Original commit   Revision:463257
463257 Mk/Scripts/
463257 Mk/
ports_env: Store list of variables to export in PORTS_ENV_VARS in mk files.

This will avoid renamed/removed variables being orphaned, and allows for
exporting variables in ports_env that are not wanted to be exported in
sub-makes via _EXPORTED_VARS.

Approved by:	portmgr (implicit)
[ 18:34 bdrewery ] Original commit   Revision:463256
463256 Mk/Scripts/
Chase r459584: Remove _PYTHON_DEFAULT_VERSION.

Approved by:	portmgr (implicit)
Fri, 17 Feb 2017
[ 22:22 bdrewery ] Original commit   Revision:434316
434316 Mk/Scripts/
ports_env: Fix OPSYS not being exported.

This was causing excessive 'uname -s' executions during Poudriere dependency
calculations.  The reasoning is due to HAVE_COMPAT_IA32_KERN having a newline
quoted at the end of it as '\ ' by bmake:

| cat -v

This resulted in the following being executed:


With hat:	portmgr
Mon, 5 Sep 2016
[ 19:23 tijl ] Original commit   Revision:421387
421387 Mk/Scripts/
421387 Mk/Uses/
421387 Mk/
421387 Mk/
421387 Mk/
421387 Mk/
421387 Mk/
421387 accessibility/linux-c6-atk/Makefile
421387 accessibility/linux-f10-atk/Makefile
421387 archivers/kzip/Makefile

(Only the first 10 of 303 ports in this commit are shown above. View all ports for this commit)
- Replace Mk/ and Mk/ with
- Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with
  USES+=linux:\1 in all ports.
- Replace USE_LINUX_APPS with USE_LINUX in all ports.
- Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some
- When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY
  are defined.
- Remove BRANDELF_DIRS and BRANDELF_FILES handling.  In the very rare cases
  that it is still necessary ports can run ${BRANDELF} from post-patch.
- Remove AUTOMATIC_PLIST handling.  Only one port used it.
  default versions framework.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
Fri, 24 Jun 2016
[ 05:03 bdrewery ] Original commit   Revision:417412
417412 Mk/Scripts/
Add a function port_var_fetch() for fetching multiple variables from a port.

This is taken from Poudriere (uncommitted)
Wed, 25 May 2016
[ 18:46 bapt ] Original commit   Revision:415853
415853 Mk/Scripts/
Fix make check-plist with new @xmlcatmgr keyword
[ 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)
Fri, 25 Dec 2015
[ 21:55 antoine ] Original commit   Revision:404479
404479 Mk/Scripts/
404479 Mk/Uses/
Do not cache PYTHON_PORTVERSION, it is not invariant between ports
Mon, 9 Nov 2015
[ 18:52 bdrewery ] Original commit   Revision:401162
401162 Mk/Scripts/
401162 Mk/Uses/
401162 Mk/Uses/
Fix partial tree checkouts with 'all-depends-list', 'make clean', etc, after
inclusion of the ports_env feature into that handling around r399791.

With hat:	portmgr
Reported by:	ian, lev
Mon, 19 Oct 2015
[ 21:10 bdrewery ] Original commit   Revision:399792
399792 Mk/Scripts/
399792 Mk/Uses/
Avoid redundantly looking up python command executions for dependency

This gets all-depends-list in x11/kde4 down to 30 seconds after the 52->41
second improvement in r399703.

With hat:	portmgr
[ 20:53 bdrewery ] Original commit   Revision:399791
399791 Mk/Scripts/
399791 Mk/Uses/
399791 Mk/
Avoid redundantly looking up perl version when looking up dependencies or in

With hat:	portmgr
Tue, 13 Oct 2015
[ 00:03 bdrewery ] Original commit   Revision:399171
399171 Mk/Scripts/
399171 Mk/Scripts/
Follow-up r399170 with a script,, that can be used for the purpose.

This will allow Poudriere to know if it is possible to use the feature or not
by the existence of the file.

Also fix quoting issues.

With hat:	portmgr
Mon, 12 Oct 2015
[ 23:41 bdrewery ] Original commit   Revision:399170
399170 Mk/Scripts/
Add a function to export vars that generates from fork/exec.

This will be useful in Poudriere to avoid needless fork/exec for every
port when gathering dependencies.

Example usage:

  MAKE=make sh -c '. Mk/Scripts/; export_index_env; export
PACKAGE_BUILDING=1; truss -f make -C sysutils/zfstools -V BUILD_DEPENDS 2>&1' |
grep exec

This eliminates 14 exec/fork calls for this example, when PACKAGE_BUILDING
is also set during -V.

Care should be taken with UID not being passed down into actual builds as it
may conflict with non-root builds.

With hat:	portmgr
[ 13:33 amdmi3 ] Original commit   Revision:399127
399127 Mk/Scripts/
Use -r flag for read command, this fixes handling of paths containing
backslashes, and, in result, stage-qa for archivers/deco

Approved by:	portmgr (antoine)
Differential Revision:	D3862
Sat, 26 Sep 2015
[ 12:13 bapt ] Original commit   Revision:397963
397963 CHANGES
397963 Keywords/sample.ucl
397963 Mk/Scripts/
Extend @sample to accept arguments

Maintainers can now use @sample sample_file target_file for all cases
that does not fall into the usual @sample something.sample

Reviewed by:	antoine
Differential Revision:
Wed, 1 Jul 2015
[ 20:08 bapt ] Original commit   Revision:391119
391119 Mk/Scripts/
391119 Mk/Scripts/
391119 Mk/Scripts/
Factorize the function to validate env

Reviewed by:	antoine
Differential Revision:
Thu, 8 Jan 2015
[ 04:04 bdrewery ] Original commit   Revision:376512
376512 Mk/Scripts/
376512 Mk/Scripts/
- Move parse_plist() into a new file,

With hat:	portmgr

Number of commits found XX: 27

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
powerdns-recursor*May 29
gitlab-ceMay 28
rubygem-kaminari-coreMay 28
sane-backendsMay 28
sympaMay 26
chromiumMay 24
piwigoMay 23
drupal7May 22
sympaMay 22
tomcat-develMay 22
tomcat7May 22
tomcat85May 22
tomcat9May 22
unboundMay 22
zabbix3-proxyMay 20

18 vulnerabilities affecting 165 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2020-05-29 07:54:06

Deleted ports
Sanity Test Failures

NEW Graphs (Javascript)

Calculated hourly:
Port count 39452
Broken 83
Deprecated 628
Ignore 350
Forbidden 5
Restricted 147
Vulnerable 24
Expired 15
Set to expire 582
Interactive 0
new 24 hours 8
new 48 hours10
new 7 days36
new fortnight85
new month185

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