Bug 207915 - ports-mgmt/pkg: pkg upgrade <pkg-name> does not upgrade dependencies of dependencies
Summary: ports-mgmt/pkg: pkg upgrade <pkg-name> does not upgrade dependencies of depen...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 01:53 UTC by Simpson
Modified: 2019-02-02 08:52 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simpson 2016-03-12 01:53:38 UTC
Upgrading cmake will upgrade curl, however, it won't upgrade ca_root_nss, which is a dependency of curl.

Example:

root# pkg -v
1.6.4
root# pkg info
ca_root_nss-3.17.2             The root certificate bundle from the Mozilla Project
cmake-3.0.2                    Cross-platform Makefile generator
cmake-modules-3.0.2            Modules and Templates for CMake
curl-7.38.0_1                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
expat-2.1.0_1                  XML 1.0 parser written in C
pkg-1.6.4_1                    Package manager
root# cat FreeBSD.conf
FreeBSD1: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
root# pkg info -r ca_root_nss
ca_root_nss-3.17.2:
        curl-7.38.0_1
root# pkg upgrade curl
Updating FreeBSD1 repository catalogue...
FreeBSD1 repository is up-to-date.
All repositories are up-to-date.
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        curl: 7.38.0_1 -> 7.47.1
        ca_root_nss: 3.17.2 -> 3.22.2

The process will require 467 KiB more space.
324 KiB to be downloaded.

Proceed with this action? [y/N]: N
root# pkg upgrade cmake
Updating FreeBSD1 repository catalogue...
FreeBSD1 repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 7 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        jsoncpp: 0.6.0.r2_2
        libarchive: 3.1.2_6,1
        lzo2: 2.09

Installed packages to be UPGRADED:
        cmake: 3.0.2 -> 3.4.2
        expat: 2.1.0_1 -> 2.1.0_3
        curl: 7.38.0_1 -> 7.47.1
        cmake-modules: 3.0.2 -> 3.4.2

The process will require 8 MiB more space.

Proceed with this action? [y/N]: y
[1/7] Upgrading expat from 2.1.0_1 to 2.1.0_3...
[1/7] Extracting expat-2.1.0_3: 100%
[2/7] Installing lzo2-2.09...
[2/7] Extracting lzo2-2.09: 100%
[3/7] Installing jsoncpp-0.6.0.r2_2...
[3/7] Extracting jsoncpp-0.6.0.r2_2: 100%
[4/7] Upgrading curl from 7.38.0_1 to 7.47.1...
[4/7] Extracting curl-7.47.1: 100%
[5/7] Installing libarchive-3.1.2_6,1...
[5/7] Extracting libarchive-3.1.2_6,1: 100%
[6/7] Upgrading cmake-modules from 3.0.2 to 3.4.2...
[6/7] Extracting cmake-modules-3.4.2: 100%
[7/7] Upgrading cmake from 3.0.2 to 3.4.2...
[7/7] Extracting cmake-3.4.2: 100%
root#
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-13 04:49:45 UTC
Maintainer feedback?
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-13 04:53:35 UTC
(In reply to w.schwarzenfeld from comment #1)

w.schwarzenfeld@utanet.at,
I am curious, re you doing this yourself, or somebody asked you?
Comment 3 Walter Schwarzenfeld freebsd_triage 2018-01-13 05:01:21 UTC
I was talking with Mark Linimon.  He said ok. If I dio this in the wrong way please tell me.
In the moment about hundred old PR's were closed by the maintainers (in the last three days). So I think it makes sense.
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-13 05:02:44 UTC
Forgot: I search the whole bugslist for old and obsolete PR's. In not all cases it is clear, so i have to ask.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-13 05:06:59 UTC
(In reply to w.schwarzenfeld from comment #4)

Ok, thanks, this makes sense.