Bug 199745 - ports-mgmt/pkg removes erroneously half of the installed packages....
Summary: ports-mgmt/pkg removes erroneously half of the installed packages....
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: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-27 23:08 UTC by edwin
Modified: 2016-04-20 09:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edwin 2015-04-27 23:08:35 UTC
I tried to install abcde via the pkg system and it erroneously tagged most of the X related ports to be needed to be removed. Is that because of the missing dependency?

[~] edwin@t61>sudo pkg install abcde
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%    5 MiB 761.8kB/s    00:07   
Processing entries: 100%
FreeBSD repository update completed. 23950 packages processed.
pkg: abcde has a missing dependency: lame
The following 117 package(s) will be affected (of 0 checked):
 
Installed packages to be REMOVED:
        libX11-1.6.2_2,1
        libxcb-1.11
        xcb-util-0.4.0,1
        xcb-util-renderutil-0.3.9
        cairo-1.12.18_1,2
        xorg-server-1.14.7_4,1
        ntop-5.0.1_8
        vnc-4.1.3_10
        xauth-1.0.9_1
        libXext-1.3.3,1
        libXi-1.7.4,1
        libXfixes-5.0.1_2
        libXdamage-1.1.4_2
        libglapi-10.4.6
        libGL-10.4.6
        libXxf86vm-1.1.3_2
        dri-10.4.6,2
        libXvMC-1.0.8_2
        libXv-1.0.10_2,1
        mplayer-1.1.r20150403_1
        libXxf86dga-1.1.4_2
        libxkbfile-1.0.8_2
        libxkbui-1.0.2_3
        libXt-1.1.4_2,1
        dbus-1.8.16
        hal-0.5.14_28
        policykit-0.9_8
        gtk2-2.24.27
        libXrender-0.9.8_2
        libXrandr-1.4.2_2
        xbacklight-1.2.1_1
        gtk-update-icon-cache-2.24.27
        libXinerama-1.1.3_2,1
        qt4-gui-4.8.6_5
        libXcursor-1.1.14_2
        gtk3-3.14.12
        libXcomposite-0.4.4_2,1
        pango-1.36.8_1
        libXft-2.3.2
        xclock-1.0.7_1
        libXaw-1.0.12_2,2
        libXp-1.0.2_2,1
        graphviz-2.38.0_6
        libXpm-3.5.11_2
        xpdf-3.04_4
        open-motif-2.3.4_2
        gdk-pixbuf2-2.31.2_1
        xv-3.10a_16
        colord-1.2.4_1
        polkit-0.105_5
        consolekit-0.4.5_3
        dbus-glib-0.104
        firefox-37.0.1,1
        startup-notification-0.12_3
        harfbuzz-0.9.40
        qt5-gui-5.4.1_1
        xcb-util-wm-0.4.1_2
        xcb-util-keysyms-0.4.0
        xcb-util-image-0.4.0
        libxkbcommon-0.5.0
        xdg-utils-1.0.2.20130919_1
        xset-1.2.3_1
        libXmu-1.1.2_2,1
        twm-1.0.8
        xprop-1.2.2
        xmix-2.1_3
        glew-1.12.0
        libGLU-9.0.0_2
        freeglut-2.8.1_3
        mesa-demos-8.1.0_2
        nvidia-driver-340-340.76
        libXtst-1.2.2_2
        at-spi2-core-2.14.1
        at-spi2-atk-2.14.1
        adwaita-icon-theme-3.14.0_1
        mtr-0.86
        openjdk-7.76.13_1,1
        fop-1.1
        rxtx-openjdk7-2.2p2_2
        vim-7.4.691
        nvidia-settings-340.24_1
        libvdpau-1.0
        libXfontcache-1.0.5_2
        qt5-dbus-5.4.1
        qt5-widgets-5.4.1
        qt5-printsupport-5.4.1
        rrdtool-1.4.8_7
        xterm-318
        xf86-video-intel-2.21.15_7
        xkbcomp-1.2.4
        libXScrnSaver-1.2.2_2
        xf86-video-openchrome-0.3.3_5
        xf86-video-r128-6.9.2_5
        xf86-video-mach64-6.9.4_5
        xf86-video-ati-7.5.0_2
        xf86-video-vesa-2.3.3_5
        xf86-input-mouse-1.9.0_6
        xf86-input-keyboard-1.8.0_7
        xf86-video-fbdev-0.4.4_6
        xf86-video-nv-2.1.20_6
        libXxf86misc-1.0.3_2
        rgb-1.0.5
        xwininfo-1.1.3_1
        xinit-1.3.4,1
        rdesktop-1.8.3
 
New packages to be INSTALLED:
        abcde: 2.6
        vorbis-tools: 1.4.0_8,3
        libkate: 0.4.1_5
        speex: 1.2.r2,1
        speexdsp: 1.2.r3_1
        libao: 1.2.0_1
        flac: 1.3.1
        py27-eyed3: 0.7.5
        py27-magic: 5.18
 
Installed packages to be UPGRADED:
        libICE: 1.0.9,1 -> 1.0.9_1,1
        libpciaccess: 0.13.2_2 -> 0.13.3
        libfontenc: 1.1.2_2 -> 1.1.2_3
 
The operation will free 875 MiB.
1 MiB to be downloaded.
 
Proceed with this action? [y/N]:
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2015-04-28 07:11:40 UTC
Please run pkg upgrade first then pkg install abcde

Yes we should definitly improve that
Comment 2 J. B. 2015-07-13 17:14:21 UTC
I am also bothered by this upon
reinstalls across versions
v10 > v11 etc...

also

PKGS TO BE REMOVED

FOO-1     cause:   perl
BAR-2     cause:   python

.... better maybe

also

PKGS TO BE REMOVED AND LOGGED TO /VAR/LOG/PKG-REMOVALS

.... better maybe


Even more work, offer choice to delay or flag
not-removed-and-could-have-been in another SQL
field or something...

Just ideas.
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2015-07-14 00:28:12 UTC
Sorry but I do not understand anything from the last comment
Comment 4 J. B. 2015-07-14 14:29:37 UTC
(In reply to Baptiste Daroussin from comment #3)


Installed packages to be removed:
  could use a reason so they could be noted for staying
  removed or reinstalling later
  later on the line for easy grepping or awk

Once removed:
  could use  a seperate log file so to enable reinstalls
  ....
  I currently have to script the command so as to do 
  reinstalls

Unsure about the third point (should be removed, but actually
are not... ) as it is a coding issue that is more complex.
Comment 5 Baptiste Daroussin freebsd_committer freebsd_triage 2016-04-20 09:15:35 UTC
in pkg 1.7 the new solver should try different path to find the less intrusive one which should fix the issue