[Bug 297183] pkgbase: make package fails in real-packages: FreeBSD-clibs-dev-16 duplicate directory listing: /usr/include

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 Aug 2026 20:54:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297183

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #9 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
From what I see the fatal status is just a consequence of having
DEVELOPER_MODE enabled:

ctx.developer_mode = pkg_object_bool(pkg_config_get("DEVELOPER_MODE"));

and:

libpkg/pkg.c

. . .
int
pkg_addfile_attr(struct pkg *pkg, const char *path, const char *sum,
                 const char *uname, const char *gname, mode_t perm,
                 u_long fflags, time_t mtime,
                 const char *symlink_target, bool check_duplicates)
{
. . .
        struct pkg_file *existing = pkg_filev_insert_sorted(&pkg->files, f);
        if (existing != NULL) {
                pkg_file_free_content(&f);
                if (check_duplicates) {
                        if (ctx.developer_mode) {
                                pkg_emit_error("duplicate file listing: %s,
fatal (developer mode)", path);
                                return (EPKG_FATAL);
                        } else {
                                pkg_emit_error("duplicate file listing: %s,
ignoring", path);
                        }
                }
                return (EPKG_OK);
        }

        return (EPKG_OK);
. . .


If you can operate with DEVELOPER_MODE disabled, the specific
type of stopping operation behavior should not occur.

-- 
You are receiving this mail because:
You are the assignee for the bug.