[SERVER-15598] Ubuntu 14.04 Enterprise packages depend on unavailable libsnmp15 package Created: 10/Oct/14  Updated: 11/Mar/15  Resolved: 31/Oct/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.6.5, 2.7.7
Fix Version/s: 2.6.6, 2.8.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ernie Hershey Assignee: Ernie Hershey
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-16153 Installation of MongoDB Enterprise 2.... Closed
Related
related to SERVER-10051 Specify correct dependencies in Enter... Closed
related to SERVER-13243 Support for Ubuntu 14 "Trusty" Enterp... Closed
Tested
Backwards Compatibility: Fully Compatible
Operating System: Linux
Backport Completed:
Sprint: BUILD 2.7.8, BUILD 2.8.0-rc2
Participants:

 Description   

We specify "libsnmp15" as a dependency for all enterprise Ubuntu packages but it's only available by default for Ubuntu 12.04, not 14.04. We should either:

  1. Remove the adhoc dependency and make sure automatic dependencies include the right library or package for both OS versions, or
  2. Replace the libsnmp15 dependency with a specified dependency that will cover both OS versions.


 Comments   
Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-15598 Use dynamic dependencies for enterprise .debs
Branch: v2.6
https://github.com/mongodb/mongo/commit/81edd55c80fa66056bb7137e4770f761cfdfb9d6

Comment by Githook User [ 31/Oct/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-15598 Use dynamic dependencies for enterprise .debs
Branch: master
https://github.com/mongodb/mongo/commit/2ae2aee89b687e6e4e847133808367571508a5a6

Comment by Ernie Hershey [ 31/Oct/14 ]

I'm fixing this by removing hardcoded library dependencies and letting the debian packaging tools determine dependencies automatically.

The old control file line:

Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), libsasl2-2, libssl1.0.0, libkrb5-3

The new line:

Depends: ${shlibs:Depends}

With "snmp" specified manually for server packages to pull in snmp utilities.

Packages built this way have these automatic dependencies:
ubuntu 12.04 tools:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.1), libstdc++6 (>= 4.6)

ubuntu 12.04 mongos:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libgssapi-krb5-2 (>= 1.10+dfsg~), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6)

ubuntu 12.04 server:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libgssapi-krb5-2 (>= 1.10+dfsg~), libsasl2-2 (>= 2.1.24), libsnmp15 (>= 5.4.3~dfsg), 
libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6), snmp

ubuntu 12.04 shell:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6)

ubuntu 14.04 tools:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.1), libstdc++6 (>= 4.6)

ubuntu 14.04 mongos:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libgssapi-krb5-2 (>= 1.10+dfsg~), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6)

ubuntu 14.04 server:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libgssapi-krb5-2 (>= 1.10+dfsg~), libsasl2-2 (>= 2.1.24), libsnmp30 (>= 5.7.2~dfsg), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6), snmp

ubuntu 14.04 shell:

 Depends: libc6 (>= 2.15), libgcc1 (>= 1:4.1.1), libsasl2-2 (>= 2.1.24), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.6)

Generated at Thu Feb 08 03:38:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.