perl-text-csv_xs: Update to 1.55
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 14 Jul 2024 22:06:32 +0000 (16:06 -0600)
committerRosen Penev <rosenp@gmail.com>
Mon, 15 Jul 2024 02:08:29 +0000 (19:08 -0700)
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
lang/perl-text-csv_xs/Makefile
lang/perl-text-csv_xs/patches/900-fix-format-warnings.patch [new file with mode: 0644]

index e26a1a494edda01dbe587d52f3134963a75333c2..b2dfa2c8851ba1ab39e39208582b336c939c41ef 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=perl-text-csv_xs
-PKG_VERSION:=1.53
+PKG_VERSION:=1.55
 PKG_RELEASE:=1
 
 PKG_SOURCE:=Text-CSV_XS-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/H/HM/HMBRAND
-PKG_HASH:=ba3231610fc755a69e14eb4a3c6d8cce46cc4fd32853777a6c9ce485a8878b42
+PKG_HASH:=e4b623b31b4ac35e99d7b797d5b7c2205a5b984bcd88dee1a9460a6a39d40b5e
 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Text-CSV_XS-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>
diff --git a/lang/perl-text-csv_xs/patches/900-fix-format-warnings.patch b/lang/perl-text-csv_xs/patches/900-fix-format-warnings.patch
new file mode 100644 (file)
index 0000000..4885bb2
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/CSV_XS.xs
++++ b/CSV_XS.xs
+@@ -1235,14 +1235,14 @@ static void cx_ErrorDiag (pTHX_ csv_t *c
+     SV **svp;
+     if ((svp = hv_fetchs (csv->self, "_ERROR_DIAG", FALSE)) && *svp) {
+-      if (SvIOK (*svp)) (void)fprintf (stderr, "ERR: %d\n", SvIV (*svp));
++      if (SvIOK (*svp)) (void)fprintf (stderr, "ERR: %ld\n", SvIV (*svp));
+       if (SvPOK (*svp)) (void)fprintf (stderr, "ERR: %s\n", SvPV_nolen (*svp));
+       }
+     if ((svp = hv_fetchs (csv->self, "_ERROR_POS", FALSE)) && *svp) {
+-      if (SvIOK (*svp)) (void)fprintf (stderr, "POS: %d\n", SvIV (*svp));
++      if (SvIOK (*svp)) (void)fprintf (stderr, "POS: %ld\n", SvIV (*svp));
+       }
+     if ((svp = hv_fetchs (csv->self, "_ERROR_FLD", FALSE)) && *svp) {
+-      if (SvIOK (*svp)) (void)fprintf (stderr, "FLD: %d\n", SvIV (*svp));
++      if (SvIOK (*svp)) (void)fprintf (stderr, "FLD: %ld\n", SvIV (*svp));
+       }
+     } /* ErrorDiag */