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

/commits.php is going away

I'm proposing to take /commits.php away - it mainly duplicates the home page. Details in this GitHub issue.
non port: Mk/Uses/

Number of commits found: 26

Thu, 27 May 2021
[ 03:33 lwhsu (Li-Wen Hsu) ]    commit hash:939745d4c3901027f4f2eb6ed327eaed4def9e45  939745d 
Uses/kmod: Only IGNORE when src is not available in build target

This enables to fetch and checksum on a host without src, for example, a
distfile mirroring service.

Reviewed by:	rene
Differential Revision:
Tue, 6 Apr 2021
[ 14:27 mat (Mathieu Arnold) ]    commit hash:5d33e045968104ac678d8b4b4ec1e8956bbf68e0  5d33e04  (Only the first 10 of 224 ports in this commit are shown above. View all ports for this commit)
framework: Remove $FreeBSD$

Where appropriate fiddle with a few other things.
Fri, 6 Dec 2019
[ 19:46 emaste ] Original commit   Revision:519159
on error, remind user of variable used to set src tree location

trying to build kmod ports without a src tree in /usr/src results in a
failure reporitng that the build requires kernel source files in /usr/src.
Mention also the make variable (SRC_BASE) that sets the path as a hint to
users building against a src tree located elsewhere.

Sponsored by:	The FreeBSD Foundation
Differential Revision:
Mon, 13 Feb 2017
[ 21:48 rene ] Original commit   Revision:434056
Automatically generate @dir entries for package list if :debug is used.

Tested with a modified sysutils/biosfont in which the :debug option was added,
a file was installed into ${KERN_DEBUGDIR}/${KMODDIR} and that file was added
to pkg-plist.

