{"thread":{"id":"7187","subject":"cogito-0.18.2: Portability problems with utility arguments","startedAt":"2007-03-10T20:21:43Z","lastAt":"2007-03-10T20:21:43Z","messageCount":1,"participants":["Thomas Klausner"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"36763","messageId":"20070310202143.GA25193@danbala.tuwien.ac.at","threadId":"7187","inReplyTo":null,"subject":"cogito-0.18.2: Portability problems with utility arguments","fromName":"Thomas Klausner","fromEmail":"tk@giga.or.at","sentAt":"2007-03-10T20:21:43Z","receivedAt":"2007-03-10T20:21:43Z","isPatch":false,"sender":{"key":"tk@giga.or.at","avatar":null},"body":"Hi!\n\nI just updated the NetBSD pkgsrc package for cogito[1] to 0.18.2.\nCurrently there are three patches in pkgsrc for cogito, all of\nthem submitted for inclusion by Anthony Mallet, see\n\thttp://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=35020\n\thttp://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=35147\n\nHere are the patches and the explanations.\n\npatch-ab:\nxargs on NetBSD does not know \"--null\", it does however know\nthe equivalent \"-0\".\n\npatch-ac, patch-ad:\nfmt on NetBSD does not know \"-s\". These patches just remove\nthe \"-s\". I'm not sure how to fix this, really.\n\nPlease include patch-aa, and if you find a way to work\naround the \"fmt -s\", I'd appreciate it.\n\nCheers,\n Thomas\n\nP.S.: Please cc me on replies, I'm not on this list.\n\n[1] http://www.netbsd.org/packages/devel/cogito/README.html\n\n\n$NetBSD: patch-ab,v 1.2 2007/03/10 19:09:33 wiz Exp $\n\n>From PR 35020.\n\n--- cg-Xlib.orig\t2006-11-17 00:37:24.000000000 +0000\n+++ cg-Xlib\n@@ -615,7 +615,7 @@ tree_timewarp()\n \t\t# Kill gone files\n \t\tgit-diff-tree -z --name-status -r \"$base\" \"$branch\" |\n \t\t\tperl -n0e 'chomp; if (defined $meta) { print \"$_\\0\" if $meta eq 'D'; $meta=undef } else { $meta = $_ }' |\n-\t\t\txargs --null rm -f --\n+\t\t\txargs -0 rm -f --\n \t\tgit-checkout-index -u -f -a\n \n \t\t# FIXME: Can produce bogus \"contains only garbage\" messages.\n\n\n$NetBSD: patch-ac,v 1.1 2006/11/09 02:19:59 rillig Exp $\n\n>From PR 35020.\n\n--- cg-tag~\t2006-09-29 13:58:15.000000000 +0200\n+++ cg-tag\t2006-11-08 20:59:30.000000000 +0100\n@@ -105,7 +105,7 @@\n \n for msg in \"${msgs[@]}\"; do\n \t[ \"$written\" ] && echo >>\"$LOGMSG\"\n-\techo \"$msg\" | fmt -s >>\"$LOGMSG\"\n+\techo \"$msg\" | fmt >>\"$LOGMSG\"\n \twritten=1\n done\n \n\n\n$NetBSD: patch-ad,v 1.1 2006/12/03 22:15:48 rillig Exp $\n\nSee PR 35147.\n\n--- cg-commit.orig\t2006-09-29 13:58:15.000000000 +0200\n+++ cg-commit\t2006-12-03 23:01:18.000000000 +0100\n@@ -382,7 +382,7 @@ elif [ \"$merging\" ]; then\n fi\n for msg in \"${msgs[@]}\"; do\n \t[ \"$written\" ] && echo >>\"$LOGMSG\"\n-\techo \"$msg\" | fmt -s >>\"$LOGMSG\"\n+\techo \"$msg\" | fmt >>\"$LOGMSG\"\n \twritten=1\n done\n \n"}]}