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

pkg install observium removes pkg-devel #785

Closed
rpaulo opened this issue Apr 23, 2014 · 4 comments
Closed

pkg install observium removes pkg-devel #785

rpaulo opened this issue Apr 23, 2014 · 4 comments

Comments

@rpaulo
Copy link
Member

rpaulo commented Apr 23, 2014

% sudo pkg install observium
Updating repository catalogue
The following 35 packages will be affected (of 521 in the universe):

    Installing observium: 0.11.5.2261_1
    Installing php5-session: 5.4.27
    Installing php5-xml: 5.4.27
    Installing php5-ctype: 5.4.27
    Installing pear-Net_IPv6: 1.2.1
    Installing pear-Net_IPv4: 1.3.4
    Installing mtr-nox11: 0.85_1
    Installing php5-snmp: 5.4.27
    Installing net-snmp: 5.7.2_7
    Installing php5: 5.4.27
    Installing php5-gd: 5.4.27
    Installing graphviz: 2.36.0
    Installing ImageMagick: 6.8.0.7_5,1
    Installing php5-mysql: 5.4.27
    Installing i386-wine-devel: 1.7.15,1
    Installing libidn: 1.28_1
    Installing pear: 1.9.4_3
    Installing pkg: 1.2.7_2
    Installing t1lib: 5.1.2_2,1
    Installing libgd: 2.1.0_2,1
    Installing ghostscript9: 9.06_5
    Installing fftw3: 3.3.3_1
    Installing libwmf: 0.2.8.4_10
    Installing librsvg2: 2.36.4
    Installing liblqr-1: 0.4.1_6
    Installing libfpx: 1.3.1.4
    Installing lcms2: 2.6
    Installing libcroco: 0.6.8
    Installing libpaper: 1.1.24_1
    Installing gsfonts: 8.11_6
    Installing cups-image: 1.7.1
    Installing svgalib: 1.4.3_6
    Installing jbig2dec: 0.11_1
    Installing gtk-engines2: 2.20.2_1
    Installing libgsf: 1.14.28

The process will require 455 MB more space

74 MB to be downloaded

Proceed with this action [y/N]: y
Checking integrity... done (1 conflicting)
Checking integrity... done (0 conflicting)
pkg: The conflicts with the existing packages have been found.
We need to run one more solver iteration to resolve them
The following 36 packages will be affected (of 521 in the universe):

    Removing pkg-devel-1.3.0.a7_1
    Installing php5: 5.4.27
    Installing pkg: 1.2.7_2
    Installing php5-xml: 5.4.27
    Installing libidn: 1.28_1
    Installing lcms2: 2.6
    Installing libcroco: 0.6.8
    Installing libpaper: 1.1.24_1
    Installing gsfonts: 8.11_6
    Installing cups-image: 1.7.1
    Installing svgalib: 1.4.3_6
    Installing jbig2dec: 0.11_1
    Installing gtk-engines2: 2.20.2_1
    Installing libgsf: 1.14.28
    Installing net-snmp: 5.7.2_7
    Installing pear: 1.9.4_3
    Installing t1lib: 5.1.2_2,1
    Installing libgd: 2.1.0_2,1
    Installing ghostscript9: 9.06_5
    Installing fftw3: 3.3.3_1
    Installing libwmf: 0.2.8.4_10
    Installing librsvg2: 2.36.4
    Installing liblqr-1: 0.4.1_6
    Installing libfpx: 1.3.1.4
    Installing php5-session: 5.4.27
    Installing php5-ctype: 5.4.27
    Installing pear-Net_IPv6: 1.2.1
    Installing pear-Net_IPv4: 1.3.4
    Installing mtr-nox11: 0.85_1
    Installing php5-snmp: 5.4.27
    Installing php5-gd: 5.4.27
    Installing graphviz: 2.36.0
    Installing ImageMagick: 6.8.0.7_5,1
    Installing php5-mysql: 5.4.27
    Installing observium: 0.11.5.2261_1
    Installing i386-wine-devel: 1.7.15,1

The process will require 440 MB more space

74 MB to be downloaded

Proceed with this action [y/N]: 
@rpaulo
Copy link
Member Author

rpaulo commented Apr 23, 2014

This still happens with alpha 9.

@bdrewery
Copy link
Member

This is due to net-mgmt/net-snmp depending on libpkg.so:ports-mgmt/pkg

@bdrewery
Copy link
Member

Resolved in ports: http://svnweb.freebsd.org/ports?view=revision&revision=351905

This is not really a pkg problem. It's entirely ports with how it registers dependencies in packages.

bdrewery added a commit to freebsd/freebsd-ports that referenced this issue Apr 23, 2014
  * While this dependency is proper, it creates a hard dependency on
    ports-mgmt/pkg, which interferes with pkg-devel testing. Users
    using pkg-devel are forced to install ports-mgmt/pkg if using this
    port or anything depending on this port.
    While the LIB_DEPENDS has been removed, pkg will still record that
    the net-snmp package requires libpkg.so.1, due to its auto shlib
    dependency registering. This is fine as the package depends on
    libpkg.so.1 but not explicitly on ports-mgmt/pkg. The pkg solver
    can decide how to satisfy that dependency.
  * If using pkg you'll already have pkg installed while building
    this port in ports or installing from packages. So nothing is lost
    here.
  * Once pkg-1.3 is out we may change ACTUAL-PACKAGE-DEPENDS to only
    consider RUN_DEPENDS, not also LIB_DEPENDS. This would remove
    the hard dependency on ports-mgmt/pkg here. pkg-1.2 cannot
    handle this yet though.

Reported by:	rpaulo
Reported at:	freebsd/pkg#785
With hat:	portmgr
@rpaulo
Copy link
Member Author

rpaulo commented Apr 23, 2014

ok

@rpaulo rpaulo closed this as completed Apr 23, 2014
tota pushed a commit to tota/freebsd-ports that referenced this issue Apr 23, 2014
  * While this dependency is proper, it creates a hard dependency on
    ports-mgmt/pkg, which interferes with pkg-devel testing. Users
    using pkg-devel are forced to install ports-mgmt/pkg if using this
    port or anything depending on this port.
    While the LIB_DEPENDS has been removed, pkg will still record that
    the net-snmp package requires libpkg.so.1, due to its auto shlib
    dependency registering. This is fine as the package depends on
    libpkg.so.1 but not explicitly on ports-mgmt/pkg. The pkg solver
    can decide how to satisfy that dependency.
  * If using pkg you'll already have pkg installed while building
    this port in ports or installing from packages. So nothing is lost
    here.
  * Once pkg-1.3 is out we may change ACTUAL-PACKAGE-DEPENDS to only
    consider RUN_DEPENDS, not also LIB_DEPENDS. This would remove
    the hard dependency on ports-mgmt/pkg here. pkg-1.2 cannot
    handle this yet though.

Reported by:	rpaulo
Reported at:	freebsd/pkg#785
With hat:	portmgr


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@351905 35697150-7ecd-e111-bb59-0022644237b5
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