Bug 228389 - ports-mgmt/pkg: incorrect upgrade with multiple repositories
Summary: ports-mgmt/pkg: incorrect upgrade with multiple repositories
Status: Closed DUPLICATE of bug 220049
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-21 08:12 UTC by Zsolt Udvari
Modified: 2018-07-07 14:48 UTC (History)
0 users

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 Zsolt Udvari freebsd_committer freebsd_triage 2018-05-21 08:12:00 UTC
I'm maintaining a small subset of (quarterly) ports tree with specific options (you can see it on http://pkg.uzsolt.hu/) and I'm using FreeBSD's official (quarterly) repository too.

When I want to try upgrade the packages appears some invalid dependencies:

root # pkg upgrade --dry-run                                                                                                                        
Updating FreeBSD repository catalogue...                                                                                                            
FreeBSD repository is up to date.                                                                                                                   
Updating uzsolt repository catalogue...                                                                                                             
uzsolt repository is up to date.                                                                                                                    
All repositories are up to date.                                                                                                                    
Checking for upgrades (16 candidates): 100%                                                                                                         
Processing candidates (16 candidates): 100%                                                                                                         
The following 7 package(s) will be affected (of 0 checked):                                                                                         
                                                                                                                                                    
New packages to be INSTALLED:                                                                                                                       
        schroedinger: 1.0.11_4 [FreeBSD]                                                                                                            
        gcc6: 6.4.0_4 [FreeBSD]                                                                                                                     
        mpc: 1.1.0 [FreeBSD]                                                                                                                        
        gcc-ecj: 4.5 [FreeBSD]                                                                                                                      
        binutils: 2.30_2,1 [FreeBSD]                                                                                                                
                                                                                                                                                    
Installed packages to be UPGRADED:                                                                                                                  
        mesa-libs: 17.3.8 -> 17.3.9 [FreeBSD]                                                                                                       
        mesa-dri: 17.3.8 -> 17.3.9 [FreeBSD]                                                                                                        
                                                                                                                                                    
Number of packages to be installed: 5                                                                                                               
Number of packages to be upgraded: 2                                                                                                                
                                                                                                                                                    
The process will require 446 MiB more space.                                                                                                        
89 MiB to be downloaded.                                                                                                                            
Exit 1

The gcc6, mpc, gcc-ecj and binutils are unneeded dependencies (with disabled FreeBSD repo they don't appear). I created the package games/wesnoth without OPENMP option. The OPENMP causes gcc-specific dependencies.

In FreeBSD repository the games/wesnoth has OPENMP=ON and I think this is the root of problem. I tried to set priorities of repositories (lower and higher too) but didn't change anything.
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2018-07-07 14:48:54 UTC

*** This bug has been marked as a duplicate of bug 220049 ***