---
name: "build-debug-info"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/build-debug-info"
---

# build-debug-info(1)

generate packing-lists and Makefiles for debug packages

## NAME

**build-debug-info** – generate packing-lists and Makefiles for debug packages

## SYNOPSIS

PORTSDIR=*path*

**build-debug-info** \[**-mnqvx**\] **-P** *pkgdir* **--** *pkg\_create\_args* *...*

## DESCRIPTION

**build-debug-info** is a helper script for generating debug package information in [bsd.port.mk(5)](/bsd.port.mk/5.md), with similar calling conventions to [update-plist(1)](/update-plist/1.md).

Along with options and environment variables, **build-debug-info** uses the exact same options and arguments that would be passed to [pkg\_create(1)](/pkg_create/1.md). Since [pkg\_create(1)](/pkg_create/1.md) normally takes one single actual *pkgname*, there is no ambiguity in MULTI\_PACKAGES situations.

The first set of arguments correspond to the ‘default package’.

The options are as follows:

- **-P** *pkgdir*

  directory used  for generating output (mandatory).

- **-q**

  Quiet mode. Do not display status progress messages. Note that this is not the opposite of verbose mode.

- **-v**

  Verbose mode. Explain about directories stripped from dependencies. Note that this is not the opposite of quiet mode.

**build-debug-info** will read each packing-list *list* and generate a corresponding *debug-list* under *pkgdir*.

The full list of Makefile rules needed to generate those files and directories will be written as *pkgdir/Makefile*.

## SEE ALSO

pkg\_add(1), [pkg\_create(1)](/pkg_create/1.md), [update-plist(1)](/update-plist/1.md), [bsd.port.mk(5)](/bsd.port.mk/5.md)
