head 1.4; access; symbols pkgsrc-2024Q4:1.3.0.116 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.114 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.112 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.110 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.108 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.106 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.104 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.102 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.100 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.98 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.96 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.94 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.92 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.90 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.88 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.86 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.84 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.82 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.78 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.58 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.80 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.76 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.74 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.72 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.70 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.68 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.66 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.64 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.62 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.60 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.56 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.54 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.52 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.50 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.48 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.46 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.44 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.42 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.40 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.38 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.36 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.34 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.32 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.30 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.28 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.26 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.24 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.22 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.20 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.18 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.16 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.14 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.12 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.10 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.8 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.6 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.4 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.2 pkgsrc-2010Q3-base:1.3 pkgsrc-2009Q4:1.2.0.4 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.2 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.1.0.4 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.2 cube-native-xorg-base:1.1; locks; strict; comment @# @; 1.4 date 2025.03.12.10.45.13; author wiz; state dead; branches; next 1.3; commitid fC0kFE88yz29ALMF; 1.3 date 2010.09.13.03.05.24; author taca; state Exp; branches; next 1.2; 1.2 date 2008.10.06.01.04.29; author minskim; state dead; branches; next 1.1; 1.1 date 2008.08.17.08.40.50; author dholland; state Exp; branches; next ; desc @@ 1.4 log @*clearsilver*: remove version from 2007, development has stopped as proposed on pkgsrc-users @ text @$NetBSD: patch-ae,v 1.3 2010/09/13 03:05:24 taca Exp $ Use modern Ruby's API. --- ruby/ext/hdf/neo_cs.c.orig 2007-02-16 00:31:39.000000000 +0000 +++ ruby/ext/hdf/neo_cs.c @@@@ -19,7 +19,7 @@@@ extern VALUE eHdfError; VALUE r_neo_error(NEOERR *err); -#define Srb_raise(val) rb_raise(eHdfError, "%s/%d %s",__FILE__,__LINE__,RSTRING(val)->ptr) +#define Srb_raise(val) rb_raise(eHdfError, "%s/%d %s",__FILE__,__LINE__,RSTRING_PTR(val)) static void c_free (CSPARSE *csd) { if (csd) { @@@@ -57,7 +57,7 @@@@ static VALUE c_parse_file (VALUE self, V char *path; Data_Get_Struct(self, CSPARSE, cs); - path = STR2CSTR(oPath); + path = StringValuePtr(oPath); err = cs_parse_file (cs, path); if (err) Srb_raise(r_neo_error(err)); @@@@ -73,7 +73,9 @@@@ static VALUE c_parse_str (VALUE self, VA long l; Data_Get_Struct(self, CSPARSE, cs); - s = rb_str2cstr(oString, &l); + StringValue(oString); + s= RSTRING_PTR(oString); + l = RSTRING_LEN(oString); /* This should be changed to use memory from the gc */ ms = strdup(s); @ 1.3 log @One more patches I forgot to commit. These patches fix the build problem with ruby19 and no functional change with ruby18. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update clearsilver packages to 0.10.5. Changes: - GCC printf attributes for all printf like functions for better compiler time warnings (Nikolai Kondrashov) - Better support for other compilers for handling CPP variable argument macros (Raphaƫl HUCK) - Fix for some symlinking/hdf_get_obj bugs (Nikolai Kondrashov) - Performance improvements to Perl wrapper (Sergey Skvortsov) - New url_validate Clearsilver method (Mugdha Bendre @@ Google) - Quick Hello World example for using with FastCGI (Mike Tsao @@ Google) - Updates to the Ruby wrapper (Dan Janowski) - Updates to the Java wrapper (Joe Walnes @@ Google) - Add support to Java wrapper for hooking the file loader - Add string.crc builtin-function - Make it easier to write XSS free clearsilver code - Ability to setup file load hooks for cs and hdf files - fix for non-thread safe nerr_init call (causes java jni wrapper to core dump when server is started under heavy load) - python egg support (if you have the egg version of distutils installed) - some parser edge case fixes. - some cleanups to cgiwrap that make it easier to use with fastcgi. fastcgi wrapper to come in the future. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1 2008/08/17 08:40:50 dholland Exp $ d3 1 a3 1 Fix type mismatch through va_arg() and resulting nasal demons. d5 3 a7 12 --- cs/csparse.c.orig 2005-06-30 21:04:34.000000000 -0400 +++ cs/csparse.c 2008-08-17 04:36:18.000000000 -0400 @@@@ -3359,9 +3359,9 @@@@ static NEOERR * _builtin_str_slice (CSPA NEOERR *err; char *s = NULL; char *slice; - int b = 0; - int e = 0; - int len; + long int b = 0; + long int e = 0; + long int len; d9 27 a35 2 result->op_type = CS_TYPE_STRING; result->s = ""; @ 1.1 log @Use -fPIC in more places; fixes broken amd64 build and perhaps others. Fix a long/int type mismatch hidden by use of ... and va_arg; fixes broken LP64 builds. @ text @d1 1 a1 1 $NetBSD$ @