diff options
author | Joe Slater <joe.slater@windriver.com> | 2022-03-15 15:45:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-16 13:39:12 +0000 |
commit | 7f736a56e972ac7a62a4569e3ade7e44e04db339 (patch) | |
tree | 6f0d26e941f8e67a6130f5aaef2317ee3197a7a1 /meta/recipes-devtools/expect | |
parent | 552b8ede77a3bfe0b62066d0f480a85237cedecb (diff) | |
download | poky-7f736a56e972ac7a62a4569e3ade7e44e04db339.tar.gz |
expect: modify fixline1 script
fixline1 needs to be processed by fixline1, but we
short-circuit that. Enter the multi-line shebang which
I am a bit queasy about, but expect loves it.
(From OE-Core rev: 0829d4f2947be2b095e7e713b5100f4e41218bec)
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/expect')
-rw-r--r-- | meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/expect/expect_5.45.4.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch new file mode 100644 index 0000000000..9c73d3e579 --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From eef7c44c10de32ba399ab162cb5799fafdce3fa5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe Slater <joe.slater@windriver.com> | ||
3 | Date: Tue, 15 Mar 2022 22:00:04 +0000 | ||
4 | Subject: [PATCH] fixline1: fix line 1 | ||
5 | |||
6 | Ironically, fixline1 needs its first line modified by | ||
7 | fixline1. We do that, manually. | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE specific cross build setup] | ||
10 | |||
11 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
12 | --- | ||
13 | fixline1 | 5 ++++- | ||
14 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/fixline1 b/fixline1 | ||
17 | index 113e9bb..8a38e96 100755 | ||
18 | --- a/fixline1 | ||
19 | +++ b/fixline1 | ||
20 | @@ -1,4 +1,7 @@ | ||
21 | -#!expect -- | ||
22 | +#!/bin/sh | ||
23 | +# expect won't see the exec \ | ||
24 | +exec expect -- "$0" ${1+"$@"} | ||
25 | + | ||
26 | # Synopsis: fixline1 newpath < input > output | ||
27 | # Author: Don Libes | ||
28 | |||
29 | -- | ||
30 | 2.32.0 | ||
31 | |||
diff --git a/meta/recipes-devtools/expect/expect_5.45.4.bb b/meta/recipes-devtools/expect/expect_5.45.4.bb index 4214ab0f27..e22fa140d5 100644 --- a/meta/recipes-devtools/expect/expect_5.45.4.bb +++ b/meta/recipes-devtools/expect/expect_5.45.4.bb | |||
@@ -25,6 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ | |||
25 | file://0001-Resolve-string-formatting-issues.patch \ | 25 | file://0001-Resolve-string-formatting-issues.patch \ |
26 | file://0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch \ | 26 | file://0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch \ |
27 | file://0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch \ | 27 | file://0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch \ |
28 | file://0001-fixline1-fix-line-1.patch \ | ||
28 | " | 29 | " |
29 | SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2" | 30 | SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2" |
30 | SRC_URI[sha256sum] = "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" | 31 | SRC_URI[sha256sum] = "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" |