Bug 276584 - devel/appstream: unused dependencies in main (sub)package
Summary: devel/appstream: unused dependencies in main (sub)package
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gleb Popov
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-01-24 11:33 UTC by Jan Beich
Modified: 2024-01-24 15:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2024-01-24 11:33:44 UTC
Regressed by ports f292ea6fb5fc. appstream is used by libadwaita, so now many Gtk4 applications install Qt6.

$ poudriere testport -j 132amd64 devel/appstream
[...]
===========================================================================
=>> Checking shared library dependencies
 0x0000000000000001 NEEDED               Shared library: [libappstream.so.5]
 0x0000000000000001 NEEDED               Shared library: [libc.so.7]
 0x0000000000000001 NEEDED               Shared library: [libcurl.so.4]
 0x0000000000000001 NEEDED               Shared library: [libgio-2.0.so.0]
 0x0000000000000001 NEEDED               Shared library: [libglib-2.0.so.0]
 0x0000000000000001 NEEDED               Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 NEEDED               Shared library: [libintl.so.8]
 0x0000000000000001 NEEDED               Shared library: [libstemmer.so.0]
 0x0000000000000001 NEEDED               Shared library: [libxml2.so.2]
 0x0000000000000001 NEEDED               Shared library: [libxmlb.so.2]
 0x0000000000000001 NEEDED               Shared library: [libyaml-0.so.2]
 0x0000000000000001 NEEDED               Shared library: [libzstd.so.1]

$ pkg info -d AppStream
AppStream-1.0.0_1:
        snowballstemmer-2.2.0
        libyaml-0.2.5
        libxmlb-0.3.14_1
        libxml2-2.11.6
        curl-8.5.0
        glib-2.78.4,2
        gettext-runtime-0.22.3
        zstd-1.5.5

$ pkg upgrade -n AppStream
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 104 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        adwaita-icon-theme: 42.0
        at-spi2-core: 2.50.1
        avahi-app: 0.8_1
        brotli: 1.1.0,1
        cairo: 1.17.4_2,3
        colord: 1.4.6_1
        cups: 2.4.7_1
        dbus: 1.14.10_3,1
        dbus-glib: 0.112
        dejavu: 2.37_3
        double-conversion: 3.3.0
        duktape-lib: 2.7.0
        encodings: 1.0.5,1
        expat: 2.5.0_1
        font-bh-ttf: 1.0.3_5
        font-misc-ethiopic: 1.0.4
        font-misc-meltho: 1.0.3_5
        fontconfig: 2.15.0_1,1
        freetype2: 2.13.2
        fribidi: 1.0.13_1
        gdbm: 1.23
        gdk-pixbuf2: 2.42.10_2
        gmp: 6.3.0
        gnome_subr: 1.0
        gnutls: 3.7.10
        graphite2: 1.3.14
        gsettings-desktop-schemas: 42.0
        gtk-update-icon-cache: 3.24.31_1
        gtk3: 3.24.40
        harfbuzz: 8.3.0
        hicolor-icon-theme: 0.17
        hwdata: 0.378,1
        icu: 74.2,1
        jbigkit: 2.1_2
        jpeg-turbo: 3.0.1
        lcms2: 2.16
        libICE: 1.1.0_2,1
        libSM: 1.2.3_1,1
        libX11: 1.8.7,1
        libXau: 1.0.9
        libXcomposite: 0.4.6,1
        libXcursor: 1.2.0_1
        libXdamage: 1.1.6
        libXdmcp: 1.1.3
        libXext: 1.3.4,1
        libXfixes: 6.0.0
        libXft: 2.3.7
        libXi: 1.8,1
        libXinerama: 1.1.4_2,1
        libXrandr: 1.5.2
        libXrender: 0.9.10_2
        libXtst: 1.2.3_2
        libdaemon: 0.14_1
        libdatrie: 0.2.13_1
        libdeflate: 1.19
        libdrm: 2.4.120,1
        libedit: 3.1.20230828,1
        libepoll-shim: 0.0.20230411
        libepoxy: 1.5.9
        libevdev: 1.9.1.20200928_1
        libevent: 2.1.12
        libfontenc: 1.1.7
        libglvnd: 1.7.0
        libgudev: 237
        libgusb: 0.3.10_1
        libinput: 1.25.0
        libmtdev: 1.1.6_1
        libpaper: 1.1.28
        libpciaccess: 0.17
        librsvg2-rust: 2.56.4_3
        libtasn1: 4.19.0
        libthai: 0.1.29
        libudev-devd: 0.5.2
        libwacom: 1.5_1
        libxcb: 1.15_1
        libxkbcommon: 1.6.0_2
        mkfontscale: 1.2.1
        nettle: 3.9.1
        p11-kit: 0.25.3_1
        pango: 1.50.14
        perl5: 5.36.3_1
        pixman: 0.42.2
        png: 1.6.40
        polkit: 124_1
        py39-evdev: 1.6.0
        py39-pyudev: 0.22.0
        py39-setuptools: 63.1.0_1
        py39-six: 1.16.0
        qt6-base: 6.6.1_2
        shared-mime-info: 2.2_2
        sqlite3: 3.45.0,1
        tiff: 4.4.0_2
        vulkan-loader: 1.3.275
        wayland: 1.22.0
        xcb-util: 0.4.1,1
        xcb-util-cursor: 0.1.3
        xcb-util-image: 0.4.1
        xcb-util-keysyms: 0.4.1
        xcb-util-renderutil: 0.3.10
        xcb-util-wm: 0.4.2
        xkeyboard-config: 2.40_4
        xorg-fonts-truetype: 7.7_1
        xorgproto: 2023.2

Installed packages to be REINSTALLED:
        AppStream-1.0.0_1 (direct dependency changed: pango)

Number of packages to be installed: 103
Number of packages to be reinstalled: 1

The process will require 465 MiB more space.
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2024-01-24 12:24:46 UTC
You're right, this is a serious regression. And I don't even understand how to amend this now.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-01-24 15:22:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6730766301df328d64ded996bacc0c9d27e5573

commit c6730766301df328d64ded996bacc0c9d27e5573
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-01-24 15:17:46 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-24 15:20:34 +0000

    Revert "devel/appstream{,-qt,-compose}: Combine into a single port with SUBPACKAGES."

    The current subpackages implementation does not support USES.<subpackage>, which
    causes a lot of extra dependencies to be added to the main subpackage.

    This reverts commit f292ea6fb5fc10359f130a4e25a3b60ab0df7c6e.

    PR:             276584

 MOVED                                    |  2 --
 devel/Makefile                           |  3 +-
 devel/appstream-compose/Makefile (new)   | 24 +++++++++++++++
 devel/appstream-compose/pkg-plist (new)  | 20 ++++++++++++
 devel/appstream-qt/Makefile (new)        | 34 ++++++++++++++++++++
 devel/appstream-qt/pkg-plist (new)       | 30 ++++++++++++++++++
 devel/appstream-qt5/Makefile (gone)      | 22 -------------
 devel/appstream-qt5/pkg-plist (gone)     | 30 ------------------
 devel/appstream/Makefile                 | 27 +++-------------
 devel/appstream/pkg-descr.compose (gone) |  7 -----
 devel/appstream/pkg-descr.qt6 (gone)     |  6 ----
 devel/appstream/pkg-plist                | 53 +-------------------------------
 sysutils/plasma5-discover/Makefile       |  2 +-
 13 files changed, 117 insertions(+), 143 deletions(-)