Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2026 07:17:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 295353] ports-mgmt/pkg: does not show a dependency for a package, but removing it wants to remove many others; autoremove trying to remove a manually installed package
Message-ID:  <bug-295353-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295353

            Bug ID: 295353
           Summary: ports-mgmt/pkg: does not show a dependency for a
                    package, but removing it wants to remove many others;
                    autoremove trying to remove a manually installed
                    package
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

Scenario:
- FreeBSD stable/15 ca. May 1
- ports updated to 11a7acefdc6a (yesterday)
- updating using portmaster
- creating my own package repository
- updating other machines using "pkg upgrade"

Result:
- gtk4 gets installed
- However, it does not show as a dependency for anything:

[0]# pkg query %rn-%rv gtk4-4.20.4
[0]# 

= However, when trying to remove it, a whole lot of other packages would be
removed:

[0]# pkg delete gtk4-4.20.4
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 392 packages (of 0 packages
in the universe):

Installed packages to be REMOVED:
        AppStreamQt6: 1.1.2
        PackageKit-Qt: 1.1.4
        accounts-qml-module: 0.7_5
        akonadi: 26.04.1
        akonadi-calendar: 26.04.1
        akonadi-contacts: 26.04.1
        akonadi-import-wizard: 26.04.1
        akonadi-mime: 26.04.1
        akonadi-search: 26.04.1
        akonadiconsole: 26.04.1
        akregator: 26.04.1
        analitza: 26.04.1
        ark: 26.04.1
        audiocd-kio: 26.04.1
        avogadrolibs: 2.0.0_1
        baloo-widgets: 26.04.1
        blinken: 26.04.1
        bomber: 26.04.1
        bovo: 26.04.1
        bsdisks: 0.40
        calcmysky: 0.3.4
        calendarsupport: 26.04.1
        cantor: 26.04.1
        colord-kde: 26.04.1
        digikam: 8.8.0_4
        dolphin: 26.04.1
        dragon-player: 26.04.1
        eventviews: 26.04.1
        filelight: 26.04.1
        granatier: 26.04.1
        grantlee-editor: 26.04.1
        grantleetheme: 26.04.1
        gtk4: 4.20.4
        gwenview: 26.04.1
        incidenceeditor: 26.04.1
        ja-kiten: 26.04.1
        jkqtplotter-qt6: 5.0.0_1
        kColorPicker-qt6: 0.3.1
        kImageAnnotator-qt6: 0.7.2
        kaccounts-integration: 26.04.1
        kaddressbook: 26.04.1
        kajongg: 26.04.1
        kalarm: 26.04.1
        kalgebra: 26.04.1
        kalzium: 26.04.1
        kamera: 26.04.1
        kanagram: 26.04.1
        kapman: 26.04.1
        kate: 26.04.1
        katomic: 26.04.1
        kblackbox: 26.04.1
        kblocks: 26.04.1
        kbounce: 26.04.1
        kbreakout: 26.04.1
        kbruch: 26.04.1
        kcalc: 26.04.1
        kcalutils: 26.04.1
        kcharselect: 26.04.1
        kcolorchooser: 26.04.1
        kcron: 26.04.1
        kddockwidgets: 2.4.0_1
        kde: 6.6.5.26.04.1
        kde-baseapps: 26.04.1
        kdeaccessibility: 26.04.1
        kdeadmin: 26.04.1
        kdebugsettings: 26.04.1
        kdeedu: 26.04.1
        kdegames: 26.04.1
        kdegraphics: 26.04.1
        kdegraphics-mobipocket: 26.04.1
        kdegraphics-svgpart: 26.04.1
        kdegraphics-thumbnailers: 26.04.1
        kdemultimedia: 26.04.1
        kdemultimedia-ffmpegthumbs: 26.04.1
        kdenetwork: 26.04.1
        kdenetwork-filesharing: 26.04.1
        kdenlive: 26.04.1
        kdepim: 26.04.1
        kdepim-addons: 26.04.1
        kdepim-runtime: 26.04.1
        kdeutils: 26.04.1
        kdf: 26.04.1
        kdiagram-qt6: 3.0.1
        kdialog: 26.04.1
        kdiamond: 26.04.1
        kdsoap-qt6: 2.2.0_1
        kdsoap-ws-discovery-client: 0.4.0
        keditbookmarks: 26.04.1
        kf6-attica: 6.26.0
        kf6-baloo: 6.26.0
        kf6-breeze-icons: 6.26.0
        kf6-frameworkintegration: 6.26.0
        kf6-karchive: 6.26.0
        kf6-kauth: 6.26.0
        kf6-kbookmarks: 6.26.0
        kf6-kcalendarcore: 6.26.0
        kf6-kcmutils: 6.26.0
        kf6-kcodecs: 6.26.0
        kf6-kcolorscheme: 6.26.0
        kf6-kcompletion: 6.26.0
        kf6-kconfig: 6.26.0
        kf6-kconfigwidgets: 6.26.0
        kf6-kcontacts: 6.26.0
        kf6-kcoreaddons: 6.26.0
        kf6-kcrash: 6.26.0
        kf6-kdav: 6.26.0
        kf6-kdbusaddons: 6.26.0
        kf6-kdeclarative: 6.26.0
        kf6-kded: 6.26.0
        kf6-kdesu: 6.26.0
        kf6-kdnssd: 6.26.0
        kf6-kdoctools: 6.26.0
        kf6-kfilemetadata: 6.26.0
        kf6-kglobalaccel: 6.26.0
        kf6-kguiaddons: 6.26.0
        kf6-kholidays: 6.26.0
        kf6-ki18n: 6.26.0
        kf6-kiconthemes: 6.26.0
        kf6-kidletime: 6.26.0
        kf6-kimageformats: 6.26.0
        kf6-kio: 6.26.0
        kf6-kirigami: 6.26.0
        kf6-kitemmodels: 6.26.0
        kf6-kitemviews: 6.26.0
        kf6-kjobwidgets: 6.26.0
        kf6-knewstuff: 6.26.0
        kf6-knotifications: 6.26.0
        kf6-knotifyconfig: 6.26.0
        kf6-kpackage: 6.26.0
        kf6-kparts: 6.26.0
        kf6-kplotting: 6.26.0
        kf6-kpty: 6.26.0
        kf6-kquickcharts: 6.26.0
        kf6-krunner: 6.26.0
        kf6-kservice: 6.26.0
        kf6-kstatusnotifieritem: 6.26.0
        kf6-ksvg: 6.26.0
        kf6-ktexteditor: 6.26.0
        kf6-ktexttemplate: 6.26.0
        kf6-ktextwidgets: 6.26.0
        kf6-kunitconversion: 6.26.0
        kf6-kuserfeedback: 6.26.0
        kf6-kwallet: 6.26.0
        kf6-kwidgetsaddons: 6.26.0
        kf6-kwindowsystem: 6.26.0
        kf6-kxmlgui: 6.26.0
        kf6-prison: 6.26.0
        kf6-purpose: 6.26.0
        kf6-qqc2-desktop-style: 6.26.0
        kf6-solid: 6.26.0
        kf6-sonnet: 6.26.0
        kf6-syndication: 6.26.0
        kf6-syntax-highlighting: 6.26.0
        kf6-threadweaver: 6.26.0
        kfourinline: 26.04.1
        kgeography: 26.04.1
        kget: 26.04.1
        kgpg: 26.04.1
        khangman: 26.04.1
        khelpcenter: 26.04.1
        kidentitymanagement: 26.04.1
        killbots: 26.04.1
        kimap: 26.04.1
        kio-extras: 26.04.1
        kio-fuse: 5.1.1_1
        kirigami-addons-qt6: 1.12.0
        kiriki: 26.04.1
        kitinerary: 26.04.1
        kjumpingcube: 26.04.1
        kldap: 26.04.1
        klettres: 26.04.1
        klickety: 26.04.1
        klines: 26.04.1
        kmag: 26.04.1
        kmahjongg: 26.04.1
        kmail: 26.04.1
        kmail-account-wizard: 26.04.1
        kmailtransport: 26.04.1
        kmbox: 26.04.1
        kmime: 26.04.1
        kmines: 26.04.1
        kmix: 26.04.1
        kmousetool: 26.04.1
        kmouth: 26.04.1
        kmplot: 26.04.1
        knavalbattle: 26.04.1
        knetwalk: 26.04.1
        knights: 26.04.1
        kolf: 26.04.1
        kollision: 26.04.1
        kolourpaint: 26.04.1
        konqueror: 26.04.1
        konquest: 26.04.1
        konsole: 26.04.1
        kontact: 26.04.1
        kontactinterface: 26.04.1
        korganizer: 26.04.1
        kpat: 26.04.1
        kphotoalbum: 6.1.0_1
        kpimtextedit: 26.04.1
        kpkpass: 26.04.1
        kqtquickcharts: 26.04.1
        kquickimageeditor-qt6: 0.6.1
        kreversi: 26.04.1
        krfb: 26.04.1
        kruler: 26.04.1
        ksanecore: 26.04.1
        kshisen: 26.04.1
        ksirk: 26.04.1
        ksmtp: 26.04.1
        ksnakeduel: 26.04.1
        kspaceduel: 26.04.1
        ksquares: 26.04.1
        ksudoku: 26.04.1
        ksystemlog: 26.04.1
        kteatime: 26.04.1
        ktextaddons: 2.0.2
        ktimer: 26.04.1
        ktnef: 26.04.1
        ktouch: 26.04.1
        ktuberling: 26.04.1
        kturtle: 26.04.1
        kubrick: 26.04.1
        kwalletmanager: 26.04.1
        kwordquiz: 26.04.1
        libaccounts-qt6: 1.17
        libgravatar: 26.04.1
        libinput: 1.31.1
        libkcddb: 26.04.1
        libkdcraw-qt6: 26.04.1
        libkdegames: 26.04.1
        libkdepim: 26.04.1
        libkeduvocdocument: 26.04.1
        libkexiv2-qt6: 26.04.1
        libkgapi: 26.04.1
        libkleo: 26.04.1
        libkmahjongg: 26.04.1
        libksane: 26.04.1
        libksieve: 26.04.1
        libktorrent: 26.04.1
        libqaccessibilityclient-qt6: 0.6.0
        libreoffice: 26.2.2.2_3
        lskat: 26.04.1
        mailcommon: 26.04.1
        mailimporter: 26.04.1
        marble: 26.04.1
        mbox-importer: 26.04.1
        messagelib: 26.04.1
        mimetreeparser: 26.04.1
        mlt7-glaxnimate-qt6: 7.38.0
        mlt7-qt6: 7.38.0
        okular: 26.04.1
        palapeli: 26.04.1
        parley: 26.04.1
        phonon-mpv: 0.1.0_1
        phonon-qt6: 4.12.0_3
        picmi: 26.04.1
        pim-data-exporter: 26.04.1
        pim-sieve-editor: 26.04.1
        pimcommon: 26.04.1
        pinentry-qt6: 1.3.2
        plasma6-aurorae: 6.6.5
        plasma6-breeze: 6.6.5
        plasma6-breeze-gtk: 6.6.5
        plasma6-discover: 6.6.5
        plasma6-kactivitymanagerd: 6.6.5
        plasma6-kde-cli-tools: 6.6.5
        plasma6-kde-gtk-config: 6.6.5
        plasma6-kdecoration: 6.6.5
        plasma6-kdeplasma-addons: 6.6.5
        plasma6-kgamma: 6.6.5
        plasma6-kglobalacceld: 6.6.5
        plasma6-kinfocenter: 6.6.5
        plasma6-kmenuedit: 6.6.5
        plasma6-knighttime: 6.6.5
        plasma6-kpipewire: 6.6.5
        plasma6-kscreen: 6.6.5
        plasma6-kscreenlocker: 6.6.5
        plasma6-ksshaskpass: 6.6.5
        plasma6-ksystemstats: 6.6.5
        plasma6-kwallet-pam: 6.6.5
        plasma6-kwayland: 6.6.5
        plasma6-kwin: 6.6.5
        plasma6-kwin-x11: 6.6.5
        plasma6-kwrited: 6.6.5
        plasma6-layer-shell-qt: 6.6.5
        plasma6-libkscreen: 6.6.5
        plasma6-libksysguard: 6.6.5
        plasma6-libplasma: 6.6.5
        plasma6-milou: 6.6.5
        plasma6-oxygen: 6.6.5
        plasma6-plasma: 6.6.5
        plasma6-plasma-activities: 6.6.5
        plasma6-plasma-activities-stats: 6.6.5
        plasma6-plasma-browser-integration: 6.6.5
        plasma6-plasma-desktop: 6.6.5
        plasma6-plasma-disks: 6.6.5
        plasma6-plasma-integration-qt6: 6.6.5
        plasma6-plasma-sdk: 6.6.5
        plasma6-plasma-systemmonitor: 6.6.5
        plasma6-plasma-workspace: 6.6.5
        plasma6-plasma-workspace-wallpapers: 6.6.5
        plasma6-plasma5support: 6.6.5
        plasma6-polkit-kde-agent-1: 6.6.5
        plasma6-powerdevil: 6.6.5
        plasma6-print-manager: 6.6.5
        plasma6-qqc2-breeze-style: 6.6.5
        plasma6-sddm-kcm: 6.6.5
        plasma6-spectacle: 6.6.5
        plasma6-systemsettings: 6.6.5
        plasma6-xdg-desktop-portal-kde: 6.6.5
        polkit-qt-1-qt6: 0.201.1
        poppler-qt6: 26.04.0
        py311-qt5-pyqt: 5.15.11_2
        py311-qt5-qscintilla2: 2.14.1_4
        py311-qt5-webengine: 5.15.7_1
        py311-qt6-pyqt: 6.10.2
        qca-qt6: 2.3.10_3
        qcoro-qt6: 0.13.0
        qgis: 3.44.10
        qgpgme-qt6: 2.0.0_1
        qscintilla2-qt5: 2.14.1,1
        qt5-3d: 5.15.18p0
        qt5-assistant: 5.15.18p3
        qt5-charts: 5.15.18p0
        qt5-connectivity: 5.15.18p1
        qt5-declarative: 5.15.18p22
        qt5-designer: 5.15.18p3
        qt5-gamepad: 5.15.18p0
        qt5-gui: 5.15.18p109
        qt5-help: 5.15.18p3
        qt5-imageformats: 5.15.18p2
        qt5-location: 5.15.18p7
        qt5-multimedia: 5.15.18p2
        qt5-opengl: 5.15.18p109
        qt5-printsupport: 5.15.18p109
        qt5-quick3d: 5.15.18p1
        qt5-remoteobjects: 5.15.18p0
        qt5-sensors: 5.15.18p0
        qt5-speech: 5.15.18p1
        qt5-svg: 5.15.18p5
        qt5-uiplugin: 5.15.18p3
        qt5-webchannel: 5.15.18p3
        qt5-webengine: 5.15.19p0_6
        qt5-widgets: 5.15.18p109
        qt5-x11extras: 5.15.18p0
        qt5-xmlpatterns: 5.15.18p0
        qt6-5compat: 6.10.2
        qt6-base: 6.10.2_1
        qt6-base_sqldriver-mysql: 6.10.2
        qt6-base_sqldriver-psql: 6.10.2
        qt6-base_sqldriver-sqlite: 6.10.2
        qt6-charts: 6.10.2
        qt6-connectivity: 6.10.2
        qt6-declarative: 6.10.2
        qt6-imageformats: 6.10.2
        qt6-location: 6.10.2
        qt6-multimedia: 6.10.2
        qt6-networkauth: 6.10.2
        qt6-pdf: 6.10.2
        qt6-positioning: 6.10.2
        qt6-quick3d: 6.10.2
        qt6-quicktimeline: 6.10.2
        qt6-remoteobjects: 6.10.2
        qt6-scxml: 6.10.2
        qt6-sensors: 6.10.2
        qt6-serialport: 6.10.2
        qt6-shadertools: 6.10.2
        qt6-speech: 6.10.2
        qt6-svg: 6.10.2
        qt6-tools: 6.10.2
        qt6-translations: 6.10.2
        qt6-wayland: 6.10.2
        qt6-webchannel: 6.10.2
        qt6-webengine: 6.10.2_1
        qt6-websockets: 6.10.2
        qt6-webview: 6.10.2
        qtkeychain-qt6: 0.16.0
        qwt6-qt5: 6.3.0
        qxlsx: 1.5.0_1
        sddm: 0.21.0.36_2
        signon-plugin-oauth2-qt6: 0.25_2
        signon-qt6: 8.61
        skanlite: 26.04.1
        skladnik: 26.04.1
        smplayer: 25.6.0
        stellarium: 24.4_2
        step: 26.04.1
        vtk9: 9.6.1
        xf86-input-libinput: 1.5.0
        xorg: 7.7_3
        xorg-drivers: 7.7_7

