Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2143

Solaris package does not package library symlinks, but real copies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.2
    • Component/s: Packaging
    • Labels:
      None

      Description

      There's something wrong with the packaging on Solaris. Instead of getting symlinks to the soname there are real copies which blows up the package size:

      <pre>

      1. /var/cfengine/bin/cf-agent -V && du -sh /var/cfengine/lib && ls -ltrh /var/cfengine/lib
        CFEngine Core 3.7.1
        CFEngine Enterprise 3.7.1
        49M /var/cfengine/lib
        total 100103
        -rwxr-xr-x 1 root root 366K Sep 1 23:27 libyaml.so
        -rwxr-xr-x 1 root root 366K Sep 1 23:27 libyaml-0.so.2.0.4
        -rwxr-xr-x 1 root root 366K Sep 1 23:27 libyaml-0.so.2
        rw-rr- 1 root root 300K Sep 1 23:27 libgcc_s.so.1
        -rwxr-xr-x 1 root root 100K Sep 1 23:27 libz.so.1.2.8
        -rwxr-xr-x 1 root root 100K Sep 1 23:27 libz.so.1
        -rwxr-xr-x 1 root root 100K Sep 1 23:27 libz.so
        -rwxr-xr-x 1 root root 238K Sep 1 23:28 liblmdb.so
        -rwxr-xr-x 1 root root 392K Sep 1 23:51 libssl.so.1.0.0
        -rwxr-xr-x 1 root root 392K Sep 1 23:51 libssl.so
        -rwxr-xr-x 1 root root 1.9M Sep 1 23:51 libcrypto.so.1.0.0
        -rwxr-xr-x 1 root root 1.9M Sep 1 23:51 libcrypto.so
        -rwxr-xr-x 1 root root 668K Sep 1 23:55 libpcre.so.1.2.5
        -rwxr-xr-x 1 root root 668K Sep 1 23:55 libpcre.so.1
        -rwxr-xr-x 1 root root 668K Sep 1 23:55 libpcre.so
        -rwxr-xr-x 1 root root 17K Sep 1 23:55 libpcreposix.so.0.0.3
        -rwxr-xr-x 1 root root 17K Sep 1 23:55 libpcreposix.so.0
        -rwxr-xr-x 1 root root 17K Sep 1 23:55 libpcreposix.so
        -rwxr-xr-x 1 root root 394K Sep 1 23:56 libsasl2.so.3.0.0
        -rwxr-xr-x 1 root root 394K Sep 1 23:56 libsasl2.so.3
        -rwxr-xr-x 1 root root 394K Sep 1 23:56 libsasl2.so
        -rwxr-xr-x 1 root root 1.0M Sep 1 23:59 libiconv.so.2.5.1
        -rwxr-xr-x 1 root root 1.0M Sep 1 23:59 libiconv.so.2
        -rwxr-xr-x 1 root root 1.0M Sep 1 23:59 libiconv.so
        -rwxr-xr-x 1 root root 13K Sep 1 23:59 libcharset.so.1.0.0
        -rwxr-xr-x 1 root root 13K Sep 1 23:59 libcharset.so.1
        -rwxr-xr-x 1 root root 13K Sep 1 23:59 libcharset.so
        -rwxr-xr-x 1 root root 146K Sep 2 00:08 liblber.so
        -rwxr-xr-x 1 root root 146K Sep 2 00:08 liblber-2.4.so.2.10.5
        -rwxr-xr-x 1 root root 146K Sep 2 00:08 liblber-2.4.so.2
        -rwxr-xr-x 1 root root 1.2M Sep 2 00:09 libldap.so
        -rwxr-xr-x 1 root root 1.2M Sep 2 00:09 libldap-2.4.so.2.10.5
        -rwxr-xr-x 1 root root 1.2M Sep 2 00:09 libldap-2.4.so.2
        -rwxr-xr-x 1 root root 1.3M Sep 2 00:09 libldap_r.so
        -rwxr-xr-x 1 root root 1.3M Sep 2 00:09 libldap_r-2.4.so.2.10.5
        -rwxr-xr-x 1 root root 1.3M Sep 2 00:09 libldap_r-2.4.so.2
        -rwxr-xr-x 1 root root 4.9M Sep 2 00:23 libxml2.so.2.9.2
        -rwxr-xr-x 1 root root 4.9M Sep 2 00:23 libxml2.so.2
        -rwxr-xr-x 1 root root 4.9M Sep 2 00:23 libxml2.so
        -rwxr-xr-x 1 root root 141K Sep 2 00:25 libpq.so.5.3
        -rwxr-xr-x 1 root root 141K Sep 2 00:25 libpq.so.5
        -rwxr-xr-x 1 root root 141K Sep 2 00:25 libpq.so
        -rwxr-xr-x 1 root root 3.1M Sep 6 12:27 libpromises.so.3.0.6
        -rwxr-xr-x 1 root root 3.1M Sep 6 12:27 libpromises.so.3
        -rwxr-xr-x 1 root root 3.1M Sep 6 12:27 libpromises.so
        -rwxr-xr-x 1 root root 1.1K Sep 6 12:27 libpromises.la
        -rwxr-xr-x 1 root root 744K Sep 6 12:27 cfengine-enterprise.so
        -rwxr-xr-x 1 root root 1.2K Sep 6 12:27 cfengine-enterprise.la
        </pre>

      If you are doing recursive copy (cp -r) on Solaris it doesn't honor symlinks. You should use tar or GNU version of gcp (https://www.opencsw.org/) instead.

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified