packages: Xaw3d/Xaw3d.spec, Xaw3d/Xaw3d-git.patch (NEW) - rel 3; warnings/e...
arekm
arekm at pld-linux.org
Mon Jan 23 23:10:20 CET 2012
Author: arekm Date: Mon Jan 23 22:10:19 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- rel 3; warnings/error fixes from git
---- Files affected:
packages/Xaw3d:
Xaw3d.spec (1.58 -> 1.59) , Xaw3d-git.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/Xaw3d/Xaw3d.spec
diff -u packages/Xaw3d/Xaw3d.spec:1.58 packages/Xaw3d/Xaw3d.spec:1.59
--- packages/Xaw3d/Xaw3d.spec:1.58 Mon Jan 23 19:49:34 2012
+++ packages/Xaw3d/Xaw3d.spec Mon Jan 23 23:10:14 2012
@@ -11,11 +11,12 @@
Summary(uk.UTF-8): Версія MIT Athena widget set для X
Name: Xaw3d
Version: 1.6
-Release: 2
+Release: 3
License: MIT
Group: X11/Libraries
Source0: http://xorg.freedesktop.org/releases/individual/lib/lib%{name}-%{version}.tar.bz2
# Source0-md5: db88f0c5afc5f285e046d84e15ad30de
+Patch0: %{name}-git.patch
URL: http://www.freedesktop.org/
BuildRequires: bison
BuildRequires: flex
@@ -203,6 +204,7 @@
%prep
%setup -q -n %{orgname}-%{version}
+%patch0 -p1
%build
%configure \
@@ -253,6 +255,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.59 2012/01/23 22:10:14 arekm
+- rel 3; warnings/error fixes from git
+
Revision 1.58 2012/01/23 18:49:34 arekm
- release 2
================================================================
Index: packages/Xaw3d/Xaw3d-git.patch
diff -u /dev/null packages/Xaw3d/Xaw3d-git.patch:1.1
--- /dev/null Mon Jan 23 23:10:20 2012
+++ packages/Xaw3d/Xaw3d-git.patch Mon Jan 23 23:10:14 2012
@@ -0,0 +1,207 @@
+commit b093ed77fbab09bd474094898719ed6346d30d45
+Author: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Sun Jan 22 22:01:07 2012 -0800
+
+ Build fix for int-pointer cast errors
+
+ Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+
+diff --git a/src/XawIm.c b/src/XawIm.c
+index b01f0d0..82a94b1 100644
+--- a/src/XawIm.c
++++ b/src/XawIm.c
+@@ -141,14 +141,14 @@ SearchVendorShell(Widget w)
+ return(NULL);
+ }
+
+-static XContext extContext = (XContext)NULL;
++static XContext extContext = (XContext)0;
+
+ static XawVendorShellExtPart *
+ SetExtPart(VendorShellWidget w, XawVendorShellExtWidget vew)
+ {
+ contextDataRec *contextData;
+
+- if (extContext == (XContext)NULL) extContext = XUniqueContext();
++ if (extContext == (XContext)0) extContext = XUniqueContext();
+
+ contextData = XtNew(contextDataRec);
+ contextData->parent = (Widget)w;
+@@ -252,14 +252,14 @@ ConfigureCB(Widget w, XtPointer closure, XEvent *event)
+ }
+ }
+
+-static XContext errContext = (XContext)NULL;
++static XContext errContext = (XContext)0;
+
+ static Widget
+ SetErrCnxt(Widget w, XIM xim)
+ {
+ contextErrDataRec *contextErrData;
+
+- if (errContext == (XContext)NULL) errContext = XUniqueContext();
++ if (errContext == (XContext)0) errContext = XUniqueContext();
+
+ contextErrData = XtNew(contextErrDataRec);
+ contextErrData->widget = w;
+@@ -1321,12 +1321,12 @@ Destroy(Widget w, XawVendorShellExtPart *ve)
+ return;
+ XtFree( (char*) ve->im.resources );
+
+- if (extContext != (XContext)NULL &&
++ if (extContext != (XContext)0 &&
+ !XFindContext (XtDisplay (w), (Window)w,
+ extContext, (XPointer*)&contextData))
+ XtFree( (char*) contextData );
+
+- if (errContext != (XContext)NULL &&
++ if (errContext != (XContext)0 &&
+ !XFindContext (XDisplayOfIM( ve->im.xim ), (Window) ve->im.xim,
+ errContext, (XPointer*) &contextErrData))
+ XtFree( (char*) contextErrData );
+
+commit 702e4ff9f5fbfae4aecba09f8c735dc97bac1b59
+Author: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Sun Jan 22 11:58:09 2012 -0800
+
+ Cleanup shadow declarations
+
+ Box.c:265:10: warning: declaration shadows a local variable [-Wshadow]
+ int i = bbw->composite.num_children;
+ ^
+ Box.c:166:15: note: previous declaration is here
+ Cardinal i;
+ ^
+ 1 warning generated.
+
+ Form.c:809:9: warning: declaration shadows a local variable [-Wshadow]
+ Widget w = *childP;
+ ^
+ Form.c:793:24: note: previous declaration is here
+ XawFormDoLayout(Widget w,
+ ^
+ 1 warning generated.
+
+ Viewport.c:627:24: warning: declaration shadows a local variable [-Wshadow]
+ if (!needshoriz) CheckHoriz();
+ ^
+ Viewport.c:605:14: note: expanded from macro 'CheckHoriz'
+ Widget bar = w->viewport.horiz_bar; \
+ ^
+ Viewport.c:620:14: note: previous declaration is here
+ Widget bar = w->viewport.vert_bar;
+ ^
+ 1 warning generated.
+
+ Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+
+diff --git a/src/Box.c b/src/Box.c
+index ccd52fd..43be5dc 100644
+--- a/src/Box.c
++++ b/src/Box.c
+@@ -262,9 +262,9 @@ DoLayout(BoxWidget bbw, Dimension width, Dimension height,
+ if (bbw->composite.num_children == num_mapped_children)
+ XMapSubwindows( XtDisplay((Widget)bbw), XtWindow((Widget)bbw) );
+ else {
+- int i = bbw->composite.num_children;
++ int j = bbw->composite.num_children;
+ Widget *childP = bbw->composite.children;
+- for (; i > 0; childP++, i--)
++ for (; j > 0; childP++, j--)
+ if (XtIsRealized(*childP) && XtIsManaged(*childP) &&
+ (*childP)->core.mapped_when_managed)
+ XtMapWidget(*childP);
+diff --git a/src/Form.c b/src/Form.c
+index 49fceb6..f078270 100644
+--- a/src/Form.c
++++ b/src/Form.c
+@@ -790,7 +790,7 @@ PreferredGeometry(Widget widget, XtWidgetGeometry *request, XtWidgetGeometry *re
+ */
+
+ void
+-XawFormDoLayout(Widget w,
++XawFormDoLayout(Widget _fw,
+ #if NeedWidePrototypes
+ int doit)
+ #else
+@@ -798,11 +798,11 @@ XawFormDoLayout(Widget w,
+ #endif
+ {
+ Widget *childP;
+- FormWidget fw = (FormWidget)w;
++ FormWidget fw = (FormWidget)_fw;
+ int num_children = fw->composite.num_children;
+ WidgetList children = fw->composite.children;
+
+- if ( ((fw->form.no_refigure = !doit) == TRUE) || !XtIsRealized(w) )
++ if ( ((fw->form.no_refigure = !doit) == TRUE) || !XtIsRealized(_fw) )
+ return;
+
+ for (childP = children; childP - children < num_children; childP++) {
+diff --git a/src/Viewport.c b/src/Viewport.c
+index abb8961..a37a9a1 100644
+--- a/src/Viewport.c
++++ b/src/Viewport.c
+@@ -602,12 +602,12 @@ ComputeLayout(Widget widget, Boolean query, Boolean destroy_scrollbars)
+ if (w->viewport.allowhoriz && \
+ (int)preferred.width > clip_width + 2 * sw) { \
+ if (!needshoriz) { \
+- Widget bar = w->viewport.horiz_bar; \
++ Widget horiz_bar = w->viewport.horiz_bar; \
+ needshoriz = True; \
+- if (bar == (Widget)NULL) \
+- bar = CreateScrollbar(w, True); \
+- clip_height -= bar->core.height + \
+- bar->core.border_width + pad; \
++ if (horiz_bar == (Widget)NULL) \
++ horiz_bar = CreateScrollbar(w, True); \
++ clip_height -= horiz_bar->core.height + \
++ horiz_bar->core.border_width + pad; \
+ if (clip_height < 1) clip_height = 1; \
+ } \
+ intended.width = preferred.width; \
+@@ -617,12 +617,12 @@ ComputeLayout(Widget widget, Boolean query, Boolean destroy_scrollbars)
+ if (w->viewport.allowvert &&
+ (int)preferred.height > clip_height + 2 * sw) {
+ if (!needsvert) {
+- Widget bar = w->viewport.vert_bar;
++ Widget vert_bar = w->viewport.vert_bar;
+ needsvert = True;
+- if (bar == (Widget)NULL)
+- bar = CreateScrollbar(w, False);
+- clip_width -= bar->core.width +
+- bar->core.border_width + pad;
++ if (vert_bar == (Widget)NULL)
++ vert_bar = CreateScrollbar(w, False);
++ clip_width -= vert_bar->core.width +
++ vert_bar->core.border_width + pad;
+ if (clip_width < 1) clip_width = 1;
+ if (!needshoriz) CheckHoriz();
+ }
+
+commit d31153b30abd26c3f65e19d126ce4a3542cf14c0
+Author: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Sun Jan 22 11:55:29 2012 -0800
+
+ Include <stdlib.h> for abs()
+
+ Tip.c:336:9: error: implicit declaration of function 'abs' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
+ ksy += abs(ext->max_ink_extent.y);
+ ^
+ 1 error generated.
+
+ Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+
+diff --git a/src/Tip.c b/src/Tip.c
+index 6881670..5f54d14 100644
+--- a/src/Tip.c
++++ b/src/Tip.c
+@@ -43,6 +43,8 @@
+ #include <X11/Xaw3d/TipP.h>
+ #include <X11/Xaw3d/XawInit.h>
+
++#include <stdlib.h>
++
+ #define TIP_EVENT_MASK (ButtonPressMask | \
+ ButtonReleaseMask | \
+ PointerMotionMask | \
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Xaw3d/Xaw3d.spec?r1=1.58&r2=1.59&f=u
More information about the pld-cvs-commit
mailing list