[Bug 265509] pkg-fetch(8) does not accept a file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 Jul 2022 03:19:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265509

            Bug ID: 265509
           Summary: pkg-fetch(8) does not accept a file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pat@patmaddox.com

It is possible to directly install a package file:

    pkg install release_test-0.1.0.pkg

However, it is not possible to fetch the dependencies of a package file:

    pkg fetch -U -d -o my_packages release_test-0.1.0.pkg

I'm not quite sure what it does, since it doesn't provide any output, but it
eventually fails with

    pkg: festvox-don has a missing dependency: festlex-oald

That's strange, because the only dependency my release_test-0.1.0.pkg has is on
bash:

    $ pkg info -d -F release_test-0.1.0.pkg 
    release_test-0.1.0:
        bash-5.1

---

Why this would be useful: We build packages using pkg-create(8). We want to
make a package repo containing only our custom packages, and their
dependencies. If I could run the pkg-fetch(8) example command from above, I
could then run pkg-repo(8) on the resulting dir and be set.

My approach now is to define a local repo, and place the custom packages there.
Then I run pkg-fetch(8), giving it my package name, and it fetches the custom
package from my local repo, and the dependencies from a remote repo. It works,
but requires this second local repo. Ideally I could fetch the local package
file directly, and pull in its dependencies.

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