* [PATCH] dpkg: Align apt configuration of devshell with build
@ 2023-01-11 21:27 Jan Kiszka
2023-01-25 7:19 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2023-01-11 21:27 UTC (permalink / raw)
To: isar-users; +Cc: Uladzimir Bely
From: Jan Kiszka <jan.kiszka@siemens.com>
That was missing in e9bdd210c43c and 8e524d6787e2.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/classes/dpkg-base.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 61bf48ef..05fd0650 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -292,6 +292,7 @@ python do_devshell() {
pkg_arch = d.getVar('PACKAGE_ARCH', True)
build_arch = d.getVar('SBUILD_HOST_ARCH', True)
pp_pps = os.path.join(d.getVar('PP'), d.getVar('PPS'))
+ debdistroname = d.getVar('DEBDISTRONAME')
install_deps = ":" if d.getVar('BB_CURRENTTASK') == "devshell_nodeps" else f"mk-build-deps -i \
--host-arch {pkg_arch} --build-arch {build_arch} \
@@ -301,12 +302,14 @@ python do_devshell() {
termcmd = "schroot -d / -c {0} -u root -- sh -c ' \
cd {1}; \
echo {2} > /etc/apt/sources.list.d/isar_apt.list; \
+ echo \"Package: *\nPin: release n={3}\nPin-Priority: 1000\" > /etc/apt/preferences.d/isar-apt; \
+ echo \"APT::Get::allow-downgrades 1;\" > /etc/apt/apt.conf.d/50isar-apt; \
apt-get -y -q update; \
- {3}; \
+ {4}; \
export PATH=$PATH_PREPEND:$PATH; \
$SHELL -i \
'"
- oe_terminal(termcmd.format(schroot, pp_pps, isar_apt, install_deps), "Isar devshell", d)
+ oe_terminal(termcmd.format(schroot, pp_pps, isar_apt, debdistroname, install_deps), "Isar devshell", d)
bb.build.exec_func('schroot_delete_configs', d)
}
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dpkg: Align apt configuration of devshell with build
2023-01-11 21:27 [PATCH] dpkg: Align apt configuration of devshell with build Jan Kiszka
@ 2023-01-25 7:19 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-01-25 7:19 UTC (permalink / raw)
To: isar-users
In mail from четверг, 12 января 2023 г. 00:27:49 +03 user Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> That was missing in e9bdd210c43c and 8e524d6787e2.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> meta/classes/dpkg-base.bbclass | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-25 7:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 21:27 [PATCH] dpkg: Align apt configuration of devshell with build Jan Kiszka
2023-01-25 7:19 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox