public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] unpacker.eclass: Don't assume the default tar is stdin
@ 2023-04-06 15:37 Arsen Arsenović
  2023-04-06 15:40 ` [gentoo-dev] " Arsen Arsenović
  2023-04-06 15:41 ` [gentoo-dev] " Mike Gilbert
  0 siblings, 2 replies; 3+ messages in thread
From: Arsen Arsenović @ 2023-04-06 15:37 UTC (permalink / raw
  To: gentoo-dev; +Cc: Arsen Arsenović

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.

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

Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
---
This patch does not close https://bugs.gentoo.org/903631, as I intend to
turn that into a tracker bug.

 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"
 }
 
-- 
2.40.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-dev] Re: [PATCH] unpacker.eclass: Don't assume the default tar is stdin
  2023-04-06 15:37 [gentoo-dev] [PATCH] unpacker.eclass: Don't assume the default tar is stdin Arsen Arsenović
@ 2023-04-06 15:40 ` Arsen Arsenović
  2023-04-06 15:41 ` [gentoo-dev] " Mike Gilbert
  1 sibling, 0 replies; 3+ messages in thread
From: Arsen Arsenović @ 2023-04-06 15:40 UTC (permalink / raw
  To: Arsen Arsenović; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]


Arsen Arsenović <arsen@gentoo.org> writes:

> 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.
>
> Bug: https://bugs.gentoo.org/903631
> Closes: https://bugs.gentoo.org/903914
> Closes: https://bugs.gentoo.org/903919
>
> Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
> ---
> This patch does not close https://bugs.gentoo.org/903631, as I intend to
> turn that into a tracker bug.

Or not - amended locally to close it.  See c6.

>  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"
>  }


-- 
Arsen Arsenović

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] [PATCH] unpacker.eclass: Don't assume the default tar is stdin
  2023-04-06 15:37 [gentoo-dev] [PATCH] unpacker.eclass: Don't assume the default tar is stdin Arsen Arsenović
  2023-04-06 15:40 ` [gentoo-dev] " Arsen Arsenović
@ 2023-04-06 15:41 ` Mike Gilbert
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Gilbert @ 2023-04-06 15:41 UTC (permalink / raw
  To: gentoo-dev; +Cc: Arsen Arsenović

On Thu, Apr 6, 2023 at 11:37 AM Arsen Arsenović <arsen@gentoo.org> wrote:
>
> 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.

Looks good to me.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-06 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 15:37 [gentoo-dev] [PATCH] unpacker.eclass: Don't assume the default tar is stdin Arsen Arsenović
2023-04-06 15:40 ` [gentoo-dev] " Arsen Arsenović
2023-04-06 15:41 ` [gentoo-dev] " Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox