Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 01 Oct 2022 17:19:41
Message-Id: 1664644772.d34261b26bba7eaf7927ee30424284ba4c671f49.mgorny@gentoo
1 commit: d34261b26bba7eaf7927ee30424284ba4c671f49
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 08:43:19 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 17:19:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d34261b2
7
8 unpacker.eclass: Add support for makeself 2.4.5
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/unpacker.eclass | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
16 index 6c9bcbdd7a7b..1fda7a89f3c2 100644
17 --- a/eclass/unpacker.eclass
18 +++ b/eclass/unpacker.eclass
19 @@ -218,6 +218,14 @@ unpack_makeself() {
20 skip=$(head -n ${skip} "${src}" | wc -c)
21 exe="dd"
22 ;;
23 + 2.4.5)
24 + # e.g.: skip="713"
25 + skip=$(
26 + sed -n -e '/^skip=/{s:skip="\(.*\)":\1:p;q}' "${src}"
27 + )
28 + skip=$(head -n "${skip}" "${src}" | wc -c)
29 + exe="dd"
30 + ;;
31 *)
32 eerror "I'm sorry, but I was unable to support the Makeself file."
33 eerror "The version I detected was '${ver}'."