Ticket #25513: patch-tokyocabinet-enable-debug-mode.diff

File patch-tokyocabinet-enable-debug-mode.diff, 1.7 KB (added by kencu (Ken), 6 years ago)

patch to enable the +debug variant to build on systems newer than Leopard.

  • databases/tokyocabinet/Portfile

    diff --git a/databases/tokyocabinet/Portfile b/databases/tokyocabinet/Portfile
    index f01f8adac2..f75648c6d0 100644
    a b master_sites ${homepage} 
    2828checksums           rmd160  8fb3c2f2e424a2135cb021d46905a783a1032a7b \
    2929                    sha256  a003f47c39a91e22d76bc4fe68b9b3de0f38851b160bbb1ca07a4f6441de1f90
    3030
    31 patchfiles          patch-configure.diff
     31patchfiles          patch-configure.diff \
     32                    patch-tokyocabinet-no-static.diff
    3233
    3334depends_lib         port:zlib \
    3435                    port:bzip2
    configure.args --mandir=${prefix}/share/man \ 
    4546test.run            yes
    4647test.target         check
    4748
    48 # broken on snow leopard, ticket #25513
    49 if {${os.major} < 10 || ${os.platform} ne "darwin"} {
    5049variant debug conflicts devel profile fastest description {build for debugging} {
    5150    configure.args-append   --enable-debug
    5251}
    53 }
    5452
    5553variant devel conflicts profile fastest description {build for development} {
    5654    configure.args-append   --enable-devel
  • new file databases/tokyocabinet/files/patch-tokyocabinet-no-static.diff

    diff --git a/databases/tokyocabinet/files/patch-tokyocabinet-no-static.diff b/databases/tokyocabinet/files/patch-tokyocabinet-no-static.diff
    new file mode 100644
    index 0000000000..4cd973bcb5
    - +  
     1diff --git configure configure
     2index ae1371b..3446401 100755
     3--- configure
     4+++ configure
     5@@ -2113,7 +2113,6 @@ if test "$enable_debug" = "yes"
     6 then
     7   MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g -O0"
     8   MYCPPFLAGS="$MYCPPFLAGS -UNDEBUG"
     9-  MYCMDLDFLAGS="$MYCMDLDFLAGS -static"
     10   enables="$enables (debug)"
     11 fi
     12