Ticket #48022: openssl1.patch

File openssl1.patch, 4.7 KB (added by larryv (Lawrence Velázquez), 9 years ago)

combined diff for planned commits

  • dports/devel/openssl/Portfile

    diff --git a/dports/devel/openssl/Portfile b/dports/devel/openssl/Portfile
    index acee77c..97430e6 100644
    a b PortGroup muniversal 1.0 
    66
    77name                openssl
    88epoch               1
    9 version             1.0.2a
     9version             1.0.2b
    1010
    1111# Please revbump these ports when updating OpenSSL.
    1212#  - freeradius (#43461)
    13 #  - tor (#44256)
     13#  - tor, tor-devel (#44256)
    1414
    1515categories          devel security
    1616platforms           darwin
    long_description The OpenSSL Project is a collaborative effort to \ 
    2525                    Security (TLS v1) protocols as well as \
    2626                    a full-strength general purpose cryptography \
    2727                    library.
    28 homepage            http://www.openssl.org/
     28homepage            http://www.openssl.org
    2929
    3030depends_lib         port:zlib
    3131
    32 master_sites        http://www.openssl.org/source/
    33 checksums           md5     a06c547dac9044161a477211049f60ef \
    34                     sha1    46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f \
    35                     rmd160  2974a0a8cc469d85a5391a64aa0a2b2c5b00acfa \
    36                     sha256  15b6393c20030aab02c8e2fe0243cb1d1d18062f6c095d67bca91871dc7f324a
     32master_sites        http://www.openssl.org/source
     33checksums           md5     7729b259e2dea7d60b32fc3934d6984b \
     34                    sha1    9006e53ca56a14d041e3875320eedfa63d82aba7 \
     35                    rmd160  543a4d9d4fe08ddcae0937334224d8479d9b602a \
     36                    sha256  d5d488cc9f0a07974195a7427094ea3cab9800a4e90178b989aa621fbc238e3f
    3737
    3838patchfiles          patch-bn_internal.pod.diff \
    3939                    patch-crypto-Makefile.diff \
    4040                    patch-Makefile.org-parallel.diff \
    4141                    patch-crypto-perlasm-x86_64-xlate.pl.diff
    4242
    43 # We've tried patching some, but we're not there yet, see #46719
    44 use_parallel_build  no
    45 
    4643configure.ccache    no
    4744configure.perl      /usr/bin/perl
    4845configure.cmd       ./Configure
    49 configure.args      -L${prefix}/lib \
     46configure.args     -L${prefix}/lib \
    5047                    no-krb5 \
    51                     --openssldir=${prefix}/etc/openssl \
     48                  --openssldir=${prefix}/etc/openssl \
    5249                    shared \
    5350                    zlib
    5451# Use SDK if necessary.
    if {${configure.sdkroot} ne ""} { 
    5754                            -Wl,-syslibroot,${configure.sdkroot}
    5855}
    5956
    60 destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
    61 destroot.destdir    INSTALL_PREFIX=${destroot}
    62 
    63 test.run            yes
    64 test.dir            ${worksrcpath}/test
    65 test.target         alltests
    66 
    67 livecheck.type      regex
    68 livecheck.url       ${master_sites}
    69 livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
    70 
    71 # code for universal build
     57set merger_arch_compiler no
    7258array set merger_configure_args {
    7359    ppc     darwin-ppc-cc
    7460    i386    darwin-i386-cc
    7561    ppc64   darwin64-ppc-cc
    7662    x86_64  darwin64-x86_64-cc
    7763}
     64# Don't use i386 assembly on Tiger (#38015, #43303).
    7865platform darwin 8 {
    79     append merger_configure_args(i386) " " no-asm
     66    append merger_configure_args(i386) { no-asm}
    8067}
     68# Don't use x86-64 assembly on Leopard.
     69platform darwin 9 {
     70    append merger_configure_args(x86_64) { no-asm}
     71}
     72# Don't pass --host to configure.
     73array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
    8174
    82 if {[variant_isset universal]} {
    83     set merger_arch_compiler "no"
     75if {![variant_isset universal]
     76        && [info exists merger_configure_args(${configure.build_arch})]} {
     77    configure.args-append $merger_configure_args(${configure.build_arch})
     78}
     79configure.universal_args-delete --disable-dependency-tracking
    8480
    85     configure.universal_args-delete --disable-dependency-tracking
     81# Parallel builds don't quite work (#46719).
     82use_parallel_build  no
     83
     84test.run            yes
    8685
     86if {[variant_isset universal]} {
    8787    pre-destroot {
    8888        global merger_dont_diff
    8989        if {[llength ${universal_archs_to_use}] > 2} {
    9090            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
    9191        }
    9292    }
    93 
    94     # Do not set --host.
    95     array set merger_host {
    96         ppc     {}
    97         i386    {}
    98         ppc64   {}
    99         x86_64  {}
    100     }
    101 } elseif {[info exists merger_configure_args($build_arch)]} {
    102     configure.args-append   $merger_configure_args($build_arch)
    10393}
    10494
     95destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
     96destroot.destdir    INSTALL_PREFIX=${destroot}
     97
    10598variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
    10699    configure.args-append   enable-rfc3779
    107100}
     101
     102livecheck.type      regex
     103livecheck.url       [lindex ${master_sites} 0]
     104livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz