Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1057

Install libmongoc-priv.so according to Debian guidelines

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: Build, libmongoc
    • None

      Roberto wrote to me:

      Debian policy actually
      specifically addresses private libraries:

      > Shared object files (often .so files) that are not public libraries,
      > that is, they are not meant to be linked to by third party
      > executables (binaries of other packages), should be installed in
      > subdirectories of the /usr/lib directory. Such files are exempt from
      > the rules that govern ordinary shared libraries, except that they
      > must not be installed executable and should be stripped.

      Additionally, lintian also complains:

      W: libmongoc-priv: package-name-doesnt-match-sonames libmongoc-priv0

      I think that it would make sense for you to update the upstream part of
      the build system to install the -priv library into something like
      /usr/lib/<arch>/mongoc

      It would also be a good idea to get the upstream build system to not
      install the .so.0 and .so.0.0.0 symlinks if the -priv library really
      doesn't have a SONAME.

      The policy is here:

      https://www.debian.org/doc/debian-policy/ch-files.html#s-libraries

      Currently our "debian" branch has some patches to make the package meet Debian's policy. But assuming the Debian policy is a good policy for installing a private runtime library on any Linux distro, we should update our "make install" to match, and then revert the patches in the "debian" branch.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: