summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-11-23 10:55:33 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-11-23 12:41:51 +0100
commit8bbccf0b88bed8f211b1de4a7440843f70a13472 (patch)
tree09cc677f0a6fb58a8985345b6da92b5d5c9c4a52
parentb6126f38fdf6aedfee869c7ad119c35fe59002fa (diff)
downloadjustbuild-8bbccf0b88bed8f211b1de4a7440843f70a13472.tar.gz
git2: do not enforce configuration transition on deps
In our packaging of git2, do not carry out a configuration transition that is visible to dependencies. While its dependencies, ssl and zlib, accept that TARGET_ARCH is defaulted to ARCH if unset and still return the same result, regardless which export targets are cached, we still should not enforce any configuration transition on dependencies as this has the potential to cause subtle conflicts. The implicit default of TARGET_ARCH to ARCH in zlib and ssl can stay, as those libraries do not depend on any other repositories.
-rw-r--r--etc/import/TARGETS.git23
-rw-r--r--etc/import/include/git2/TARGETS.git26
2 files changed, 6 insertions, 3 deletions
diff --git a/etc/import/TARGETS.git2 b/etc/import/TARGETS.git2
index 69bbf9ce..dc3e8fc8 100644
--- a/etc/import/TARGETS.git2
+++ b/etc/import/TARGETS.git2
@@ -94,7 +94,7 @@
, "config":
{ "type": "let*"
, "bindings":
- [ [ "TARGET_ARCH"
+ [ [ "check that architecture is set"
, { "type": "var"
, "name": "TARGET_ARCH"
, "default":
@@ -191,7 +191,6 @@
{ "type": "env"
, "vars":
[ "OS"
- , "TARGET_ARCH"
, "USE_SYSTEM_LIBS"
, "DEBUG_POOL"
, "ENABLE_TRACE"
diff --git a/etc/import/include/git2/TARGETS.git2 b/etc/import/include/git2/TARGETS.git2
index 29a5d269..84eb50c3 100644
--- a/etc/import/include/git2/TARGETS.git2
+++ b/etc/import/include/git2/TARGETS.git2
@@ -34,7 +34,11 @@
]
, [ "IS_32BIT"
, { "type": "case"
- , "expr": {"type": "var", "name": "TARGET_ARCH"}
+ , "expr":
+ { "type": "var"
+ , "name": "TARGET_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
, "case": {"x86": true, "arm": true}
}
]