[packages/mksh] - up to 42b
arekm
arekm at pld-linux.org
Sat Feb 16 00:01:18 CET 2013
commit 90672aa55ef1391461c0c53e6dd1e2786c5eafbb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 16 00:01:14 2013 +0100
- up to 42b
mksh-distro.patch | 22 ----------------------
mksh.spec | 16 +++++++++++-----
2 files changed, 11 insertions(+), 27 deletions(-)
---
diff --git a/mksh.spec b/mksh.spec
index 6978572..084cc22 100644
--- a/mksh.spec
+++ b/mksh.spec
@@ -4,18 +4,17 @@
Summary: MirBSD Korn Shell
Summary(pl.UTF-8): Powłoka Korna z MirBSD
Name: mksh
-Version: 42
+Version: 42b
Release: 1
License: BSD
Group: Applications/Shells
Source0: http://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz
-# Source0-md5: f1ad261f79f6ac45e8d5cc5bea191090
+# Source0-md5: 8b4b9182eb63b47390f164246959b661
Source1: %{name}-mkshrc
Patch0: %{name}-mkshrc_support.patch
Patch1: %{name}-circumflex.patch
Patch2: %{name}-no_stop_alias.patch
-Patch3: %{name}-distro.patch
-Patch4: %{name}-cmdline-length.patch
+Patch3: %{name}-cmdline-length.patch
URL: https://www.mirbsd.org/mksh.htm
%if %{with tests}
BuildRequires: ed
@@ -85,9 +84,16 @@ mv mksh/* .; rmdir mksh
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
+# sed rules instead of patch (needed update for every release)
+sed -i -e 's|\(#define.*MKSH_VERSION.*\)"|\1 @DISTRO@"|g' sh.h
+sed -i -e 's|\(@(#)MIRBSD KSH.*\)|\1 @DISTRO@|g' check.t
+
+# fill distro
sed -i -e 's#@DISTRO@#PLD/Linux 3.0#g' check.t sh.h
+# sanity checks
+grep PLD/Linux check.t || exit 1
+grep PLD/Linux sh.h || exit 1
# we'll need this later due to -DMKSH_GCC55009
cat >rtchecks <<'EOF'
diff --git a/mksh-distro.patch b/mksh-distro.patch
deleted file mode 100644
index ed75f40..0000000
--- a/mksh-distro.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- mksh-42/sh.h~ 2013-02-12 07:20:52.764918024 +0100
-+++ mksh-42/sh.h 2013-02-12 07:21:57.486460200 +0100
-@@ -166,7 +166,7 @@
- #ifdef EXTERN
- __RCSID("$MirOS: src/bin/mksh/sh.h,v 1.634.2.1 2013/02/11 17:25:03 tg Exp $");
- #endif
--#define MKSH_VERSION "R42 2013/02/10"
-+#define MKSH_VERSION "R42 2013/02/10 @DISTRO@"
-
- /* arithmetic types: C implementation */
- #if !HAVE_CAN_INTTYPES
---- mksh-42/check.t~ 2013-02-11 14:07:19.000000000 +0100
-+++ mksh-42/check.t 2013-02-12 07:21:38.082664463 +0100
-@@ -29,7 +29,7 @@
- # http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/bin/test/regress.sh?rev=HEAD
-
- expected-stdout:
-- @(#)MIRBSD KSH R42 2013/02/10
-+ @(#)MIRBSD KSH R42 2013/02/10 @DISTRO@
- description:
- Check version of shell.
- stdin:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mksh.git/commitdiff/90672aa55ef1391461c0c53e6dd1e2786c5eafbb
More information about the pld-cvs-commit
mailing list