Ticket #43155: qalculate-gtk-const.diff

File qalculate-gtk-const.diff, 721 bytes (added by Ionic (Mihai Moldovan), 10 years ago)

Fix build failure due to missing const in tree_struct sorting operator.

  • math/qalculate-gtk/Portfile

    old new depends_lib port:libqalculate \ 
    3333depends_run         port:gtk2 \
    3434                    port:gnome-vfs
    3535
     36patchfiles          patch-src_callbacks.cc-const.diff
     37
    3638use_parallel_build  yes
    3739
    3840# needs to be same as used by intltool
  • new file math/qalculate-gtk/files/patch-src_callbacks.cc-const.diff

    - +  
     1--- src/callbacks.cc.orig       2014-05-01 01:00:13.000000000 +0200
     2+++ src/callbacks.cc            2014-05-01 01:03:55.000000000 +0200
     3@@ -346,7 +346,7 @@
     4                        it->sort();
     5                }
     6        }
     7-       bool operator < (tree_struct &s1) const {
     8+       bool operator < (const tree_struct &s1) const {
     9                return item < s1.item; 
     10        }       
     11 };