Ticket #43150: perl5.16.3.diff

File perl5.16.3.diff, 2.2 KB (added by mojca (Mojca Miklavec), 11 years ago)

upgrade to perl5.16.3 including the patch for dNOOP

  • Portfile

     
    44PortSystem          1.0
    55
    66name                perl5.16
    7 version             5.16.1
    8 revision            3
     7version             5.16.3
    98set branch          [join [lrange [split ${version} .] 0 1] .]
    109categories          lang
    1110license             {Artistic-1 GPL}
     
    2322homepage            http://www.perl.org/
    2423master_sites        http://www.cpan.org/src/5.0/
    2524
    26 checksums           rmd160  90effd1105fb0595673b24824c760f2c79c4b317 \
    27                     sha256  0704b1421fe50015becd32c8b7ed05843e8b6c188a8c16cb0c11d76986375fd0
     25checksums           rmd160  f25fdd72449156a7cbe989e8bd339fdba1afabc0 \
     26                    sha256  bb7bc735e6813b177dcfccd480defcde7eddefa173b5967eac11babd1bfa98e8
    2827
    2928depends_lib-append  port:gdbm
    3029
    3130patchfiles          patch-Configure.diff \
    32                     patch-handy.h.stdbool.diff
     31                    patch-handy.h.stdbool.diff \
     32                    patch-perl.h.diff
    3333
    3434platform darwin {
    3535    patchfiles-append   patch-hints_darwin.sh.diff
     
    8484if {${os.platform} eq "darwin"} {
    8585    set platsuffix "-2level"
    8686}
    87 configure.args-append "-D inc_version_list=\"5.16.0/${os.platform}-thread-multi${platsuffix} 5.16.0 \""
     87configure.args-append "-D inc_version_list=\"5.16.1/${os.platform}-thread-multi${platsuffix} 5.16.1 5.16.0/${os.platform}-thread-multi${platsuffix} 5.16.0\""
    8888
    8989if {[variant_isset universal]} {
    9090    post-configure {
  • files/patch-perl.h.diff

     
     1--- perl.h.orig
     2+++ perl.h
     3@@ -359,7 +359,11 @@
     4 /* Rats: if dTHR is just blank then the subsequent ";" throws an error */
     5 /* Declaring a *function*, instead of a variable, ensures that we don't rely
     6    on being able to suppress "unused" warnings.  */
     7+#ifdef __cplusplus
     8+#define dNOOP (void)0
     9+#else
     10 #define dNOOP extern int Perl___notused(void)
     11+#endif
     12 
     13 #ifndef pTHX
     14 /* Don't bother defining tTHX and sTHX; using them outside