summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0002-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch
blob: 21ad82ede1d4b79a096a806f4c92218c4222d602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From e5b95b3918588e2930c9af7ba304c57e871b2d55 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Thu, 7 Oct 2021 12:44:18 +0200
Subject: [PATCH] build: do not use autoconf's config.sub to 'canonicalize'
 names

The outcome is that processed names no longer match our custom rust
target definitions, and the build fails.

Upstream-Status: Inappropriate [oespecific]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 build/moz.configure/init.configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
index b887153..0a6a33c 100644
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -808,7 +808,7 @@ def help_host_target(help, host, target):
 def config_sub(shell, triplet):
     config_sub = os.path.join(os.path.dirname(__file__), '..',
                               'autoconf', 'config.sub')
-    return check_cmd_output(shell, config_sub, triplet).strip()
+    return triplet
 
 
 @depends('--host', shell)
-- 
2.31.1