Update p5-YAML-Syck to 1.31.

Perl 5.28.1 no longer defines I_STDLIB and I_STRING in its config.h.
Unconditionally include the correct headers to avoid miscompilation
due to missing prototypes.
Sort according to Makefile.template.
Take maintainer.
OK sthen@
This commit is contained in:
bluhm 2019-02-14 12:26:57 +00:00
parent 06fcf8798b
commit aa4978a945
3 changed files with 46 additions and 15 deletions

View File

@ -1,16 +1,18 @@
# $OpenBSD: Makefile,v 1.20 2017/12/04 17:56:27 espie Exp $
# $OpenBSD: Makefile,v 1.21 2019/02/14 12:26:57 bluhm Exp $
COMMENT= YAML and JSON for perl, optimized C
COMMENT = YAML and JSON for perl, optimized C
MODULES= cpan
DISTNAME = YAML-Syck-1.31
DISTNAME = YAML-Syck-1.30
CATEGORIES= devel
FIX_EXTRACT_PERMISSIONS=Yes
CATEGORIES = devel
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c perl
WANTLIB = c perl
MODULES = cpan
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (YAML-Syck-1.30.tar.gz) = YrNEIWF2VWoMSXBlrYOFFXufJhxuaHIY36Gex9cljcc=
SIZE (YAML-Syck-1.30.tar.gz) = 170413
SHA256 (YAML-Syck-1.31.tar.gz) = 163Fcy/jrFJwq0sSbVfgWquWdGIuV/0g0Bn2fS4EgpA=
SIZE (YAML-Syck-1.31.tar.gz) = 139735

View File

@ -1,10 +1,39 @@
$OpenBSD: patch-syck_h,v 1.1 2010/09/22 10:50:51 sthen Exp $
$OpenBSD: patch-syck_h,v 1.2 2019/02/14 12:26:57 bluhm Exp $
zeroing allocated space avoids a perl segfault with malloc_flags J.
Perl 5.28.1 no longer defines I_STDLIB and I_STRING in its config.h.
Zeroing allocated space avoids a perl segfault with malloc_flags J.
--- syck.h.orig Wed Sep 22 10:22:37 2010
+++ syck.h Wed Sep 22 10:23:24 2010
@@ -75,7 +75,7 @@ extern "C" {
Index: syck.h
--- syck.h.orig
+++ syck.h
@@ -1,10 +1,4 @@
#include "config.h"
-#ifdef I_STDLIB
-#define HAVE_STDLIB_H
-#endif
-#ifdef I_STRING
-#define HAVE_STRING_H
-#endif
/*
* syck.h
@@ -24,15 +18,8 @@
#define SYCK_VERSION "0.61"
#define YAML_DOMAIN "yaml.org,2002"
-#ifdef HAVE_STDLIB_H
# include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
# include <string.h>
-#else
-# include <strings.h>
-#endif
#ifdef HAVE_INTRINSICS_H
# include <intrinsics.h>
@@ -76,7 +63,7 @@ extern "C" {
#define ALLOC_CT 8
#define SYCK_BUFFERSIZE 4096