pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/glw
Module Name: pkgsrc
Committed By: vins
Date: Wed Dec 21 17:26:55 UTC 2022
Modified Files:
pkgsrc/graphics/glw: Makefile distinfo
Added Files:
pkgsrc/graphics/glw/patches: patch-GLwDrawA.c patch-GLwDrawA.h
patch-GLwDrawAP.h
Log Message:
graphics/glw: pull latest upstream changes.
This commit incorporates a couple of bug fixes committed after the
release of libGLW 8.0.0 and before the project got eventually archived.
* Fix typo misplacing height for width.
* Fix bug with NULL variable when `glwDrawingAreaWidgetClass' is not
found elsewhere and is assumed to be a definition (follwing the
removal of extern declaration). See:
https://marc.info/?l=cygwin-xfree&m=141268983004514&w=2
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/graphics/glw/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/graphics/glw/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/glw/patches/patch-GLwDrawA.c \
pkgsrc/graphics/glw/patches/patch-GLwDrawA.h \
pkgsrc/graphics/glw/patches/patch-GLwDrawAP.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/glw/Makefile
diff -u pkgsrc/graphics/glw/Makefile:1.3 pkgsrc/graphics/glw/Makefile:1.4
--- pkgsrc/graphics/glw/Makefile:1.3 Thu Aug 22 09:57:08 2019
+++ pkgsrc/graphics/glw/Makefile Wed Dec 21 17:26:55 2022
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2019/08/22 09:57:08 nia Exp $
+# $NetBSD: Makefile,v 1.4 2022/12/21 17:26:55 vins Exp $
DISTNAME= glw-8.0.0
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://mesa.freedesktop.org/archive/glw/
EXTRACT_SUFX= .tar.bz2
Index: pkgsrc/graphics/glw/distinfo
diff -u pkgsrc/graphics/glw/distinfo:1.5 pkgsrc/graphics/glw/distinfo:1.6
--- pkgsrc/graphics/glw/distinfo:1.5 Tue Oct 26 10:46:13 2021
+++ pkgsrc/graphics/glw/distinfo Wed Dec 21 17:26:55 2022
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:46:13 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/12/21 17:26:55 vins Exp $
BLAKE2s (glw-8.0.0.tar.bz2) = a948b905c10c6ff31e36ee901f9a0adb02bfc02643cc7a5da67a043369ad6350
SHA512 (glw-8.0.0.tar.bz2) = 09e1352edb16a9a34b9031996c2a1545d69dc690d7eda10a1aad6a7ad9ef0576d0af8a1b7740dba47f9647b7c957c1d7a078b38747d2d2c28ea39314a0e53587
Size (glw-8.0.0.tar.bz2) = 221136 bytes
+SHA1 (patch-GLwDrawA.c) = f03017b6c22881740170ec5d14c091367d0d4954
+SHA1 (patch-GLwDrawA.h) = bb4b8a7d3c112114913fc404f31ddef6b47b2de4
+SHA1 (patch-GLwDrawAP.h) = cd0e51843c4deebb577f15d9d58cbbeda0561689
Added files:
Index: pkgsrc/graphics/glw/patches/patch-GLwDrawA.c
diff -u /dev/null pkgsrc/graphics/glw/patches/patch-GLwDrawA.c:1.1
--- /dev/null Wed Dec 21 17:26:55 2022
+++ pkgsrc/graphics/glw/patches/patch-GLwDrawA.c Wed Dec 21 17:26:55 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-GLwDrawA.c,v 1.1 2022/12/21 17:26:55 vins Exp $
+
+Fix typo, s/width/height/.
+
+--- GLwDrawA.c.orig 2012-05-17 13:55:42.000000000 +0000
++++ GLwDrawA.c
+@@ -474,7 +474,7 @@ static void Initialize(GLwDrawingAreaWid
+
+ /* fix size */
+ if(req->core.width==0) neww->core.width=100;
+- if(req->core.height==0) neww->core.width=100;
++ if(req->core.height==0) neww->core.height=100;
+
+ /* create the attribute list if needed */
+ neww->glwDrawingArea.myList=FALSE;
Index: pkgsrc/graphics/glw/patches/patch-GLwDrawA.h
diff -u /dev/null pkgsrc/graphics/glw/patches/patch-GLwDrawA.h:1.1
--- /dev/null Wed Dec 21 17:26:55 2022
+++ pkgsrc/graphics/glw/patches/patch-GLwDrawA.h Wed Dec 21 17:26:55 2022
@@ -0,0 +1,35 @@
+$NetBSD: patch-GLwDrawA.h,v 1.1 2022/12/21 17:26:55 vins Exp $
+
+Fix NULL variable definition.
+
+--- GLwDrawA.h.orig 2012-05-17 13:55:42.000000000 +0000
++++ GLwDrawA.h
+@@ -131,12 +131,18 @@
+ #define GLwNaccumAlphaSize "accumAlphaSize"
+ #define GLwCAccumAlphaSize "AccumAlphaSize"
+
++#if (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
++# define GLAPIVAR extern __attribute__((visibility("default")))
++#else
++# define GLAPIVAR extern
++#endif
++
+ #ifdef __GLX_MOTIF
+
+ typedef struct _GLwMDrawingAreaClassRec *GLwMDrawingAreaWidgetClass;
+ typedef struct _GLwMDrawingAreaRec *GLwMDrawingAreaWidget;
+
+-GLAPI WidgetClass glwMDrawingAreaWidgetClass;
++GLAPIVAR WidgetClass glwMDrawingAreaWidgetClass;
+
+
+ #else
+@@ -144,7 +150,7 @@ GLAPI WidgetClass glwMDrawingAreaWidgetC
+ typedef struct _GLwDrawingAreaClassRec *GLwDrawingAreaWidgetClass;
+ typedef struct _GLwDrawingAreaRec *GLwDrawingAreaWidget;
+
+-GLAPI WidgetClass glwDrawingAreaWidgetClass;
++GLAPIVAR WidgetClass glwDrawingAreaWidgetClass;
+
+
+ #endif
Index: pkgsrc/graphics/glw/patches/patch-GLwDrawAP.h
diff -u /dev/null pkgsrc/graphics/glw/patches/patch-GLwDrawAP.h:1.1
--- /dev/null Wed Dec 21 17:26:55 2022
+++ pkgsrc/graphics/glw/patches/patch-GLwDrawAP.h Wed Dec 21 17:26:55 2022
@@ -0,0 +1,24 @@
+$NetBSD: patch-GLwDrawAP.h,v 1.1 2022/12/21 17:26:55 vins Exp $
+
+Use newly introduced GLAPIVAR for variables.
+
+--- GLwDrawAP.h.orig 2012-05-17 13:55:42.000000000 +0000
++++ GLwDrawAP.h
+@@ -59,7 +59,7 @@ typedef struct _GLwMDrawingAreaClassRec
+ } GLwMDrawingAreaClassRec;
+
+
+-GLAPI GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
++GLAPIVAR GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
+
+
+ /* XT */
+@@ -70,7 +70,7 @@ typedef struct _GLwDrawingAreaClassRec {
+ GLwDrawingAreaClassPart glwDrawingArea_class;
+ } GLwDrawingAreaClassRec;
+
+-GLAPI GLwDrawingAreaClassRec glwDrawingAreaClassRec;
++GLAPIVAR GLwDrawingAreaClassRec glwDrawingAreaClassRec;
+
+
+ #endif
Home |
Main Index |
Thread Index |
Old Index