Hello community, here is the log from the commit of package xgc for openSUSE:Factory checked in at 2013-01-22 18:07:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xgc (Old) and /work/SRC/openSUSE:Factory/.xgc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xgc", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/xgc/xgc.changes 2012-05-08 12:05:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.xgc.new/xgc.changes 2013-01-22 18:07:26.000000000 +0100 @@ -1,0 +2,13 @@ +Sat Jan 19 08:52:45 UTC 2013 - zai...@opensuse.org + +- Update to version 1.0.4: + + Bounds check value passed to WriteText. + + config: + - Add missing AC_CONFIG_SRCDIR. + - Let Automake handle Lex and Yacc dist and cleaning. + - Move man pages into their own directory. + - Replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS. + - Replace deprecated AC_HELP_STRING with AS_HELP_STRING. + - Replace AC_CHECK_FILE with test -f. + +------------------------------------------------------------------- Old: ---- xgc-1.0.3.tar.bz2 New: ---- xgc-1.0.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xgc.spec ++++++ --- /var/tmp/diff_new_pack.j2Zr50/_old 2013-01-22 18:07:28.000000000 +0100 +++ /var/tmp/diff_new_pack.j2Zr50/_new 2013-01-22 18:07:28.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package xgc # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,13 +15,14 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: xgc -Version: 1.0.3 +Version: 1.0.4 Release: 0 -License: MIT Summary: X graphics demo -Url: http://xorg.freedesktop.org/ +License: MIT Group: System/X11/Utilities +Url: http://xorg.freedesktop.org/ Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 BuildRequires: bison BuildRequires: pkg-config ++++++ xgc-1.0.3.tar.bz2 -> xgc-1.0.4.tar.bz2 ++++++ ++++ 10626 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/ChangeLog new/xgc-1.0.4/ChangeLog --- old/xgc-1.0.3/ChangeLog 2010-10-31 01:09:52.000000000 +0200 +++ new/xgc-1.0.4/ChangeLog 2013-01-13 03:18:42.000000000 +0100 @@ -1,3 +1,90 @@ +commit bb714a16b2e79bc391184bafce6046a897baf293 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Sat Jan 12 18:18:15 2013 -0800 + + xgc 1.0.4 + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit c6b6d11bc2bb2cfc877124fe931073f8cebc440a +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Sat Jan 12 18:16:38 2013 -0800 + + config: Add missing AC_CONFIG_SRCDIR + + Regroup AC statements under the Autoconf initialization section. + Regroup AM statements under the Automake initialization section. + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 17734f0b7b2d5240c0adb14f7ce03763603fd99c +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Wed Dec 28 20:36:26 2011 -0800 + + Bounds check value passed to WriteText + + Read outside array bounds (CWE 125): In array dereference of names[type] with index 'type' + Array size is 4 elements (of 8 bytes each), index >= 0 and index <= 2147483647 + at line 155 of text.c in function 'WriteText'. + + [ This bug was found by the Parfait 0.4.2 bug checking tool. + For more information see http://labs.oracle.com/projects/parfait/ ] + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 84e7552c98096930cef9ed2d1d91f3d8abceeb4e +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Tue Mar 8 07:36:55 2011 -0500 + + config: let Automake handle Lex and Yacc dist and cleaning + + MAINTAINERCLEANFILES are not needed for lex and yacc. + Only gram.h needs to be specified as built source. + + Automake generates all the rules to handle building, + distribution and cleaning. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 1a25a116e87e8cde709cf1b810ac2371ac485280 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Wed Jan 19 10:06:56 2011 -0500 + + config: move man pages into their own directory + + Use services provided by XORG_MANPAGE_SECTIONS. + Use standard Makefile for man pages. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 75d2575ad02fdff4085df16f1e160be718d7b299 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Wed Jan 12 16:28:02 2011 -0500 + + config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS + + This silences an Autoconf warning + +commit 6adff4c81ca7eef354e54e0fc71645849023bbc3 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Wed Jan 12 15:29:50 2011 -0500 + + config: replace deprecated AC_HELP_STRING with AS_HELP_STRING + + This silences an Automake warning. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit ff668395fc408f540604bd534e323b483f52a4ea +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Mon Nov 1 13:19:23 2010 -0400 + + config: replace AC_CHECK_FILE with test -f + + * AC_CHECK_FILE doesn't work for cross compilation + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + commit 76ba19a5b0f1ec9515ac802c3c3efaad87f3079f Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Sat Oct 30 16:09:30 2010 -0700 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/Makefile.am new/xgc-1.0.4/Makefile.am --- old/xgc-1.0.3/Makefile.am 2010-10-31 01:04:59.000000000 +0200 +++ new/xgc-1.0.4/Makefile.am 2013-01-13 03:18:20.000000000 +0100 @@ -21,6 +21,7 @@ AM_YFLAGS = -d +SUBDIRS = man bin_PROGRAMS = xgc AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE @@ -42,14 +43,8 @@ text.c \ xgc.h -appman_PRE = \ - xgc.man - -BUILT_SOURCES = gram.h gram.c lex.c +BUILT_SOURCES = gram.h MAINTAINERCLEANFILES = ChangeLog INSTALL -MAINTAINERCLEANFILES += $(BUILT_SOURCES) - -gram.h: gram.c # App default files @@ -70,21 +65,6 @@ Written/Outline \ Written/Widget - -appmandir = $(APP_MAN_DIR) - -appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) - -EXTRA_DIST += $(appman_PRE) -CLEANFILES = $(appman_DATA) - -SUFFIXES = .$(APP_MAN_SUFFIX) .man - -# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure -.man.$(APP_MAN_SUFFIX): - $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ - - .PHONY: ChangeLog INSTALL INSTALL: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/configure.ac new/xgc-1.0.4/configure.ac --- old/xgc-1.0.3/configure.ac 2010-10-31 01:09:15.000000000 +0200 +++ new/xgc-1.0.4/configure.ac 2013-01-13 03:18:20.000000000 +0100 @@ -20,12 +20,16 @@ dnl dnl Process this file with autoconf to create configure. +# Initialize Autoconf AC_PREREQ([2.60]) -AC_INIT([xgc], [1.0.3], +AC_INIT([xgc], [1.0.4], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xgc]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) + +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE -AM_CONFIG_HEADER(config.h) # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS m4_ifndef([XORG_MACROS_VERSION], @@ -36,15 +40,21 @@ AC_PROG_LEX AC_PROG_YACC AC_PATH_PROG([YACC_INST], $YACC) -AC_CHECK_FILE([$srcdir/gram.c], [], - [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])]) +if test ! -f "gram.c"; then + if test -z "$YACC_INST"; then + AC_MSG_ERROR([yacc not found - unable to compile gram.y]) + fi +fi PKG_CHECK_MODULES(XGC, xaw7 xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` AC_ARG_WITH(appdefaultdir, - AC_HELP_STRING([--with-appdefaultdir=<pathname>], + AS_HELP_STRING([--with-appdefaultdir=<pathname>], [specify directory for app-defaults files (default is autodetected)]), [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) -AC_OUTPUT([Makefile]) +AC_CONFIG_FILES([ + Makefile + man/Makefile]) +AC_OUTPUT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/man/Makefile.am new/xgc-1.0.4/man/Makefile.am --- old/xgc-1.0.3/man/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ new/xgc-1.0.4/man/Makefile.am 2013-01-13 03:18:20.000000000 +0100 @@ -0,0 +1,12 @@ + +appmandir = $(APP_MAN_DIR) +appman_PRE = xgc.man +appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) + +EXTRA_DIST = $(appman_PRE) +CLEANFILES = $(appman_DATA) +SUFFIXES = .$(APP_MAN_SUFFIX) .man + +# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure +.man.$(APP_MAN_SUFFIX): + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/man/xgc.man new/xgc-1.0.4/man/xgc.man --- old/xgc-1.0.3/man/xgc.man 1970-01-01 01:00:00.000000000 +0100 +++ new/xgc-1.0.4/man/xgc.man 2013-01-13 03:18:20.000000000 +0100 @@ -0,0 +1,158 @@ +.\" Copyright (c) 1991 X Consortium +.\" +.\" Permission is hereby granted, free of charge, to any person obtaining +.\" a copy of this software and associated documentation files (the +.\" "Software"), to deal in the Software without restriction, including +.\" without limitation the rights to use, copy, modify, merge, publish, +.\" distribute, sublicense, and/or sell copies of the Software, and to +.\" permit persons to whom the Software is furnished to do so, subject to +.\" the following conditions: +.\" +.\" The above copyright notice and this permission notice shall be included +.\" in all copies or substantial portions of the Software. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR +.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +.\" OTHER DEALINGS IN THE SOFTWARE. +.\" +.\" Except as contained in this notice, the name of the X Consortium shall +.\" not be used in advertising or otherwise to promote the sale, use or +.\" other dealings in this Software without prior written authorization +.\" from the X Consortium. +.\" +.\" Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. +.\" +.\" Permission is hereby granted, free of charge, to any person obtaining a +.\" copy of this software and associated documentation files (the "Software"), +.\" to deal in the Software without restriction, including without limitation +.\" the rights to use, copy, modify, merge, publish, distribute, sublicense, +.\" and/or sell copies of the Software, and to permit persons to whom the +.\" Software is furnished to do so, subject to the following conditions: +.\" +.\" The above copyright notice and this permission notice (including the next +.\" paragraph) shall be included in all copies or substantial portions of the +.\" Software. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +.\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +.\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +.\" DEALINGS IN THE SOFTWARE. +.\" +.TH XGC 1 __xorgversion__ +.SH NAME +xgc - X graphics demo +.SH SYNOPSIS +.ta 8n +\fBxgc\fP [-\fItoolkitoption\fP ...] +.SH DESCRIPTION +The +.I xgc +program demonstrates various features of the X graphics primitives. +In X, most of the details about the graphics to be generated are +stored in a resource called a graphics context (GC). The +.B xgc +program provides a user interface for setting various GC components. +Pressing the "Run" button causes these results to be displayed in +the large drawing window on the right. Timing information is +displayed in the window immediately below. +.PP +The items in the upper left hand window work as follows: +.PP +.I Function +\- specify the logical function with which primitives +will drawn. The most usual setting is "set", i.e. simply to render +pixels without regard to what has been drawn before. +.PP +.I LineStyle +\- specify whether lines should be drawn solid in foreground, +dashed in foreground or alternating foreground and background. +.PP +.I CapStyle +\- specify the appearance of the ends of a line. +.PP +.I JoinStyle +\- specify the appearance of joints between consecutive +lines drawn within a single graphics primitive. +.PP +.I FillStyle +\- specify whether lines, text and fill requests are +solid, tiled with a pixmap or stippled. +.PP +.I FillRule +\- specifies the rule used to fill polygons. The EvenOdd +rule means that if areas overlap an odd number of times, they are not +drawn. Winding rule means that overlapping areas are always filled, +regardless of how many times they overlap. +.PP +.I ArcMode +\- specifies the rule for filling of arcs. The boundary +of the arc is either a Chord or two radii. +.PP +.I planemask +\- specifies which planes of the drawing window are +modified. By default, all planes are modified. +.PP +.I dashlist +\- specifies a pattern to be used when drawing dashed lines. +.PP +.I Line Width +\- specifies the width in pixels of lines to be drawn. +Zero means to draw using the server's fastest algorithm with a line width of +one pixel. +.PP +.I Font +\- specifies the font to be used for text primitives. +.PP +.I Foreground +and +.I Background +\- specify the pixel values to be +applied when drawing primitives. +The Foreground value is used as the +pixel value for set bits in the source in all primitives. +The Background value is used as the +pixel value for unset bits in the source when using Copy Plane, drawing +lines with LineStyle of DoubleDash and filling with FillStyle of +OpaqueStippled. +.PP +.I Percentage of Test +\- scrollbar permits specifying only +a percentage of the test to be run. The number at the left indicates +the current setting, which defaults to 100%. +.sp +The window labeled "Test" permits choice of one a number of graphics +primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs, +8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws, +as well as Copy Plane and Copy Area. +.PP +The window to the right of this has buttons which permit record/playback +of the primitives rendered. +.SH OPTIONS +.I Xgc +accepts all of the standard X Toolkit command line options. +.SH X DEFAULTS +This program accepts the usual defaults for toolkit applications. +.SH ENVIRONMENT +.PP +.TP 8 +.B DISPLAY +to get the default host and display number. +.TP 8 +.B XENVIRONMENT +to get the name of a resource file that overrides the global resources +stored in the RESOURCE_MANAGER property. +.SH "SEE ALSO" +X(__miscmansuffix__) +.SH BUGS +This program isn't really finished yet, but it probably never will be, +since it only demonstrates the original X11 core protocol rendering +operations, which few modern programs use anymore. +.SH AUTHORS +Dan Schmidt, MIT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/text.c new/xgc-1.0.4/text.c --- old/xgc-1.0.3/text.c 2010-10-31 01:04:59.000000000 +0200 +++ new/xgc-1.0.4/text.c 2013-01-13 03:18:20.000000000 +0100 @@ -147,6 +147,10 @@ int type; /* which string # to send */ type = atoi(params[0]); + if (type < 0 || type >= NUMTEXTWIDGETS) { + fprintf(stderr, "Invalid value %s in WriteText()\n", params[0]); + return; + } if (strcmp(textstrings[type],oldtextstrings[type])) { strcpy(oldtextstrings[type],textstrings[type]); snprintf(mbuf,sizeof mbuf,"%s%s\n", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/xgc.man new/xgc-1.0.4/xgc.man --- old/xgc-1.0.3/xgc.man 2010-10-31 01:04:59.000000000 +0200 +++ new/xgc-1.0.4/xgc.man 1970-01-01 01:00:00.000000000 +0100 @@ -1,158 +0,0 @@ -.\" Copyright (c) 1991 X Consortium -.\" -.\" Permission is hereby granted, free of charge, to any person obtaining -.\" a copy of this software and associated documentation files (the -.\" "Software"), to deal in the Software without restriction, including -.\" without limitation the rights to use, copy, modify, merge, publish, -.\" distribute, sublicense, and/or sell copies of the Software, and to -.\" permit persons to whom the Software is furnished to do so, subject to -.\" the following conditions: -.\" -.\" The above copyright notice and this permission notice shall be included -.\" in all copies or substantial portions of the Software. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR -.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -.\" OTHER DEALINGS IN THE SOFTWARE. -.\" -.\" Except as contained in this notice, the name of the X Consortium shall -.\" not be used in advertising or otherwise to promote the sale, use or -.\" other dealings in this Software without prior written authorization -.\" from the X Consortium. -.\" -.\" Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. -.\" -.\" Permission is hereby granted, free of charge, to any person obtaining a -.\" copy of this software and associated documentation files (the "Software"), -.\" to deal in the Software without restriction, including without limitation -.\" the rights to use, copy, modify, merge, publish, distribute, sublicense, -.\" and/or sell copies of the Software, and to permit persons to whom the -.\" Software is furnished to do so, subject to the following conditions: -.\" -.\" The above copyright notice and this permission notice (including the next -.\" paragraph) shall be included in all copies or substantial portions of the -.\" Software. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -.\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -.\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -.\" DEALINGS IN THE SOFTWARE. -.\" -.TH XGC 1 __xorgversion__ -.SH NAME -xgc - X graphics demo -.SH SYNOPSIS -.ta 8n -\fBxgc\fP [-\fItoolkitoption\fP ...] -.SH DESCRIPTION -The -.I xgc -program demonstrates various features of the X graphics primitives. -In X, most of the details about the graphics to be generated are -stored in a resource called a graphics context (GC). The -.B xgc -program provides a user interface for setting various GC components. -Pressing the "Run" button causes these results to be displayed in -the large drawing window on the right. Timing information is -displayed in the window immediately below. -.PP -The items in the upper left hand window work as follows: -.PP -.I Function -\- specify the logical function with which primitives -will drawn. The most usual setting is "set", i.e. simply to render -pixels without regard to what has been drawn before. -.PP -.I LineStyle -\- specify whether lines should be drawn solid in foreground, -dashed in foreground or alternating foreground and background. -.PP -.I CapStyle -\- specify the appearance of the ends of a line. -.PP -.I JoinStyle -\- specify the appearance of joints between consecutive -lines drawn within a single graphics primitive. -.PP -.I FillStyle -\- specify whether lines, text and fill requests are -solid, tiled with a pixmap or stippled. -.PP -.I FillRule -\- specifies the rule used to fill polygons. The EvenOdd -rule means that if areas overlap an odd number of times, they are not -drawn. Winding rule means that overlapping areas are always filled, -regardless of how many times they overlap. -.PP -.I ArcMode -\- specifies the rule for filling of arcs. The boundary -of the arc is either a Chord or two radii. -.PP -.I planemask -\- specifies which planes of the drawing window are -modified. By default, all planes are modified. -.PP -.I dashlist -\- specifies a pattern to be used when drawing dashed lines. -.PP -.I Line Width -\- specifies the width in pixels of lines to be drawn. -Zero means to draw using the server's fastest algorithm with a line width of -one pixel. -.PP -.I Font -\- specifies the font to be used for text primitives. -.PP -.I Foreground -and -.I Background -\- specify the pixel values to be -applied when drawing primitives. -The Foreground value is used as the -pixel value for set bits in the source in all primitives. -The Background value is used as the -pixel value for unset bits in the source when using Copy Plane, drawing -lines with LineStyle of DoubleDash and filling with FillStyle of -OpaqueStippled. -.PP -.I Percentage of Test -\- scrollbar permits specifying only -a percentage of the test to be run. The number at the left indicates -the current setting, which defaults to 100%. -.sp -The window labeled "Test" permits choice of one a number of graphics -primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs, -8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws, -as well as Copy Plane and Copy Area. -.PP -The window to the right of this has buttons which permit record/playback -of the primitives rendered. -.SH OPTIONS -.I Xgc -accepts all of the standard X Toolkit command line options. -.SH X DEFAULTS -This program accepts the usual defaults for toolkit applications. -.SH ENVIRONMENT -.PP -.TP 8 -.B DISPLAY -to get the default host and display number. -.TP 8 -.B XENVIRONMENT -to get the name of a resource file that overrides the global resources -stored in the RESOURCE_MANAGER property. -.SH "SEE ALSO" -X(__miscmansuffix__) -.SH BUGS -This program isn't really finished yet, but it probably never will be, -since it only demonstrates the original X11 core protocol rendering -operations, which few modern programs use anymore. -.SH AUTHORS -Dan Schmidt, MIT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xgc-1.0.3/ylwrap new/xgc-1.0.4/ylwrap --- old/xgc-1.0.3/ylwrap 2010-10-31 01:09:47.000000000 +0200 +++ new/xgc-1.0.4/ylwrap 2013-01-13 03:18:25.000000000 +0100 @@ -1,10 +1,10 @@ #! /bin/sh # ylwrap - wrapper for lex/yacc invocations. -scriptversion=2009-04-28.21; # UTC +scriptversion=2011-08-25.18; # UTC # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, -# 2007, 2009 Free Software Foundation, Inc. +# 2007, 2009, 2010, 2011 Free Software Foundation, Inc. # # Written by Tom Tromey <tro...@cygnus.com>. # @@ -99,7 +99,11 @@ # FIXME: add hostname here for parallel makes that run commands on # other machines. But that might take us over the 14-char limit. dirname=ylwrap$$ -trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 +do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' +trap "ret=129; $do_exit" 1 +trap "ret=130; $do_exit" 2 +trap "ret=141; $do_exit" 13 +trap "ret=143; $do_exit" 15 mkdir $dirname || exit 1 cd $dirname @@ -133,19 +137,19 @@ # Handle y_tab.c and y_tab.h output by DOS if test $y_tab_nodot = "yes"; then if test $from = "y.tab.c"; then - from="y_tab.c" + from="y_tab.c" else - if test $from = "y.tab.h"; then - from="y_tab.h" - fi + if test $from = "y.tab.h"; then + from="y_tab.h" + fi fi fi if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend `../'. case "$2" in - [\\/]* | ?:[\\/]*) target="$2";; - *) target="../$2";; + [\\/]* | ?:[\\/]*) target="$2";; + *) target="../$2";; esac # We do not want to overwrite a header file if it hasn't @@ -155,8 +159,8 @@ # Makefile. Divert the output of all other files to a temporary # file so we can compare them to existing versions. if test $first = no; then - realtarget="$target" - target="tmp-`echo $target | sed s/.*[\\/]//g`" + realtarget="$target" + target="tmp-`echo $target | sed s/.*[\\/]//g`" fi # Edit out `#line' or `#' directives. # @@ -180,10 +184,10 @@ # Check whether header files must be updated. if test $first = no; then - if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then - echo "$2" is unchanged - rm -f "$target" - else + if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then + echo "$2" is unchanged + rm -f "$target" + else echo updating "$2" mv -f "$target" "$realtarget" fi -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org