commit:     8932600dfca2ec57a4a5b2a56571824ecbf5a1af
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  1 13:24:15 2026 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 18:07:36 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8932600d

unpacker.eclass: Add support for makeself 2.5.0-2.7.1

Add support for makeself releases 2.5.0 through 2.7.1.

Tested with makeself 2.5.0, 2.6.0, 2.7.0 and 2.7.1.

Archives created with makeself 2.6.0 identify as 2.5.0, but the format
is similar so they can be unpacked regardless.

URI of files this has been tested with:
- 
https://download.virtualbox.org/virtualbox/7.1.0/VirtualBox-7.1.0-164728-Linux_amd64.run
 (2.4.5)
- 
https://download.virtualbox.org/virtualbox/7.2.4/VirtualBox-7.2.4-170995-Linux_amd64.run
 (2.5.0)
- 
https://github.com/megastep/makeself/releases/download/release-2.5.0/makeself-2.5.0.run
 (2.5.0)
- 
https://github.com/megastep/makeself/releases/download/release-2.6.0/makeself-2.6.0.run
 (2.6.0)
- 
https://github.com/megastep/makeself/releases/download/release-2.7.0/makeself-2.7.0.run
 (2.7.0)
- 
https://github.com/megastep/makeself/releases/download/release-2.7.1/makeself-2.7.1.run
 (2.7.1)

Closes: https://bugs.gentoo.org/970509
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 eclass/unpacker.eclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 0ace3ae53cb9..e51c51dfa339 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: unpacker.eclass
@@ -218,7 +218,8 @@ unpack_makeself() {
                                skip=$(head -n ${skip} "${src}" | wc -c)
                                exe="dd"
                                ;;
-                       2.4.5)
+                       # 2.6.0's header also contains "2.5.0"; unpack_makeself 
works in both cases
+                       2.4.5|2.5.0|2.7.0|2.7.1)
                                # e.g.: skip="713"
                                skip=$(
                                        sed -n -e 
'/^skip=/{s:skip="\(.*\)":\1:p;q}' "${src}"

Reply via email to