From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6741460933745311744 Date: Tue, 5 Nov 2019 10:10:27 -0800 (PST) From: vijai kumar To: isar-users Message-Id: In-Reply-To: <20191105103314.11454-1-Vijaikumar_Kangarajan@mentor.com> References: <20191105103314.11454-1-Vijaikumar_Kangarajan@mentor.com> Subject: Re: [PATCH] meta/base-apt: Fix build issue with CI MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1149_265902175.1572977427171" X-Google-Token: EJP2hu4F4xvL4E_6I0Y0 X-Google-IP: 192.94.34.34 X-TUID: 2TYKHAfmWCSK ------=_Part_1149_265902175.1572977427171 Content-Type: multipart/alternative; boundary="----=_Part_1150_1315076189.1572977427172" ------=_Part_1150_1315076189.1572977427172 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit The build succeeded. Thanks, Vijai Kumar K On Tuesday, November 5, 2019 at 4:03:27 PM UTC+5:30, vijai kumar wrote: > > From: Vijai Kumar K > > CI triggers the build in a chrooted environment with userspec > option set to host user. GPG commands would fail since we donot have > access to the $HOME folder in chroot. > > Make GNUPGHOME available to avoid failures due to permission issues. > > Signed-off-by: Vijai Kumar K > --- > > Hi Baurzhan, > > This patch should fix the issue we are facing in CI. > > There is a job running successfully with this patchset at > http://ci.isar-build.org:8080/job/isar_vkk_devel/10/consoleFull > > > Thanks, > Vijai Kumar K > > meta/recipes-devtools/base-apt/base-apt.bb | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/meta/recipes-devtools/base-apt/base-apt.bb > b/meta/recipes-devtools/base-apt/base-apt.bb > index 42ff782..9a0f7c8 100644 > --- a/meta/recipes-devtools/base-apt/base-apt.bb > +++ b/meta/recipes-devtools/base-apt/base-apt.bb > @@ -14,6 +14,10 @@ do_cache_config[lockfiles] = > "${REPO_BASE_DIR}/isar.lock" > # Generate reprepro config for current distro if it doesn't exist. Once > it's > # generated, this task should do nothing. > repo_config() { > + if [ -n "${GNUPGHOME}" ]; then > + export GNUPGHOME="${GNUPGHOME}" > + fi > + > if [ ! -e "${CACHE_CONF_DIR}/distributions" ]; then > sed -e "s#{CODENAME}#"${BASE_DISTRO_CODENAME}"#g" \ > ${WORKDIR}/distributions.in > > ${CACHE_CONF_DIR}/distributions > @@ -32,9 +36,6 @@ repo_config() { > path_databases="${REPO_BASE_DB_DIR}/${BASE_DISTRO}" > > if [ ! -d "${path_databases}" ]; then > - if [ -n "${GNUPGHOME}" ]; then > - export GNUPGHOME="${GNUPGHOME}" > - fi > reprepro -b ${path_cache} \ > --dbdir ${path_databases} \ > export ${BASE_DISTRO_CODENAME} > -- > 2.17.1 > > ------=_Part_1150_1315076189.1572977427172 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
The build succeeded.

Thanks,
= Vijai Kumar K


On Tuesday, November 5, 2019 at 4:03:27 PM UT= C+5:30, vijai kumar wrote:
From= : Vijai Kumar K <Vijaikumar_K= anagarajan@mentor.com>

CI triggers the build in a chrooted environment with userspec
option set to host user. GPG commands would fail since we donot have
access to the $HOME folder in chroot.

Make GNUPGHOME available to avoid failures due to permission issues.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---

Hi Baurzhan,

This patch should fix the issue we are facing in CI.

There is a job running successfully with this patchset at =C2=A0
http://ci.isar-build.org:80= 80/job/isar_vkk_devel/10/consoleFull


Thanks,
Vijai Kumar K

=C2=A0meta/recipes-devtools/base-apt/base-apt.bb | 7 ++++---
=C2=A01 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/base-apt/base-apt.bb b/meta/recipes-devtools/base-apt/base-apt.bb
index 42ff782..9a0f7c8 100644
--- a/meta/recipes-devtools/base-apt/base-apt.bb
+++ b/meta/recipes-devtools/base-apt/base-apt.bb
@@ -14,6 +14,10 @@ do_cache_config[lockfiles] =3D "${REPO_BASE_DIR= }/isar.lock"
=C2=A0# Generate reprepro config for current distro if it doesn't e= xist. Once it's
=C2=A0# generated, this task should do nothing.
=C2=A0repo_config() {
+ =C2=A0 =C2=A0if [ -n "${GNUPGHOME}" ]; then
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0export GNUPGHOME=3D"${GNUPGHOME}"= ;
+ =C2=A0 =C2=A0fi
+
=C2=A0 =C2=A0 =C2=A0if [ ! -e "${CACHE_CONF_DIR}/distribution= s" ]; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sed -e "s#{CODENAME}#"${BAS= E_DISTRO_CODENAME}"#g" \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${WORKDIR}/distributions.in > ${CACHE= _CONF_DIR}/distributions
@@ -32,9 +36,6 @@ repo_config() {
=C2=A0 =C2=A0 =C2=A0path_databases=3D"${REPO_BASE_DB_DIR}/${B= ASE_DISTRO}"
=C2=A0
=C2=A0 =C2=A0 =C2=A0if [ ! -d "${path_databases}" ]; then
- =C2=A0 =C2=A0 =C2=A0 =C2=A0if [ -n "${GNUPGHOME}" ]; then
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0export GNUPGHOME=3D"${G= NUPGHOME}"
- =C2=A0 =C2=A0 =C2=A0 =C2=A0fi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0reprepro -b ${path_cache} \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --dbdir = ${path_databases} \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 export $= {BASE_DISTRO_CODENAME}
--=20
2.17.1

------=_Part_1150_1315076189.1572977427172-- ------=_Part_1149_265902175.1572977427171--