Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-240

The zip distribution of httpd contains copies of libraries in httpd/lib instead of the original symlinks

    XMLWordPrintable

Details

    Description

      While looking into JBCS-239 I noticed a difference in how we're shipping the openssl libraries in JBCS versus how we shipped them in ews-2.1.1. The problem appears to be that instead of copying symlinks, we're duplicating the shared objects...

      Here is the human readable listing of the libcrypto and libssl shared objects:

      $ ll -h jbcs-httpd24-httpd-2.4.23-CR4-RHEL6-x86_64.zip/jbcs-httpd24-2.4/httpd/lib/lib{crypto,ssl}*
      -rwxr-xr-x. 1 coty coty 2.4M Dec  6 07:50 jbcs-httpd24-httpd-2.4.23-CR4-RHEL6-x86_64.zip/jbcs-httpd24-2.4/httpd/lib/libcrypto.so.10
      -rwxr-xr-x. 1 coty coty 2.4M Dec  6 07:50 jbcs-httpd24-httpd-2.4.23-CR4-RHEL6-x86_64.zip/jbcs-httpd24-2.4/httpd/lib/libcrypto.so.1.0.2h
      -rwxr-xr-x. 1 coty coty 469K Dec  6 07:50 jbcs-httpd24-httpd-2.4.23-CR4-RHEL6-x86_64.zip/jbcs-httpd24-2.4/httpd/lib/libssl.so.10
      -rwxr-xr-x. 1 coty coty 469K Dec  6 07:50 jbcs-httpd24-httpd-2.4.23-CR4-RHEL6-x86_64.zip/jbcs-httpd24-2.4/httpd/lib/libssl.so.1.0.2h
      

      The problem here is that we're shipping an additional (wasted) 2.4M just with the one object. That may seem small, but with the total size of the distribution being about 30M that's getting close to 1% (the total of all duplicated objects is about 4M), and we should be as conservative as possible with storage (however cheap it is) when we can.

      And here's how we shipped ews-2.1.1 (preserving the symlinks), for reference:

      $ ll jboss-ews-httpd-2.1.2-RHEL6-x86_64.zip/jboss-ews-2.1/httpd/lib/lib{crypto,ssl}*
      lrwxrwxrwx. 1 coty coty      19 Dec  7 12:40 jboss-ews-httpd-2.1.2-RHEL6-x86_64.zip/jboss-ews-2.1/httpd/lib/libcrypto.so.10 -> libcrypto.so.1.0.2h
      -rwxr-xr-x. 1 coty coty 2329184 Jul 21 20:14 jboss-ews-httpd-2.1.2-RHEL6-x86_64.zip/jboss-ews-2.1/httpd/lib/libcrypto.so.1.0.2h
      lrwxrwxrwx. 1 coty coty      16 Dec  7 12:40 jboss-ews-httpd-2.1.2-RHEL6-x86_64.zip/jboss-ews-2.1/httpd/lib/libssl.so.10 -> libssl.so.1.0.2h
      -rwxr-xr-x. 1 coty coty  457112 Jul 21 20:14 jboss-ews-httpd-2.1.2-RHEL6-x86_64.zip/jboss-ews-2.1/httpd/lib/libssl.so.1.0.2h
      

      Attachments

        Activity

          People

            szappis@redhat.com Sokratis Zappis
            rhn-support-csutherl Coty Sutherland
            Marek Czernek Marek Czernek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: