pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
posh: Imported version 0.13.1
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Mon Sep 24 19:42:51 2018 +0200
Changeset: 54efcf500fd7e2be1e7c7eb300e263894bf5420f
Added Files:
posh/DESCR
posh/Makefile
posh/PLIST
posh/TODO
posh/distinfo
posh/patches/patch-exec.c
posh/patches/patch-sh.h
posh/patches/patch-tests_Makefile.am
posh/patches/patch-tests_error.t
Log Message:
posh: Imported version 0.13.1
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=54efcf500fd7e2be1e7c7eb300e263894bf5420f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
posh/DESCR | 2 ++
posh/Makefile | 31 +++++++++++++++++++++++++++++++
posh/PLIST | 4 ++++
posh/TODO | 2 ++
posh/distinfo | 10 ++++++++++
posh/patches/patch-exec.c | 22 ++++++++++++++++++++++
posh/patches/patch-sh.h | 14 ++++++++++++++
posh/patches/patch-tests_Makefile.am | 15 +++++++++++++++
posh/patches/patch-tests_error.t | 24 ++++++++++++++++++++++++
9 files changed, 124 insertions(+)
diffs:
diff --git a/posh/DESCR b/posh/DESCR
new file mode 100644
index 0000000000..169e321df1
--- /dev/null
+++ b/posh/DESCR
@@ -0,0 +1,2 @@
+posh is a stripped-down version of pdksh that aims for compliance with
+Debian's policy, and also has a few extra features.
diff --git a/posh/Makefile b/posh/Makefile
new file mode 100644
index 0000000000..641356919c
--- /dev/null
+++ b/posh/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+DISTNAME= posh_0.13.1
+PKGNAME= ${DISTNAME:S/_/-/}
+CATEGORIES= shells
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/p/posh/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://packages.debian.org/posh
+COMMENT= Debian Policy-compliant Ordinary SHell
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c99
+USE_TOOLS+= perl autoconf automake
+GNU_CONFIGURE= YES
+
+PKG_SHELL= bin/posh
+WRKSRC= ${WRKDIR}/posh
+INSTALLATION_DIRS= share/doc/posh
+
+# Testsuite eats up all memory and never finish
+TEST_TARGET= check
+
+pre-configure:
+ cd ${WRKSRC} && autoreconf
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/debian/changelog ${DESTDIR}${PREFIX}/share/doc/posh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/posh/PLIST b/posh/PLIST
new file mode 100644
index 0000000000..c831d26f91
--- /dev/null
+++ b/posh/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:14:21 joerg Exp $
+bin/posh
+man/man1/posh.1
+share/doc/posh/changelog
diff --git a/posh/TODO b/posh/TODO
new file mode 100644
index 0000000000..bd1f682532
--- /dev/null
+++ b/posh/TODO
@@ -0,0 +1,2 @@
+[ ] Provide PKGSRC_GNU_GETOPT for GNU systems
+[ ] Analyze testsuite failures
diff --git a/posh/distinfo b/posh/distinfo
new file mode 100644
index 0000000000..612c145150
--- /dev/null
+++ b/posh/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.14 2016/01/25 15:09:01 ryoon Exp $
+
+SHA1 (posh_0.13.1.tar.xz) = 1ee2319a4568e6200ce8494bc76ebad60711e2e6
+RMD160 (posh_0.13.1.tar.xz) = 54cab9b0ede27922176bdc682871ef77548d2ff8
+SHA512 (posh_0.13.1.tar.xz) = 957fc2924ab8f634007db2e15ecdbb8a1c60ffb4917c127c1583c05e222f598a564906cc40c869c95d79995ea85af24010780e7d36d44a5907a691aa9044f23a
+Size (posh_0.13.1.tar.xz) = 267436 bytes
+SHA1 (patch-exec.c) = e8373057ddbf2f75c09f114c53d7203f1bfb6ef9
+SHA1 (patch-sh.h) = 8766e648519c276bd7079df565291894f03d1857
+SHA1 (patch-tests_Makefile.am) = bbdf64f0f7a586b28fc379cd6e22cbfeb35bebb5
+SHA1 (patch-tests_error.t) = 0f94db53de3b759a08a1d730ef29e9616bdab0de
diff --git a/posh/patches/patch-exec.c b/posh/patches/patch-exec.c
new file mode 100644
index 0000000000..b741ef9a8f
--- /dev/null
+++ b/posh/patches/patch-exec.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+The usage of "optind = 0" is undefined behaviour according to POSIX.
+Use it only for GNU getopt() and provide a portable replacement.
+
+--- exec.c.orig 2013-05-31 01:14:12.000000000 +0000
++++ exec.c
+@@ -413,10 +413,14 @@ comexec(struct op *t, struct tbl *volati
+ while (*arg++)
+ ++noargc;
+
++#if PKGSRC_GNU_GETOPT
+ /* We need to set optind to 0 or else +p won't work */
+ optind = 0;
+
+ while ((optc = getopt(noargc, ap, "+p")) != -1) {
++#else /* PKGSRC_GNU_GETOPT */
++ while ((optc = getopt(noargc, ap, "p")) != -1) {
++#endif /* PKGSRC_GNU_GETOPT */
+ switch (optc) {
+ case 'p':
+ saw_p = 1;
diff --git a/posh/patches/patch-sh.h b/posh/patches/patch-sh.h
new file mode 100644
index 0000000000..5e25407f37
--- /dev/null
+++ b/posh/patches/patch-sh.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Depend on errno.h to provide errno.
+
+--- sh.h.orig 2015-06-07 19:11:23.000000000 +0000
++++ sh.h
+@@ -68,7 +68,6 @@
+ #define SH_VA_START(va, argn) va_start(va, argn)
+
+ #include <errno.h>
+-extern int errno;
+
+ #ifdef HAVE_FCNTL_H
+ # include <fcntl.h>
diff --git a/posh/patches/patch-tests_Makefile.am b/posh/patches/patch-tests_Makefile.am
new file mode 100644
index 0000000000..94a15d6daf
--- /dev/null
+++ b/posh/patches/patch-tests_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Remove debian specific tests.
+
+--- tests/Makefile.am.orig 2014-02-10 00:38:21.000000000 +0000
++++ tests/Makefile.am
+@@ -4,7 +4,7 @@ EXTRA_DIST = exec.t quoting.t th Makefil
+ utilities.t arithmetic.t # ttylovers.t
+
+ SHELL_TO_TEST = ../posh$(exe_suffix)
+-CATEGORIES_TO_TEST = sh,posix,pdksh,posh,debian,no-history,no-typeset,no-aliases,no-arrays,no-coprocs,no-herestrings,no-ulimit
++CATEGORIES_TO_TEST = sh,posix,pdksh,posh,no-history,no-typeset,no-aliases,no-arrays,no-coprocs,no-herestrings,no-ulimit
+
+ check test:
+ $(srcdir)/th-sh $(srcdir)/th -s $(srcdir) -p $(SHELL_TO_TEST) -C $(CATEGORIES_TO_TEST) $(TESTARGS)
diff --git a/posh/patches/patch-tests_error.t b/posh/patches/patch-tests_error.t
new file mode 100644
index 0000000000..ed8aeb1511
--- /dev/null
+++ b/posh/patches/patch-tests_error.t
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Remove unportable tests from category "posix".
+
+--- tests/error.t.orig 2009-10-01 03:16:44.000000000 +0000
++++ tests/error.t
+@@ -14,7 +14,7 @@ name: error-2
+ description:
+ Check that failure to execute a command returns the proper
+ exit status.
+-category: debian,posix
++category: debian
+ stdin:
+ TEMPFILE=$(tempfile --prefix posix)
+ chmod 0 $TEMPFILE
+@@ -26,7 +26,7 @@ expected-stdout:
+ name: error-3
+ description:
+ POSIX says that the shell should exit with 126/127 in some situations
+-category: debian,posix
++category: debian
+ stdin:
+ i=0
+ echo : >x
Home |
Main Index |
Thread Index |
Old Index