commit:     d53ec485fe53d50619a1292cccb6c66eaf16b9ac
Author:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  6 15:35:11 2023 +0000
Commit:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Thu Apr  6 15:42:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d53ec485

unpacker.eclass: Don't assume the default tar is stdin

Despite common misconception, the default GNU tar tarfile is not stdin.
On some systems, this can cause tar to fail to extract relevant files.

See '(tar)file tutorial' for a description of how the default is picked.

Closes: https://bugs.gentoo.org/903631
Closes: https://bugs.gentoo.org/903914
Closes: https://bugs.gentoo.org/903919

Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>

 eclass/unpacker.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 650de4bd3f75..652527b52ec6 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -325,7 +325,7 @@ unpack_deb() {
                        $(tc-getBUILD_AR) p "${deb}" "${f}" | ${decomp:-cat}
                        assert "unpacking ${f} from ${deb} failed"
                fi
-       } | tar --no-same-owner -x
+       } | tar --no-same-owner -xf -
        assert "unpacking ${deb} failed"
 }
 

Reply via email to