Skip to content

bad dependency calculations #2566

@sambler

Description

@sambler

Rather than tag onto #1705 I choose to report my experience using pkg separately.

I find pkg regularly wants to remove unrelated packages.

This would be the reason I will never trust the base system install to pkg, having it choose to remove the base system will make the system completely unusable.

I have just upgraded from 14-stable to 15-stable, after install world I ran pkg-static install -f pkg and it wanted to remove 24 packages.

The following 25 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
	pkg-2.4.2_1 [mts_pkg_home]

Installed packages to be REMOVED:
	gtk-layer-shell: 0.10.0
	nvidia-driver-470: 470.256.02_2
	xf86-input-elographics: 1.4.2_3
	xf86-input-evdev: 2.10.6_8
	xf86-input-joystick: 1.6.3_5
	xf86-input-keyboard: 1.9.0_6
	xf86-input-libinput: 1.3.0_1
	xf86-input-mouse: 1.9.3_5
	xf86-input-synaptics: 1.9.1_11
	xf86-input-vmmouse: 13.1.0_7
	xf86-input-wacom: 0.39.0_4
	xf86-video-amdgpu: 22.0.0_2
	xf86-video-ati: 19.1.0_7,1
	xf86-video-intel: 2.99.917.923_1,1
	xf86-video-nv: 2.1.22_1
	xf86-video-scfb: 0.0.7_2
	xf86-video-vesa: 2.5.0_3
	xfce: 4.18_1
	xfce4-wm: 4.20.0
	xorg: 7.7_3
	xorg-drivers: 7.7_7
	xorg-server: 21.1.20,1
	xorgxrdp: 0.10.2_1
	xrdp: 0.10.1,1

Number of packages to be removed: 24
Number of packages to be reinstalled: 1

I kill that and run pkg upgrade and get

Number of packages to be removed: 40
Number of packages to be installed: 190
Number of packages to be upgraded: 1821
Number of packages to be reinstalled: 1484

then kill that and run pkg install xorg and get

Number of packages to be removed: 338
Number of packages to be installed: 23
Number of packages to be upgraded: 103
Number of packages to be reinstalled: 48

I ended up force installing everything using cat /root/tmplist | xargs pkg install -f with tmplist being a file of port origins that were previously installed and successfully packaged in my poudriere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions