pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
fltk2: Add patch for modern compilers
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By: micha
Date: Wed Jan 22 13:29:12 2025 +0100
Changeset: 01a3562ecf5e510c674702048fabd5ca90148a6c
Modified Files:
fltk2/README
fltk2/distinfo
Added Files:
fltk2/patches/patch-src_UpBox.cxx
Log Message:
fltk2: Add patch for modern compilers
Regenerate checksums.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=01a3562ecf5e510c674702048fabd5ca90148a6c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
fltk2/README | 2 +-
fltk2/distinfo | 3 ++-
fltk2/patches/patch-src_UpBox.cxx | 15 +++++++++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
diffs:
diff --git a/fltk2/README b/fltk2/README
index b5d088dea6..64a5dda0dc 100644
--- a/fltk2/README
+++ b/fltk2/README
@@ -1,5 +1,5 @@
Attention: FLTK 2 is no longer considered a successor of FLTK 1!
Attention: FLTK 3 is no longer considered a successor of FLTK 1 and 2!
-New applications should use the FLTK 1.3 API.
+New applications should use the FLTK 1.4 API.
This package is intended for potential users of the removed package x11/fltk2.
diff --git a/fltk2/distinfo b/fltk2/distinfo
index 7bdf4f1f53..b9dc747ca1 100644
--- a/fltk2/distinfo
+++ b/fltk2/distinfo
@@ -1,6 +1,6 @@
$NetBSD$
-RMD160 (fltk2-2.1git/branch-2.0.zip) = 1f38753d10c58433d9d8a33c62dd144d13445dce
+BLAKE2s (fltk2-2.1git/branch-2.0.zip) = 17851103b8009d651bf7b7cf6356c7886934c1557c88f2934db8c257c30ca9d8
SHA512 (fltk2-2.1git/branch-2.0.zip) = e8e1c05d95b8817b5ce716558422f79bc8232c03f7d103be4c9b743d5c2890fc9e283b23d761e239a3e0adc8041d67d6d11a17166eecce1743a310537784875e
Size (fltk2-2.1git/branch-2.0.zip) = 3852183 bytes
SHA1 (patch-configure.in) = e480f0b540bd28354bf4865b121fdfa0b3ec94d3
@@ -10,4 +10,5 @@ SHA1 (patch-fltk_x11.h) = e2ebb95ccc593572a4aebcbbe31362f90f2d10fd
SHA1 (patch-fluid_FluidType.h) = 219ff80331caf295e29285ea5e46700a0a018b20
SHA1 (patch-images_fl__png.cxx) = 6409f70c5ed1882863a3d72f8ccab79053042ac1
SHA1 (patch-src_Browser.cxx) = b13ccb50b347c31aaae47b2c713df05869ba127f
+SHA1 (patch-src_UpBox.cxx) = ac0c52af3b8b5b5775a30c8f005eaf8449732334
SHA1 (patch-src_filename__list.cxx) = bcde6999a273904c2723588fb116c076058aecb9
diff --git a/fltk2/patches/patch-src_UpBox.cxx b/fltk2/patches/patch-src_UpBox.cxx
new file mode 100644
index 0000000000..f4228c2d21
--- /dev/null
+++ b/fltk2/patches/patch-src_UpBox.cxx
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Modern compilers may reject 0x55 if char is signed.
+
+--- src/UpBox.cxx.orig 2012-03-23 05:49:17.000000000 +0000
++++ src/UpBox.cxx
+@@ -47,7 +47,7 @@ void drawFocusRect(const fltk::Rectangle
+ // X version uses stipple pattern because there seem to be too many
+ // servers with bugs when drawing dotted lines:
+ static const char pattern[]
+- = {0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};
++ = {(char)(unsigned char)0xAA,0x55,(char)(unsigned char)0xAA,0x55,(char)(unsigned char)0xAA,0x55,(char)(unsigned char)0xAA,0x55,(char)(unsigned char)0xAA};
+ static Pixmap evenstipple, oddstipple;
+ if (!evenstipple) {
+ XWindow root = RootWindow(xdisplay, xscreen);
Home |
Main Index |
Thread Index |
Old Index