public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] unpacker.eclass: call BUILD_AR when unpacking deb files
@ 2020-06-22 15:10 Mike Gilbert
  2020-06-22 18:05 ` Sergei Trofimovich
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Gilbert @ 2020-06-22 15:10 UTC (permalink / raw
  To: gentoo-dev; +Cc: base-system, Mike Gilbert

Closes: https://bugs.gentoo.org/722054
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
 eclass/unpacker.eclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 865e2e1a1a58..63aedee4480e 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -17,6 +17,8 @@
 if [[ -z ${_UNPACKER_ECLASS} ]]; then
 _UNPACKER_ECLASS=1
 
+inherit toolchain-funcs
+
 # @ECLASS-VARIABLE: UNPACKER_BZ2
 # @DEFAULT_UNSET
 # @DESCRIPTION:
@@ -279,8 +281,7 @@ unpack_deb() {
 			done
 		} < "${deb}"
 	else
-		local AR=${AR-ar}
-		${AR} x "${deb}" || die
+		$(tc-getBUILD_AR) x "${deb}" || die
 	fi
 
 	unpacker ./data.tar*
-- 
2.27.0



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

end of thread, other threads:[~2020-06-22 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-22 15:10 [gentoo-dev] [PATCH] unpacker.eclass: call BUILD_AR when unpacking deb files Mike Gilbert
2020-06-22 18:05 ` Sergei Trofimovich

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