pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/fltk13 Change reparent failure check to something ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/834910000b12
branches:  trunk
changeset: 355944:834910000b12
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 16 00:08:03 2016 +0000

description:
Change reparent failure check to something more logical. Bump revision.

diffstat:

 x11/fltk13/Makefile                             |   4 ++--
 x11/fltk13/distinfo                             |   3 ++-
 x11/fltk13/patches/patch-src_Fl__Tree__Item.cxx |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 4d8492a72e24 -r 834910000b12 x11/fltk13/Makefile
--- a/x11/fltk13/Makefile       Fri Dec 16 00:06:46 2016 +0000
+++ b/x11/fltk13/Makefile       Fri Dec 16 00:08:03 2016 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2016/02/17 06:05:41 dbj Exp $
+# $NetBSD: Makefile,v 1.24 2016/12/16 00:08:03 joerg Exp $
 
 DISTNAME=      fltk-1.3.3-source
-PKGREVISION=   2
+PKGREVISION=   3
 PKGNAME=       ${DISTNAME:S/-source//}
 VERS=          ${DISTNAME:S/fltk-//:S/-source//}
 CATEGORIES=    x11
diff -r 4d8492a72e24 -r 834910000b12 x11/fltk13/distinfo
--- a/x11/fltk13/distinfo       Fri Dec 16 00:06:46 2016 +0000
+++ b/x11/fltk13/distinfo       Fri Dec 16 00:08:03 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2016/01/26 08:47:28 dbj Exp $
+$NetBSD: distinfo,v 1.9 2016/12/16 00:08:03 joerg Exp $
 
 SHA1 (fltk-1.3.3-source.tar.gz) = 873aac49b277149e054b9740378e2ca87b0bd435
 RMD160 (fltk-1.3.3-source.tar.gz) = a1736ec7da1ff751153e09bc5b5136d2fa95c18b
@@ -14,6 +14,7 @@
 SHA1 (patch-af) = a4154e31fca9ecf125922a84ac39771bc71dcb0f
 SHA1 (patch-ag) = 61e6d166d0910e02558bacea629f7fb736f7304c
 SHA1 (patch-src_Fl.cxx) = 169ed990645180694b7cce5baad72a28ac4fcb7a
+SHA1 (patch-src_Fl__Tree__Item.cxx) = 39c0c4cbb905caef8cb2ff4159fa12c42ed890d6
 SHA1 (patch-src_Fl_cocoa.mm) = 878038c611623b5337634e43d756bfb291872b18
 SHA1 (patch-src_Fl_grab.cxx) = 08e2ddabf55c7de46558681ec651acc134182e01
 SHA1 (patch-src_Fl_x.cxx) = ca7e4b98c52a84d0bc23ecf33fc30f94c0d16d35
diff -r 4d8492a72e24 -r 834910000b12 x11/fltk13/patches/patch-src_Fl__Tree__Item.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/fltk13/patches/patch-src_Fl__Tree__Item.cxx   Fri Dec 16 00:08:03 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Fl__Tree__Item.cxx,v 1.1 2016/12/16 00:08:03 joerg Exp $
+
+Ordering a pointer with 0 doesn't make sense, so check for failing deparent.
+
+--- src/Fl_Tree_Item.cxx.orig  2016-12-10 23:21:18.934820703 +0000
++++ src/Fl_Tree_Item.cxx
+@@ -549,7 +549,7 @@ int Fl_Tree_Item::move(Fl_Tree_Item *ite
+   } else {                                    // different parent?
+     if ( to > to_parent->children() )         // try to prevent a reparent() error
+       return -4;
+-    if ( from_parent->deparent(from) < 0 )    // deparent self from current parent
++    if ( !from_parent->deparent(from) )       // deparent self from current parent
+       return -5;
+     if ( to_parent->reparent(this, to) < 0 ) {        // reparent self to new parent at position 'to'
+       to_parent->reparent(this, 0);           // failed? shouldn't happen, reparent at 0



Home | Main Index | Thread Index | Old Index