diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index f814f7fec47..1c8b5102639 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -670,6 +670,18 @@ python () {
             d.appendVar("EXTRANATIVEPATH", ' python3-native ')
             d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot')
 
+        elif uri.scheme == "gs":
+            d.appendVar("RECIPE_HOSTTOOLS", ' gsutil')
+
+        elif uri.scheme == "sftp":
+            d.appendVar("RECIPE_HOSTTOOLS", ' sftp')
+
+        elif uri.scheme == "ssh":
+            d.appendVar("RECIPE_HOSTTOOLS", ' ssh scp')
+
+        elif uri.scheme == "s3":
+            d.appendVar("RECIPE_HOSTTOOLS", ' aws')
+
         # OSC packages should DEPEND on osc-native
         elif uri.scheme == "osc":
             d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot')
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 4cb4f9f9c6e..8ff14158d9a 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -541,22 +541,7 @@ HOSTTOOLS += " \
 "
 
 # Link to these if present
-HOSTTOOLS_NONFATAL += "aws gcc-ar gpg gpg-agent ld.bfd ld.gold nc pigz sftp socat ssh sudo"
-
-# Used by bzr fetcher
-HOSTTOOLS_NONFATAL += "bzr"
-
-# Used by ssh fetcher
-HOSTTOOLS_NONFATAL += "scp"
-
-# Used by Mercurial fetcher
-HOSTTOOLS_NONFATAL += "hg"
-
-# Used by gcp fetcher
-HOSTTOOLS_NONFATAL += "gsutil"
-
-# Link to git-lfs if present
-HOSTTOOLS_NONFATAL += "git-lfs"
+HOSTTOOLS_NONFATAL += "gcc-ar git-lfs gpg gpg-agent ld.bfd nc pigz socat sudo"
 
 CCACHE ??= ""
 
