[Bug 265570] lang/gnatcross-sysroot-aarch64: package declares FreeBSD-base libraries as being provided in its manifest

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Aug 2022 07:23:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265570

            Bug ID: 265570
           Summary: lang/gnatcross-sysroot-aarch64: package declares
                    FreeBSD-base libraries as being provided in its
                    manifest
           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: dfr@rabson.org

A fragment of the +MANIFEST is included below showing that it declares that it
provides base libraries. Note that the package declares that its ABI is
FreeBSD:13:amd64 but the libraries contained are for aarch64. 

Normally this doesn't cause problems since most installations and jails use
base.txz and this contains all the base libraries.

I created a tiny base image containing FreeBSD-runtime, FreeBSD-pkg-bootstrap
and supporting libraries and added a repo declaration for FreeBSD-base pointing
at alpha.pkgbase.live. When I try to install extra packages from base, instead
of installing dependencies from base, pkg chooses gnatcross-sysroot-aarch64
instead, resulting in a non-functional image.

{
  "name": "gnatcross-sysroot-aarch64",
  "origin": "lang/gnatcross-sysroot-aarch64",
  "version": "1_1",
  "comment": "FreeBSD sysroots for C/Ada cross-compiler (amd64)",
  "maintainer": "ports@FreeBSD.org",
  "www": "http://www.dragonlace.net",
  "abi": "FreeBSD:13:amd64",
  "arch": "freebsd:13:x86:64",
  "prefix": "/usr/local/FreeBSD_ARM64",
  "flatsize": 184282577,
  "licenselogic": "single",
  "desc": "This package is used by the lang/gnatcross-aarch64 Ada
cross-compiler to\ninstall the system root of FreeBSD ARM64 (aarch64).\n\nWWW:
http://www.dragonlace.net",
  "categories": [
    "lang"
  ],
  "shlibs_provided": [
    "libsdp.so.4",
    "libcap_pwd.so.0",
    "libkrb5.so.11",
    "libprivatebsdstat.so.1",
    "libhdb.so.11",
    "libmagic.so.4",
    "libheimbase.so.11",
    ...

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