Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysterious dependency on compat7x-amd64 #1753

Closed
koitsu opened this issue Apr 17, 2019 · 1 comment
Closed

Mysterious dependency on compat7x-amd64 #1753

koitsu opened this issue Apr 17, 2019 · 1 comment

Comments

@koitsu
Copy link
Contributor

koitsu commented Apr 17, 2019

I don't know where else to turn for this one: package compat7x-amd64 is being pulled in secretly as a dependency when trying to update/install readline -- but only when using pkg upgrade {pkgname}. What I'd like to know is where this dependency is coming from. My kernel does not have any COMPAT_FREEBSDxx options except for COMPAT_FREEBSD10. I build world from source, but use binary pkgs exclusively.

OS: FreeBSD 11.2-STABLE #0 r346148: Fri Apr 12 03:22:51 PDT 2019

Example session below -- some paragraph spacing added to make things clearer:

root@icarus:~ # pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.

root@icarus:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (25 candidates): 100%
Processing candidates (25 candidates): 100%
The following 26 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        py36-ply: 3.11

Installed packages to be UPGRADED:
        wget: 1.20_2 -> 1.20.3
        sqlite3: 3.27.1_1 -> 3.27.1_2
        samba47: 4.7.12 -> 4.7.12_1
        readline: 7.0.5 -> 8.0.0
        python36: 3.6.8_1 -> 3.6.8_2
        python27: 2.7.16 -> 2.7.16_1
        python: 2.7_3,2 -> 3.6_3,2
        py36-setuptools: 40.8.0 -> 41.0.0
        py27-setuptools: 40.8.0 -> 41.0.0
        php72-sqlite3: 7.2.17 -> 7.2.17_2
        php72-simplexml: 7.2.17 -> 7.2.17_2
        php72-opcache: 7.2.17 -> 7.2.17_2
        php72-mbstring: 7.2.17 -> 7.2.17_2
        php72-json: 7.2.17 -> 7.2.17_2
        php72-curl: 7.2.17 -> 7.2.17_2
        php72: 7.2.17 -> 7.2.17_2
        pcre: 8.43 -> 8.43_1
        oniguruma: 6.9.0 -> 6.9.1
        mod_php72: 7.2.17 -> 7.2.17_2
        gnupg1: 1.4.23_1 -> 1.4.23_2
        gnupg: 2.2.15 -> 2.2.15_1
        glib: 2.56.3_3,1 -> 2.56.3_4,1
        gdbm: 1.18.1 -> 1.18.1_1
        gdb: 8.2.1_1 -> 8.2.1_3

Installed packages to be REINSTALLED:
        bind912-9.12.4 (direct dependency changed: python36)

Number of packages to be installed: 1
Number of packages to be upgraded: 24
Number of packages to be reinstalled: 1

87 MiB to be downloaded.

Proceed with this action? [y/N]: n

root@icarus:~ # pkg upgrade gdb
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        compat7x-amd64: 7.4.704000.201310.1

Installed packages to be UPGRADED:
        gdb: 8.2.1_1 -> 8.2.1_3
        readline: 7.0.5 -> 8.0.0
        python36: 3.6.8_1 -> 3.6.8_2

Number of packages to be installed: 1
Number of packages to be upgraded: 3

The process will require 17 MiB more space.
29 MiB to be downloaded.

Proceed with this action? [y/N]: n

root@icarus:~ # pkg search -d ^gdb-8
gdb-8.2.1_3
Comment        : GNU GDB of newer version than comes with the system
Depends on     :
        expat-2.2.6_1
        mpfr-4.0.2
        python36-3.6.8_2
        readline-8.0.0
        gettext-runtime-0.19.8.1_2
        libiconv-1.14_11

root@icarus:~ # pkg upgrade readline
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        compat7x-amd64: 7.4.704000.201310.1

Installed packages to be UPGRADED:
        readline: 7.0.5 -> 8.0.0

Number of packages to be installed: 1
Number of packages to be upgraded: 1

The process will require 17 MiB more space.
5 MiB to be downloaded.

Proceed with this action? [y/N]: n

root@icarus:~ # pkg -d upgrade readline
DBG(1)[3217]> pkg initialized
Updating FreeBSD repository catalogue...
DBG(1)[3217]> PkgRepo: verifying update for FreeBSD
DBG(1)[3217]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[3217]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/meta.txz with opts "i"
DBG(1)[3217]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/packagesite.txz with opts "i"
FreeBSD repository is up to date.
All repositories are up to date.
DBG(1)[3217]> want to get an advisory lock on a database
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        compat7x-amd64: 7.4.704000.201310.1

Installed packages to be UPGRADED:
        readline: 7.0.5 -> 8.0.0

Number of packages to be installed: 1
Number of packages to be upgraded: 1

The process will require 17 MiB more space.
5 MiB to be downloaded.

Proceed with this action? [y/N]: n
DBG(1)[3217]> release an advisory lock on a database
DBG(1)[3217]> Cleaning up cachedir

root@icarus:~ # pkg check -sa
Checking all packages: 100%

root@icarus:~ # pkg search -f -d ^readline-8
readline-8.0.0
Name           : readline
Version        : 8.0.0
Origin         : devel/readline
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Repository     : FreeBSD [pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest]
Categories     : devel
Licenses       : GPLv3
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://tiswww.case.edu/php/chet/readline/rltop.html
Comment        : Library for editing command lines as they are typed
Options        :
        DOCS           : on
        TERMCAP        : on
Shared Libs provided:
        libreadline.so.8
        libhistory.so.8
Annotations    :
        FreeBSD_version: 1102000
        cpe            : cpe:2.3:a:gnu:readline:8.0:0::::freebsd11:x64
Flat size      : 1.69MiB
Pkg size       : 346KiB
Description    :
The GNU Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in. Both Emacs and vi
editing modes are available. The Readline library includes additional functions
to maintain a list of previously-entered command lines, to recall and perhaps
reedit those lines, and perform csh-like history expansion on previous commands.

WWW: https://tiswww.case.edu/php/chet/readline/rltop.html
Depends on     :
        indexinfo-0.3.1

root@icarus:~ # pkg rquery %do compat7x-amd64
root@icarus:~ # pkg rquery %ro compat7x-amd64
root@icarus:~ #
@bapt
Copy link
Member

bapt commented Apr 17, 2019

partial upgrade are not supported, still pkg ended up trying to do the right thing here finding some package installed requieds libreadline.so.7 while it is not provided anymore and proposed to install compat7x-amd64 which provides it.

I agree this is not obvious what it does, but hey :)

@bapt bapt closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants