Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47756

Superfluous database-tools-extra RPM components installed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: 4.4.0-rc2
    • Component/s: Packaging
    • None
    • Fully Compatible
    • Dev Platform 2020-05-04

      Inspecting the Community and Enterprise versions of database-tools-extra for MDB 4.4.0rc2, I noticed some extra inclusions:

      Community

      • Includes the mongoldap manpage:
      [vagrant@centos8 /]$ cd /tmp
      [vagrant@centos8 tmp]$ wget https://repo.mongodb.org/yum/redhat/8/mongodb-org/testing/x86_64/RPMS/mongodb-org-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      [vagrant@centos8 tmp]$ ls -l mongodb-org*
      -rw-rw-r--.  1 vagrant vagrant 20K Apr 22 06:39 mongodb-org-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      [vagrant@centos8 tmp]$ rpm -ql mongodb-org-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      /usr/bin/install_compass
      /usr/share/man/man1/mongoldap.1
      [vagrant@centos8 tmp]$ ls -l /usr/bin/install_compass
      -rwxr-xr-x. 1 root root 7694 Apr 22 06:13 /usr/bin/install_compass
      [vagrant@centos8 tmp]$ ls -l /usr/share/man/man1/mongoldap.1
      -rw-r--r--. 1 root root 22920 Apr 22 06:13 /usr/share/man/man1/mongoldap.1
      

      Enterprise

      • Includes possibly-unwanted packaging debugging info from rpmbuild (i.e. the /usr/lib/.build-id directory):
      [vagrant@centos8 tmp]$ wget https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/testing/x86_64/RPMS/mongodb-enterprise-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      [vagrant@centos8 tmp]$ ls -l mongodb-enterprise*
      -rw-rw-r--.  1 vagrant vagrant  36M Apr 22 08:11 mongodb-enterprise-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      [vagrant@centos8 tmp]$ rpm -ql mongodb-enterprise-database-tools-extra-4.4.0-0.1.rc2.el8.x86_64.rpm
      /usr/bin/install_compass
      /usr/bin/mongodecrypt
      /usr/bin/mongokerberos
      /usr/bin/mongoldap
      /usr/lib/.build-id
      /usr/lib/.build-id/96
      /usr/lib/.build-id/96/d3a8add27da0ca5756dc81140b577a9f9f1602
      /usr/lib/.build-id/d3
      /usr/lib/.build-id/d3/7bb7e62e485ba87953a9f415fd27602f37b501
      /usr/lib/.build-id/d7
      /usr/lib/.build-id/d7/df4fa55cb7891084bf2332daf140295749c8b6
      /usr/share/man/man1/mongoldap.1
      

      Not sure about the /usr/lib/.build-id inclusion. It's possible that we want this in the Enterprise package to enable user debugging of our binaries, but we ship them already-built so it seems unlikely. And I would then also expect them in the Community version if so.

      Note: I checked the corresponding deb packages, and all seemed in order.

      Hope this helps!

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: