Bug 257019 - Can't set PACKAGES to a directory with a ':' in the name
Summary: Can't set PACKAGES to a directory with a ':' in the name
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Package Infrastructure (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
Depends on:
Reported: 2021-07-06 12:22 UTC by Daniel O'Connor
Modified: 2022-03-23 14:30 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel O'Connor 2021-07-06 12:22:09 UTC
I am trying to build packages to populate a package repo so I tried the following:

[test13 21:43] /usr/ports/misc/gs-ports-extra >make package-recursive PACKAGES=/tmp/extra/packages/FreeBSD:13:amd64
make: "/usr/ports/Mk/bsd.port.mk" line 5257: warning: duplicate script for target "/tmp/extra/packages/FreeBSD" ignored
make: "/usr/ports/Mk/bsd.port.mk" line 3432: warning: using previous script for "/tmp/extra/packages/FreeBSD" defined here
===>   gs-ports-extra-1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gs-ports-extra-1.0 for building
===>  Extracting for gs-ports-extra-1.0
make: don't know how to make 13:amd64/All:. Stop

The following work arounds are function:
  PACKAGES=/tmp/extra/packages PKG_REPOSITORY=FreeBSD:13:amd64/All

However it does feel like a bug.
Comment 1 Baptiste Daroussin freebsd_committer 2022-03-22 11:08:23 UTC
This is not a pkg bug, this is a bsd.port.mk bug ;)