PORTCHECK(1)
π PORTCHECK(1) β the glow-up your port needs before you submit it π
okay bestie, so this is the portcheck manpage from section 1 (General Commands Manual) of the manual, and it's genuinely about to save you from embarrassing yourself in front of the ports maintainers. no cap.
β¨ NAME β¨
portcheck β validate a port before submitting π«Ά
πΈ SYNOPSIS πΈ
portcheck [-dNP] [-p portsdir] [-x pattern]
portcheck -A [-dP] [-p portsdir] [-x pattern] [subdir ...]
π¦ DESCRIPTION π¦
so portcheck is literally the vibe check for your OpenBSD port or port hierarchy in the current directory. you run it before you submit your ports for review, and it catches all the common mistakes you'd otherwise be roasted for. it verifies that the directory and file structure for a port is actually in place and that no bogus files are lurking around like uninvited guests. π«
when it's done doing its thing, portcheck prints the detected value of your port's PKGPATH to standard output β unless it fails in detection, in which case you should've given it the -p option. all its other (error) messages end up on standard error output, so no confusion about where to look. π
by default, portcheck automatically picks up the nearest parent directory named βportsβ, with an optional βmystuffβ or βopenbsd-wipβ subdirectory component, as the ports root directory. for example: if the port being imported is located in /home/joe/cvs/ports/openbsd-wip/devel/p5-Foo, then the root ports directory will be detected as being /home/joe/cvs/ports/openbsd-wip. iconic autodetection behavior fr fr. but if you want to override this behaviour, see the -p option below. π
the following options are available:
π OPTIONS π
-Aβ intended for runningportcheckon the whole ports tree, i.e., the one lying inPORTSDIR. this option adds several ignore patterns (see-xoption description) and disables some other checks (e.g., for missingdistinfo).PKGPATHdetermining and printing won't be done. implicit change of working directory to the ports tree root is done before starting any checks. also, in this mode one or more subdir arguments could be specified, to narrow the check only for given subdirectories of ports tree root. that's a big slay for whole-tree auditing. π₯-dβ show debugging information such as calling of check routines. lowkey useful when you're like "wait, why did it flag that?" π-Pβ disable expensive checks that useβprint-plist-with-dependsβtarget, e.g., proper usage ofgtk-update-icon-cache(1),update-desktop-database(1)andupdate-mime-database(1). basically it says "skip the fancy integrations, i just want speed." π¨-pportsdir β forces the given directory to be treated as ports root directory. cancels autodetection of the root ports directory made by default. this option is useful, e.g., when you have a temporary ports tree in a non-standard location. so if your tree is living somewhere weird (no judgment), just tellportcheckwhere it's at. π-Nβ intended to be used when working on new ports. enables the checks like the presence ofREVISIONmarkers and non-0.0SHARED_LIBS. it also enables checks for the presence ofCVSdirectories that could be left by mistake when creating a new port based on another one. so basically: making sure your new baby isn't carrying around someone else's leftover baggage. π§³β¨-xβ excludes files and subdirectories matching given shell globbing pattern from any checks. note that matching is done against relative path, and not against absolute path or base name either. i.e., to exclude theβx11/kde4/libs/logsβfrom checks, you must pass the whole line as argument, not justβlogsβ. multiple-xoptions may be specified. so you can ghost as many annoying files as you want, just be specific about it. π
π EXAMPLES π
to validate a new port you've just prepared, go to port's directory and run:
$ portcheck -N
if you were working on updating of an existing port in CVS tree:
$ portcheck
to run a global check of the whole βdevelβ category in ports tree, use the -A option instead:
$ portcheck -Ap /usr/ports devel
π SEE ALSO π
portimport(1) β because sometimes checking is just step one, and importing is the whole main character moment. π
β HISTORY β
this utility was split from portimport(1) in 2013 and first appeared in OpenBSD 5.5. so it's been out here doing the work for a minute. respect the elders. π§ββοΈ
that's the whole thing bestie. now go forth and portcheck before you submit, or the maintainers will π and you'll be π. you got this. π«Άπ
Debian Β· May 29, 2019 Β· and that's the portcheck(1) manual page β periodt. π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2013 Vadim Zhukov
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms