[v2] dpkg-source: Export proxy settings

Message ID 20251030093750.1395358-1-kazunori.kobayashi@miraclelinux.com
State New
Headers show
Series [v2] dpkg-source: Export proxy settings | expand

Commit Message

Kazunori Kobayashi Oct. 30, 2025, 9:37 a.m. UTC
This change has effect on a very limited case, where a self-built
package fetching a source package via the apt:// scheme in SRC_URI is
specified as a native package (<package>-native) to IMAGE_INSTALL or
SDK_INSTALL. In this case, the source package is fetched via apt-get in
schroot in do_fetch_common_source but proxy environment variables are
not set in the executing shell function.

Signed-off-by: Kazunori Kobayashi <kazunori.kobayashi@miraclelinux.com>
---
 meta/classes/dpkg-source.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/classes/dpkg-source.bbclass b/meta/classes/dpkg-source.bbclass
index 4877abd6..a16e5812 100644
--- a/meta/classes/dpkg-source.bbclass
+++ b/meta/classes/dpkg-source.bbclass
@@ -65,6 +65,8 @@  do_fetch_common_source() {
     trap 'exit 1' INT HUP QUIT TERM ALRM USR1
     trap 'schroot_cleanup' EXIT
 
+    E="${@ isar_export_proxies(d)}"
+
     schroot -r -c ${session_id} -d / -u root -- \
         apt-get update -o Dir::Etc::SourceList="sources.list.d/isar-apt.list" -o Dir::Etc::SourceParts="-" -o APT::Get::List-Cleanup="0"
     schroot -r -c ${session_id} -d / -- \