Solved pkg autoremove does not do its job

Please, what am I missing here?
Code:
root@theos ~# pkg set -A 1 vscode
Mark vscode-1.95.3 as automatically installed? [y/N]: y
root@theos ~# pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.
root@theos ~# pkg info --locked vscode
vscode-1.95.3                  no
root@theos ~# pkg info --required-by vscode
vscode-1.95.3:
root@theos ~# pkg prime-list | grep vscode
root@theos ~# pkg leaf | grep vscode
vscode-1.95.3

It can be deleted manually just fine:
Code:
root@theos ~# pkg delete vscode
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    vscode: 1.95.3

Number of packages to be removed: 1

The operation will free 333 MiB.

Proceed with deinstalling packages? [y/N]:
 
VladiBG, nope:
Code:
root@theos ~# pkg query '%a %V %k' vscode
1 0 0
root@theos ~# pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.

Looks like I should file a bug report.
 
Code:
sqlite> select name,automatic,locked,vital from packages where automatic=1 and locked=0;
+----------------------------+-----------+--------+-------+
|            name            | automatic | locked | vital |
+----------------------------+-----------+--------+-------+
*long list has been cut*
| vscode                     | 1         | 0      | 0     |
+----------------------------+-----------+--------+-------+
 

# uname -av

FreeBSD local.domain 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64

pkg autoremove
Delete packages which were automatically installed as
dependencies and are not required any more.

Here is my run of pkg install, pkg delete and pkg autoremove

Edit:


#pkg install vscode


Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
krb5: 1.21.3
vscode: 1.94.2

Number of packages to be installed: 2

The process will require 327 MiB more space.

Proceed with this action? [y/N]: y
[1/2] Installing krb5-1.21.3...
[1/2] Extracting krb5-1.21.3: 100%
[2/2] Installing vscode-1.94.2...
[2/2] Extracting vscode-1.94.2: 100%
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types


# pkg delete vscode


Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
vscode: 1.94.2

Number of packages to be removed: 1

The operation will free 323 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling vscode-1.94.2...
[1/1] Deleting files for vscode-1.94.2: 100%
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types



# pkg autoremove

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
krb5: 1.21.3

Number of packages to be removed: 1

The operation will free 4 MiB.

Proceed with deinstalling packages? [y/N]: N


# pkg install vscode

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
vscode: 1.94.2

Number of packages to be installed: 1

The process will require 323 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing vscode-1.94.2...
[1/1] Extracting vscode-1.94.2: 100%
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
 
Hmm, I see only this very recent change, ports: 4b05da0715fc9e6453edb5039b5ae7d99f7ae262, 2024-11-30 14:44:06 +0000; containing:
Rich (BB code):
   [...]
 diff --git a/editors/vscode/Makefile b/editors/vscode/Makefile
index 424a8da9b69f..45db5c9561dc 100644
--- a/editors/vscode/Makefile
+++ b/editors/vscode/Makefile
@@ -1,5 +1,6 @@
PORTNAME=    vscode
 DISTVERSION=    1.95.3
+PORTREVISION=    1
   [... more stuff ...]

On my 14.1-RELEASE I'am still seeing 1.95.3; the portrevision of only a few hours old not being incorporated in its package, as to be expected.

However, looks like solved; the other changes (pulling in lots of stuff) probably had the desired effect, as I don't have the error:
Rich (BB code):
[1](0) ~ # pkg -vv| grep -A 3 '^Repositories'
Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
[2](0) ~ # pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.
[3](0) ~ # pkg install vscode
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 22 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
 <snap>
        vscode: 1.95.3
        webrtc-audio-processing: 1.3
 <snap>
Number of packages to be installed: 22
 <snap>
[4](0) ~ # pkg query  '%n-%v--[%k]-(%a)--%#r+%#d' vscode
vscode-1.95.3--[0]-(0)--0+63
[5](0) ~ # pkg set -A 1 vscode
Mark vscode-1.95.3 as automatically installed? [y/N]: y
[6](0) ~ # pkg query  '%n-%v--[%k]-(%a)--%#r+%#d' vscode
vscode-1.95.3--[0]-(1)--0+63           # <- not [locked], set to (automatic) and no other package depending on it
[7](0) ~ # pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 22 packages:

Installed packages to be REMOVED:
        alsa-lib: 1.2.12
        dav1d: 1.5.0
        flac: 1.4.3_1,1
        jackit: 1.9.22_2
        krb5: 1.21.3
        lame: 3.100_5
        libinotify: 20240724
        libogg: 1.3.5,4
        libsamplerate: 0.2.2_1
        libsndfile: 1.2.2_1
        libsysinfo: 0.0.3_3
        libvorbis: 1.3.7_2,3
        libvpx: 1.15.0
        openh264: 2.3.0,2
        opus: 1.5.2
        pipewire: 1.2.6_4
        py311-dbus: 1.3.2
        pydbus-common: 1.3.2
        re2: 20240702
        sndio: 1.10.0
        vscode: 1.95.3
        webrtc-audio-processing: 1.3

Number of packages to be removed: 22

The operation will free 392 MiB.

Proceed with deinstalling packages? [y/N]:
 
Erichans, have you read the answers in the issue? As I understand from them, you need to have some conflict among your packages for the problem to appear. While this is unlikely, perhaps you don't have vulkan-loader installed?
 
Back
Top