File syck-fixes.patch of Package syck
Index: lib/emitter.c
===================================================================
--- lib/emitter.c.orig 2006-10-14 08:58:02.000000000 +0200
+++ lib/emitter.c 2007-08-22 10:33:31.000000000 +0200
@@ -52,6 +52,7 @@ syck_base64enc( char *s, long len )
buff[i++] = padding;
}
buff[i++] = '\n';
+ buff[i] = '\0';
return buff;
}
Index: lib/syck.h
===================================================================
--- lib/syck.h.orig 2006-10-14 08:58:02.000000000 +0200
+++ lib/syck.h 2007-08-22 10:33:31.000000000 +0200
@@ -16,6 +16,10 @@
#define SYCK_VERSION "0.61"
#define YAML_DOMAIN "yaml.org,2002"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
Index: lib/Makefile.am
===================================================================
--- lib/Makefile.am.orig 2006-10-16 22:02:35.000000000 +0200
+++ lib/Makefile.am 2007-08-22 10:34:09.000000000 +0200
@@ -6,10 +6,10 @@ SUFFIXES = .re
.re.c:
$(REC) $< > $@.new && mv $@.new $@
-lib_LIBRARIES = libsyck.a
+lib_LTLIBRARIES = libsyck.la
include_HEADERS = syck.h syck_st.h
-libsyck_a_SOURCES = \
+libsyck_la_SOURCES = \
emitter.c \
handler.c \
node.c \
Index: configure.in
===================================================================
--- configure.in.orig 2005-09-20 07:25:11.000000000 +0200
+++ configure.in 2007-08-22 10:33:31.000000000 +0200
@@ -4,13 +4,13 @@ AC_CONFIG_AUX_DIR(config)
AC_PREREQ(2.50)
AM_INIT_AUTOMAKE(syck, 0.60)
-AM_CONFIG_HEADER(config.h)
+AM_CONFIG_HEADER([config.h])
# Checks for programs.
+AC_PROG_LIBTOOL
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
-AC_PROG_RANLIB
AC_PROG_MAKE_SET
AC_PROG_AWK
AC_PROG_YACC
@@ -20,7 +20,7 @@ AM_PROG_LEX
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(alloca.h stdlib.h string.h)
+AC_CHECK_HEADERS([alloca.h stdlib.h string.h])
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
Index: bootstrap
===================================================================
--- bootstrap.orig 2003-02-27 07:33:04.000000000 +0100
+++ bootstrap 2007-08-22 10:33:31.000000000 +0200
@@ -1,7 +1,8 @@
#! /bin/sh
set -x
-aclocal
-autoheader
+libtoolize --force --copy
+aclocal --force
+autoheader --force
automake --foreign --add-missing --copy
-autoconf
+autoconf --force
Index: tests/Makefile.am
===================================================================
--- tests/Makefile.am.orig 2005-07-09 07:38:07.000000000 +0200
+++ tests/Makefile.am 2007-08-22 10:43:30.000000000 +0200
@@ -1,5 +1,5 @@
INCLUDES = -I$(top_srcdir)/lib
-LDFLAGS = -L$(top_builddir)/lib
+AM_LDFLAGS = -L$(top_builddir)/lib
TESTS = test-basic test-parse test-yts test-emit
noinst_PROGRAMS = test-basic test-parse test-yts test-emit