Bug 265061 - ports-mgmt/pkg pkgbase wrong depends, lib32 instead of libs for many packages
Summary: ports-mgmt/pkg pkgbase wrong depends, lib32 instead of libs for many packages
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords: pkgbase
Depends on:
Blocks:
 
Reported: 2022-07-06 11:39 UTC by Henrik Rosenke
Modified: 2023-09-16 18:53 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments
pkg bad output (5.23 KB, text/plain)
2022-07-06 11:39 UTC, Henrik Rosenke
no flags Details
pkg good output (4.78 KB, text/plain)
2022-07-06 11:40 UTC, Henrik Rosenke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Rosenke 2022-07-06 11:39:24 UTC
Created attachment 235096 [details]
pkg bad output

Bug happened in a test environment where the pkgbase is from 02/2022, afterwards from this set was upgraded from 1.16.3 to 1.17.99.10 and afterwards 1.18.3 to solve the bug with the @config files in pkgbase.

Following pkg versions were tested:
1.16.3 OK
1.17.4 OK
1.17.5 OK (i this same as 1.17.99.9?)
1.17.99.10 NOT OK
1.18.3 NOT OK

When installing for example FreeBSD-runtime with the newer pkg in a fresh pkgbase jail, pkg uses lib32 for most libraries instead of lib. For example libfetch-lib32 is used instead of libfetch is used, resulting in pkg in this jail been unusable. Many things are affected, grep was not working, df, ifconfig and so on. 

for testing i created a empty zfs dataset and used pkg -r ${dataset} ins FreeBSD-runtime with different pkg versions.
Comment 1 Henrik Rosenke 2022-07-06 11:40:24 UTC
Created attachment 235097 [details]
pkg good output
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2022-07-06 12:11:59 UTC
I would need the output of pkg -o DEBUG_DEVEL=4 ... (it will be huge)
Comment 3 Henrik Rosenke 2022-07-06 14:07:19 UTC
(In reply to Baptiste Daroussin from comment #2)
hmmm Option DEBUG_DEVEL=4 is not working as expected:
=== root@dssweb02 (pts/3) /home/rosenke 64(2) -> pkg -o DEBUG_DEVEL=4 -r /jail/j9/ ins -f FreeBSD-runtime
Updating P10EOL_j12p64-server repository catalogue...
P10EOL_j12p64-server repository is up to date.
Updating j12p64-pkgbase repository catalogue...
j12p64-pkgbase repository is up to date.
All repositories are up to date.
The following 74 package(s) will be affected (of 0 checked):

But i created a output with -dddd is this the same?

yes its sadly to huge to upload is as a text file, tried uploading it on a website.

pkg.bad.debug_4_v1.17.99.10
https://textbin.net/ozknxkbafk

pkg.good.debug_4_v1.17.5
https://textbin.net/91a1zd69vl
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2022-07-06 15:00:13 UTC
pkg -dddd is the same yes, I saved both files it will take time for me to analyse and see what should be fixed.