Stuart Henderson <[email protected]> writes:
> Linux output is taken care of, thanks to rpe.
>
> Stuart Henderson <[email protected]> wrote:
>
>>add a TEST_DEPENDS found by lteo, and clean up the Makefile, bit hasty
>>in sending that out.
>>
>>there are some test failures but the programs seem to work fine so far,
>>I'll have another look at that in a bit. If anyone has a Linux box
>>handy I'd be interested to know how many fail there.
All test pass on Debian Squeeze.
Down to 1 failure on OpenBSD, with the patch below.
--
Jérémie Courrèges-Anglas
PGP Key fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494
diff -pruN patchutils.old/Makefile patchutils/Makefile
--- patchutils.old/Makefile Fri Apr 19 08:32:56 2013
+++ patchutils/Makefile Sat Apr 20 18:46:26 2013
@@ -23,11 +23,17 @@ RUN_DEPENDS= devel/gpatch
TEST_DEPENDS= misc/rpm
USE_GROFF= Yes
+TEST_FLAGS= PATCH=${LOCALBASE}/bin/gpatch
+
# only needed for tests
USE_GMAKE= Yes
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-patch=${LOCALBASE}/bin/gpatch
+
+pre-test:
+ perl -pi -e "s|/bin/echo -ne '\\\t'|printf '\\\t'|" \
+ ${WRKSRC}/tests/flip*/run-test
.include <bsd.port.mk>
diff -pruN patchutils.old/patches/patch-src_util_c
patchutils/patches/patch-src_util_c
--- patchutils.old/patches/patch-src_util_c Thu Jan 1 01:00:00 1970
+++ patchutils/patches/patch-src_util_c Sat Apr 20 18:28:50 2013
@@ -0,0 +1,13 @@
+$OpenBSD$
+Avoid bogus pointer error in getline
+--- src/util.c.orig Fri May 20 14:42:46 2011
++++ src/util.c Sat Apr 20 18:28:35 2013
+@@ -137,7 +137,7 @@ void patlist_add(struct patlist **dst, const char *s)
+ void patlist_add_file(struct patlist **dst, const char *fn)
+ {
+ FILE *fd;
+- char *line;
++ char *line = NULL;
+ size_t linelen = 0;
+ size_t len;
+