Bug 266923 - PkgBase: FreeBSD-liby-dev has a missing dependency: FreeBSD-liby
Summary: PkgBase: FreeBSD-liby-dev has a missing dependency: FreeBSD-liby
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Ed Maste
URL: https://alpha.pkgbase.live/current/Fr...
Keywords: pkgbase
: 266536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-09 21:41 UTC by Mina Galić
Modified: 2023-04-21 13:57 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mina Galić freebsd_triage 2022-10-09 21:41:22 UTC
Trying to convert a system to PkgBase right now and I'm getting the following error:

freebsd@fbsd14-amd64 ~> pkg search -r FreeBSD-base -g FreeBSD-\* | grep -v dbg | awk '{print $1}' | rev | cut -d- -f2- | rev | xargs sudo pkg install -r FreeBSD-base 
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
pkg: FreeBSD-liby-dev has a missing dependency: FreeBSD-liby
freebsd@fbsd14-amd64 ~ [0|0|0|0|0|0|1]> 


my repository is https://alpha.pkgbase.live/current/
Comment 1 Andrey Fesenko 2022-10-09 21:53:39 UTC
yes confirm, old bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239806 and https://reviews.freebsd.org/D29883
Comment 2 Mina Galić freebsd_triage 2022-10-09 22:03:52 UTC
I don't think so. This is more recent, so it should have all those supposed fixes.
This is literally saying there's no liby

and there isn't one in the repository: https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest/
only liby-dev and liby-dev-lib32
Comment 3 Mina Galić freebsd_triage 2022-10-10 13:32:39 UTC
fun fact about these -dev packages: They contain no headers, only liby.a:

freebsd@fbsd14-amd64 /v/c/pkg> for f in ./FreeBSD-liby-*dev-**.pkg; 
                                   test -L $f ; or pkg info -l -F $f;
                               end
FreeBSD-liby-dev-14.snap20220628151320:
        /usr/lib/liby.a
FreeBSD-liby-dev-lib32-14.snap20220628151320:
        /usr/lib32/liby.a
freebsd@fbsd14-amd64 /v/c/pkg>
Comment 4 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-10 14:02:02 UTC
(In reply to Mina Galić from comment #3)

Yes that's the problem, there is no non-dev version for them which is why we're failing here.
We probably should make some exception for them somewhere.
Comment 5 Ed Maste freebsd_committer freebsd_triage 2022-11-17 15:52:07 UTC
Are there any cases except liby-dev (and liby-dev-lib32)?
Comment 6 Ed Maste freebsd_committer freebsd_triage 2022-11-17 19:54:25 UTC
Perhaps https://reviews.freebsd.org/D37429
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-11-18 18:20:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=1e9c9ab5957795acc0d436ce21ad07373081d990

commit 1e9c9ab5957795acc0d436ce21ad07373081d990
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-17 19:22:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-11-18 18:08:46 +0000

    pkgbase: do not record dependency on non-existent liby package

    liby-dev provides (only) liby.a.  liby has no headers or man pages, and
    there is no liby package.  Add a special case to record no dependency on
    the package that does not exist.

    PR:             266923
    Reviewed by:    bapt
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D37429

 release/packages/generate-ucl.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 8 Ed Maste freebsd_committer freebsd_triage 2022-11-18 18:26:50 UTC
% tar -x -O -f .../FreeBSD:14:amd64/latest/FreeBSD-liby-dev-14.snap<date>.pkg +MANIFEST | jq
now shows no "deps" entry
Comment 9 Andrey Fesenko 2022-11-18 19:46:50 UTC
MFC 13?
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-12-16 15:05:41 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e9a573d29c5bd17174f87c5a3282c711c0806868

commit e9a573d29c5bd17174f87c5a3282c711c0806868
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-11-17 19:22:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-12-16 15:04:51 +0000

    pkgbase: do not record dependency on non-existent liby package

    liby-dev provides (only) liby.a.  liby has no headers or man pages, and
    there is no liby package.  Add a special case to record no dependency on
    the package that does not exist.

    PR:             266923
    Reviewed by:    bapt
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D37429

    (cherry picked from commit 1e9c9ab5957795acc0d436ce21ad07373081d990)

 release/packages/generate-ucl.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 11 Chris Rees freebsd_committer freebsd_triage 2023-04-21 13:57:30 UTC
*** Bug 266536 has been marked as a duplicate of this bug. ***