PR:		216879 (inspired by)
Submitted by:	Sergey Kozlov (
Sun, 12 Feb 2017
[ 21:53 rene ] Original commit   Revision:433968
Fix check-plist of USES=kmod

No longer depend on (KERN_)DEBUGDIR being non-empty to decide whether to
create the empty KERN_DEBUGDIR/KMODDIR directory, instead use a new
argument 'debug' to indicate this.

Add KERN_DEBUGDIR to PLIST_SUB and MAKE_ENV so that the including ports
can use them.

Ports using kmod:debug do need to add @dir entries to their pkg-plist for
now to prevent 'make check-plist' errors, for example for default KMODDDIR:

@dir /%%KERN_DEBUGDIR%%/boot

It would indeed be nice to automate this.

PR:		216879
Submitted by:	Sergey Kozlov (
Mon, 12 Dec 2016
[ 20:53 rene ] Original commit   Revision:428429
If KERN_DEBUGDIR happens to be empty, the port would try to install
files twice to the same location leading to make(1) warnings.

Reported by:	marino
Pointy hat:	rene (r428333)
Fri, 9 Dec 2016
[ 18:47 rene ] Original commit   Revision:428233
Uses/ add support for debug versions of kernel modules.

Submitted by:	glebius via private mail
Mon, 17 Aug 2015
[ 13:31 mat ] Original commit   Revision:394503 (Only the first 10 of 17 ports in this commit are shown above. View all ports for this commit)
Rewrite the target ordering code.

The targets now have priority assigned to them, and, when the dependency
ordering magic is done at the end of, they are sorted
according to their priority.

This allows USES to add targets easily and have them run whenever they
want without touching

To add a target that runs just before post-configure run, do:

_USES_configure+=  695:my-post-configure
	do something
(Only the first 15 lines of the commit message are shown above View all of this commit message)
Fri, 26 Dec 2014
[ 12:43 bapt ] Original commit   Revision:375621
Use a custom keyword for kldxref, that allows to control exactly when it is run
and work nicer with automatic directly support from pkg

Differential Revision:
Reviewed by:	rene, antoine
Approved by:	rene
Sun, 28 Sep 2014
[ 16:36 tijl ] Original commit   Revision:369465 (Only the first 10 of 53 ports in this commit are shown above. View all ports for this commit)
Change the way USES is handled:
- Loop over USES twice, once to define all *_ARGS variables and once to
  include Uses/*.mk.  This allows all Uses/*.mk to examine arguments given
  to other USES entries.
- Always define *_ARGS (possibly empty) and replace commas with spaces.

Similar for _USES_POST.

Adjust all Uses/*.mk:
- defined(u_ARGS) becomes !empty(u_ARGS)
- Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g}
- Some Uses/*.mk used ":" as argument separator instead of ",", but no port
  used this form
- Uses/ remove unused variable VALID_ARGS and USES+=fortran which
  has no effect
- Uses/ simplify handling of the case where neither "build" nor
  "run" arguments have been specified

PR:		193931
Exp-run by:	antoine
Approved by:	portmgr (antoine)
Thu, 7 Aug 2014
[ 09:50 antoine ] Original commit   Revision:364256
Do not override _USES_POST

Reviewed by:	bapt
Phabric:	D560
With hat:	portmgr
Sun, 22 Jun 2014
[ 21:01 rene ] Original commit   Revision:358828
Add --strip-debug to STRIP_CMD to avoid removing kernel symbols from the
installed kernel module.  This would otherwise break comms/uarduno on amd64
when converting this port to USES=kmod.

PR:		189621 (in private followup)
Submitted by:	Bob Frazier <>
MFH:		2014Q2
Sat, 15 Mar 2014
[ 10:31 gerald ] Original commit   Revision:348308 (Only the first 10 of 47 ports in this commit are shown above. View all ports for this commit)
Move MAINTAINER lines to the end of the initial comment block and
make things a bit more consistent.

Approved by:	portmgr (bapt)
Fri, 31 Jan 2014
[ 18:00 rene ] Original commit   Revision:342051
Remove support for unstaged ports.

Approved by:	bapt
Fri, 24 Jan 2014
[ 23:08 rene ] Original commit   Revision:340942
- kernel modules support SSP natively, so change the description
  of SSP_UNSAFE [1]
- take advantage of rmdir -p to remove nested instances of KMODDIR if
  empty.  Some ports have KMODDIR=dir1/dir2

Submitted by:	antoine [1]
Approved by:	portmgr (bapt)
Sat, 4 Jan 2014
[ 00:26 bapt ] Original commit   Revision:338605
Properly add targets to the sequence they belong to, that now makes them
Wed, 25 Dec 2013
[ 16:43 danfe ] Original commit   Revision:337430
Traditionally, most (if not all) tamperings with ${TMPPLIST} were done
silently within the ports (similar to extraction and patching phases).

Recently introduced Mk/Uses/ does some grunt work for pkg-plist,
like @[un]exec /usr/sbin/kldxref ... stuff via ${ECHO_CMD}, which makes
build logs less neat.  Mute them and MKDIR, remove an extra whitespace,
and wrap one overly long line.

Approved by:	rene
Wed, 20 Nov 2013
[ 12:43 bapt ] Original commit   Revision:334411
Define the target in post section.
Remove the PHONY kmod-pre-install target and replace it with a real file target
(well directory in this case)

Approved by:	rene
[ 07:29 bapt ] Original commit   Revision:334392
Mark some targets .PHONY
Tue, 12 Nov 2013
[ 19:44 rene ] Original commit   Revision:333605
Do not try to remove /boot/modules, it is part of BSD.root.dist [1]

While here unquote an instance of /boot/modules.
Submitted by:	antoine [1]
[ 11:40 rene ] Original commit   Revision:333566
Fix with bmake which requires KMODDDIR to be defined before use.

Submitted by:	marino
Fri, 8 Nov 2013
[ 09:44 rene ] Original commit   Revision:333188
Change KMODDDIR to /boot/modules if it is set to /boot/kernel

This allows upgrading a kernel without breaking any installed kernel ports
because during the upgrade /boot/kernel is renamed to /boot/kernel.old ,
resulting in moved files.

While /boot/modules is the default, it might be overridden by to
/boot/kernel before kmod is included, so setting MODULES_WITH_WORLD has no
Mon, 4 Nov 2013
[ 09:30 rene ] Original commit   Revision:332674
Using stage does not magically enforce the use of sane package tools, so
always use the "@unexec rmdir" form in TMPPLIST.  @dirrmtry lines are
substituted with this in, but only when generating TMPPLIST.

While here update the description in the header.

Submitted by:	QAT for commit r332642 (8.4-QAT/i386)
Sun, 3 Nov 2013
[ 22:51 rene ] Original commit   Revision:332653
Use @unexec rmdir instead of @dirrmtry in the NO_STAGE case.

Submitted by:	vsevolod via IRC
[ 19:41 rene ] Original commit   Revision:332641
Make sure that kldxref(8) is not run when installing into the staging
directory to prevent orphaned linker.hints files.

Obtained from:	Porters Handbook section 6.1
Thu, 31 Oct 2013
[ 11:34 rene ] Original commit   Revision:332228
Add a new USES for kernel module ports.

USES=kmod takes no arguments and:
- adds kld to CATEGORIES
- sets IGNORE if the kernel sources are not found
- defines KMODDIR to /boot/modules by default, add it to
  PLIST_SUB and MAKE_ENV, and create it upon installation
- handles cross-referencing kernel modules upon installation and

Approved by:	bapt

Number of commits found: 26