Open grahamperrin opened 3 years ago
Can you figure out a way to fake the ABI we are running on?
… with a view to telling whether responses vary for multiple ABI-specific pkg-rquery(8) queries for a single port?
Yes. I think we have to first detect if there is any difference between ABI. How do we do that? Perhaps we fake the current ABI. Most information is extracted via 'make -V' - and this is done in a chroot
. Maybe that holds the solution.
I also thought of chroot
.
My uneducated guess (before your comment) was a jail (?) for each ABI then within each jail, some use of pkg rquery
(with --no-repo-update
).
If a make
command can get what's required, this is surely preferable to querying a remote server ☑
As a side note, I wonder whether graphics/xpdf
will be a comparable case, given:
3.04_7
and 4.⋯
under https://www.freshports.org/graphics/xpdf/#packages3.⋯
(all greater than 3.04_7
) under https://www.freshports.org/graphics/xpdf3/#packagesxpdf3-3.04_11
not dependent upon Qt.Prepare to hide this comment as off-topic. I may be confusing myself …
For example, https://www.freshports.org/graphics/drm-kmod/#requiredrun lists one runtime dependency:
The actual dependency varies according to the ABI e.g.
Do we assume that readers will know to not take the runtime dependency line too literally?
(In the
drm-kmod
case, there's https://www.freshports.org/graphics/drm-kmod/#description a suitably explanatory description.)Or is there some way of signalling that sometimes, a listed dependency may be not always true?