Ticket #51980: perl5.diff
File perl5.diff, 5.1 KB (added by mojca (Mojca Miklavec), 8 years ago) |
---|
-
Portfile
31 31 # - revision 32 32 # - rmd160 sha256 33 33 set perl5.versions_info { 34 5.16 3 2f25fdd72449156a7cbe989e8bd339fdba1afabc0 bb7bc735e6813b177dcfccd480defcde7eddefa173b5967eac11babd1bfa98e835 5.18 4 1d97181a98f7acc80125b0d2a182a6a2cd7542ceb 1fb4d27b75cd244e849f253320260efe1750641aaff4a18ce0d67556ff1b96a536 5.20 3 0499846a1c92e00dd357cb782bc14787b8cd47051 1b40068166c242e34a536836286e70b78410602a80615143301e52aa2901493b34 5.16 3 3 f25fdd72449156a7cbe989e8bd339fdba1afabc0 bb7bc735e6813b177dcfccd480defcde7eddefa173b5967eac11babd1bfa98e8 35 5.18 4 2 d97181a98f7acc80125b0d2a182a6a2cd7542ceb 1fb4d27b75cd244e849f253320260efe1750641aaff4a18ce0d67556ff1b96a5 36 5.20 3 1 499846a1c92e00dd357cb782bc14787b8cd47051 1b40068166c242e34a536836286e70b78410602a80615143301e52aa2901493b 37 37 5.22 2 1 203afca8995ca426db0af48b78eb606b5d24011a f2322b9b04fe0cdbca9fe755360da04892cb6483d44959457cfebc0bcddc8058 38 38 5.24 0 0 756bf07069e91eabe3dac3a47aec5097d48f8963 62328a53d157e8153b33e137594155f6f8b64418f7f9238210feb809585290e0 39 39 } … … 67 67 68 68 # TODO: revise patch naming scheme 69 69 patchfiles ${perl5.major}/clean-up-paths.patch \ 70 ${perl5.major}/avoid-no-cpp-precomp-PR38913.patch \ 71 ${perl5.major}/fix-ld-modification.patch 70 ${perl5.major}/avoid-no-cpp-precomp-PR38913.patch 72 71 73 72 # Prevent build from picking up the bind9 port's static libbind, which 74 73 # duplicates symbols from /usr/lib/libdl (r10638). … … 75 74 patchfiles-append ${perl5.major}/avoid-bind9-linking.patch 76 75 77 76 # Prevent miniperl linking from accidentally finding our libstdc++ 78 # (#36438).77 # https://trac.macports.org/ticket/36438 79 78 patchfiles-append ${perl5.major}/fix-miniperl-linking-PR36438.patch 80 79 80 # Install files under 5.xx rather than 5.xx.yy 81 # https://trac.macports.org/ticket/43480 82 patchfiles-append ${perl5.major}/install-under-short-version-PR43480.patch 83 81 84 if {${perl5.major} == 5.16} { 82 85 patchfiles-append \ 83 86 ${perl5.major}/use-stdbool.patch … … 85 88 # and https://rt.perl.org/Public/Bug/Display.html?id=121714. 86 89 patchfiles-append \ 87 90 ${perl5.major}/fix-cxx-dNOOP-PR43150.patch 88 } else {89 patchfiles-append \90 ${perl5.major}/install-under-short-version-PR43480.patch91 91 } 92 92 if {${perl5.major} >= 5.22} { 93 93 # failed test … … 100 100 # https://trac.macports.org/ticket/52012 101 101 patchfiles-append \ 102 102 ${perl5.major}/patch-dist-Time-HiRes-HiRes.xs.diff 103 } 104 # This should be added to other perl versions as well 105 if {${perl5.major} == 5.22} { 106 patchfiles-delete \ 103 patchfiles-append \ 107 104 ${perl5.major}/fix-ld-modification.patch 105 } else { 108 106 # Do not compile for 10.3/10.4 109 107 # https://trac.macports.org/ticket/51980 110 108 patchfiles-append \ … … 133 131 {-Dcc="$CC"} \ 134 132 -Dman1ext=1pm \ 135 133 -Dman3ext=3pm \ 134 -Dinstallstyle='lib/perl5' \ 136 135 -Dman1dir='${prefix}/share/man/man1p' \ 137 136 -Dman3dir='${prefix}/share/man/man3p' \ 138 137 -Dsitebin='${prefix}/libexec/perl${perl5.major}/sitebin' \ … … 143 142 -Dvendorman3dir='${prefix}/share/perl${perl5.major}/man/man3' \ 144 143 -Dpager='/usr/bin/less -sR' \ 145 144 -Dperlpath="${perl5.bin}" \ 146 -Dstartperl="#!${perl5.bin}" 147 # flags with -A should be used for all versions of perl, 148 # but for the time being we wanted to avoid rebuilding (revbumping) old perl version 149 # so changing the flags is scheduled for later 150 if {${version} >= 5.22} { 151 configure.post_args-append \ 152 {-Acppflags="$CPPFLAGS"} \ 153 {-Accflags="$CFLAGS"} \ 154 {-Aldflags="$LDFLAGS"} \ 155 {-Dinstallstyle="lib/perl5"} 156 } else { 157 configure.post_args-append \ 158 {-Dcppflags="$CPPFLAGS"} \ 159 {-Dccflags="$CFLAGS"} \ 160 {-Dldflags="$LDFLAGS"} \ 161 {-Dld="env MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET $CC"} 162 } 145 -Dstartperl="#!${perl5.bin}" \ 146 {-Acppflags="$CPPFLAGS"} \ 147 {-Accflags="$CFLAGS"} \ 148 {-Aldflags="$LDFLAGS"} 163 149 164 150 if {[variant_isset universal]} { 165 151 post-configure {