Number of packages to be removed: 392

The operation will free 6 GiB.

Proceed with deinstalling packages? [y/N]: n
[0]# 

- On one of the upgraded machines, "pkg autoremove" behaves strangely. Note
that x11/xorg has been installed manually:

[0]# pkg query "%o %a" xorg-7.7_3 
x11/xorg 0
[0]# pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 17 packages:

Installed packages to be REMOVED:
        graphene: 1.10.8_1
        gstreamer1: 1.28.1_2
        gstreamer1-plugins: 1.28.1
        gstreamer1-plugins-bad: 1.28.1
        gstreamer1-plugins-gl: 1.28.1
        gtk4: 4.20.4
        iso-codes: 4.20.1
        libinput: 1.31.1
        orc: 0.4.42
        py311-pycairo: 1.29.0
        py311-pygobject: 3.54.5_1
        pygobject-common: 3.54.5_1
        vulkan-headers: 1.4.350.0
        wayland-protocols: 1.47
        xf86-input-libinput: 1.5.0
        xorg: 7.7_3
        xorg-drivers: 7.7_7

Number of packages to be removed: 17

The operation will free 174 MiB.

Proceed with deinstalling packages? [y/N]: n
[1]# 

- It seems that pkg tries to remove gtk4 and then realizes that it needs to
remove a bunch of others because of some dependency not shown by "pkg query
%rn-%rv ...".

Expected result:
- gtk4 should only be installed if it is a dependency
- pkg autoremove should not try to remove a package marked as manually
installed

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295353-32340>