All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] own-mirrors.bbclass: Change prepend to append
@ 2018-03-09  1:49 Bhargava Sreekantappa Gayathri
  2018-03-09 13:26 ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Bhargava Sreekantappa Gayathri @ 2018-03-09  1:49 UTC (permalink / raw)
  To: openembedded-core, manjukum; +Cc: Bhargava Sreekantappa Gayathri

If BB_NO_NETWORK is set to 1, and local download directory is added as
PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
SOURCE_MIRROR_URL as the first url. This causes build to fail as network
access is diabled. PREMIRRORS should be appended here so that a prepend
in other layers/conf files takes precedence.

Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
---
 meta/classes/own-mirrors.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/own-mirrors.bbclass b/meta/classes/own-mirrors.bbclass
index a777835..4cfd894 100644
--- a/meta/classes/own-mirrors.bbclass
+++ b/meta/classes/own-mirrors.bbclass
@@ -1,4 +1,4 @@
-PREMIRRORS_prepend = " \
+PREMIRRORS_append = " \
 cvs://.*/.*     ${SOURCE_MIRROR_URL} \n \
 svn://.*/.*     ${SOURCE_MIRROR_URL} \n \
 git://.*/.*     ${SOURCE_MIRROR_URL} \n \
--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] own-mirrors.bbclass: Change prepend to append
  2018-03-09  1:49 [PATCH] own-mirrors.bbclass: Change prepend to append Bhargava Sreekantappa Gayathri
@ 2018-03-09 13:26 ` Richard Purdie
  2018-03-09 17:56   ` Manjukumar Harthikote Matha
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2018-03-09 13:26 UTC (permalink / raw)
  To: Bhargava Sreekantappa Gayathri, openembedded-core, manjukum

On Thu, 2018-03-08 at 17:49 -0800, Bhargava Sreekantappa Gayathri
wrote:
> If BB_NO_NETWORK is set to 1, and local download directory is added
> as
> PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
> SOURCE_MIRROR_URL as the first url. This causes build to fail as
> network
> access is diabled. PREMIRRORS should be appended here so that a
> prepend
> in other layers/conf files takes precedence.
> 
> Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-
> gayathri@xilinx.com>
> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.c
> om>
> ---
>  meta/classes/own-mirrors.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I think this patch just moves the problem, you could easily have a
file:/// url as SOURCE_MIRROR_URL and a network address in your other
layer in which case your patch would break things...

Cheers,

Richard


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] own-mirrors.bbclass: Change prepend to append
  2018-03-09 13:26 ` Richard Purdie
@ 2018-03-09 17:56   ` Manjukumar Harthikote Matha
  2018-03-09 19:04     ` Richard Purdie
  2018-03-20 20:26     ` Bhargava Sreekantappa Gayathri
  0 siblings, 2 replies; 7+ messages in thread
From: Manjukumar Harthikote Matha @ 2018-03-09 17:56 UTC (permalink / raw)
  To: Richard Purdie, Bhargava Sreekantappa Gayathri, openembedded-core



> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> Sent: Friday, March 09, 2018 5:27 AM
> To: Bhargava Sreekantappa Gayathri <BSREEKAN@xilinx.com>; openembedded-
> core@lists.openembedded.org; Manjukumar Harthikote Matha
> <MANJUKUM@xilinx.com>
> Subject: Re: [OE-core] [PATCH] own-mirrors.bbclass: Change prepend to append
> 
> On Thu, 2018-03-08 at 17:49 -0800, Bhargava Sreekantappa Gayathri
> wrote:
> > If BB_NO_NETWORK is set to 1, and local download directory is added as
> > PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
> > SOURCE_MIRROR_URL as the first url. This causes build to fail as
> > network access is diabled. PREMIRRORS should be appended here so that
> > a prepend in other layers/conf files takes precedence.
> >
> > Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-
> > gayathri@xilinx.com>
> > Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.c
> > om>
> > ---
> >  meta/classes/own-mirrors.bbclass | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> I think this patch just moves the problem, you could easily have a file:/// url
> as SOURCE_MIRROR_URL and a network address in your other layer in which case
> your patch would break things...
> 


Agreed.
I think the better fix would be to go through the entire available list in PREMIRRORS skipping http or https  (since BB_NO_NETWORK is set) and then fail if we cannot get the required file.

Thanks,
Manju

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] own-mirrors.bbclass: Change prepend to append
  2018-03-09 17:56   ` Manjukumar Harthikote Matha
@ 2018-03-09 19:04     ` Richard Purdie
  2018-03-20 20:26     ` Bhargava Sreekantappa Gayathri
  1 sibling, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2018-03-09 19:04 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, Bhargava Sreekantappa Gayathri,
	openembedded-core

On Fri, 2018-03-09 at 17:56 +0000, Manjukumar Harthikote Matha wrote:
> 
> > 
> > -----Original Message-----
> > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> > Sent: Friday, March 09, 2018 5:27 AM
> > To: Bhargava Sreekantappa Gayathri <BSREEKAN@xilinx.com>;
> > openembedded-
> > core@lists.openembedded.org; Manjukumar Harthikote Matha
> > <MANJUKUM@xilinx.com>
> > Subject: Re: [OE-core] [PATCH] own-mirrors.bbclass: Change prepend
> > to append
> > 
> > On Thu, 2018-03-08 at 17:49 -0800, Bhargava Sreekantappa Gayathri
> > wrote:
> > > 
> > > If BB_NO_NETWORK is set to 1, and local download directory is
> > > added as
> > > PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
> > > SOURCE_MIRROR_URL as the first url. This causes build to fail as
> > > network access is diabled. PREMIRRORS should be appended here so
> > > that
> > > a prepend in other layers/conf files takes precedence.
> > > 
> > > Signed-off-by: Bhargava Sreekantappa Gayathri
> > > <bhargava.sreekantappa-
> > > gayathri@xilinx.com>
> > > Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xili
> > > nx.c
> > > om>
> > > ---
> > >  meta/classes/own-mirrors.bbclass | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > I think this patch just moves the problem, you could easily have a
> > file:/// url
> > as SOURCE_MIRROR_URL and a network address in your other layer in
> > which case
> > your patch would break things...
> > 
> 
> Agreed.
> I think the better fix would be to go through the entire available
> list in PREMIRRORS skipping http or https  (since BB_NO_NETWORK is
> set) and then fail if we cannot get the required file.

Agreed, we just need to ensure users see a mention that BB_NO_NETWORK
is set in those failure modes.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] own-mirrors.bbclass: Change prepend to append
  2018-03-09 17:56   ` Manjukumar Harthikote Matha
  2018-03-09 19:04     ` Richard Purdie
@ 2018-03-20 20:26     ` Bhargava Sreekantappa Gayathri
  1 sibling, 0 replies; 7+ messages in thread
From: Bhargava Sreekantappa Gayathri @ 2018-03-20 20:26 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, Richard Purdie, openembedded-core





> -----Original Message-----
> From: Manjukumar Harthikote Matha
> Sent: Friday, March 09, 2018 9:57 AM
> To: Richard Purdie <richard.purdie@linuxfoundation.org>; Bhargava
> Sreekantappa Gayathri <BSREEKAN@xilinx.com>; openembedded-
> core@lists.openembedded.org
> Subject: RE: [OE-core] [PATCH] own-mirrors.bbclass: Change prepend to append
> 
> 
> 
> > -----Original Message-----
> > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> > Sent: Friday, March 09, 2018 5:27 AM
> > To: Bhargava Sreekantappa Gayathri <BSREEKAN@xilinx.com>;
> > openembedded- core@lists.openembedded.org; Manjukumar Harthikote
> Matha
> > <MANJUKUM@xilinx.com>
> > Subject: Re: [OE-core] [PATCH] own-mirrors.bbclass: Change prepend to
> > append
> >
> > On Thu, 2018-03-08 at 17:49 -0800, Bhargava Sreekantappa Gayathri
> > wrote:
> > > If BB_NO_NETWORK is set to 1, and local download directory is added
> > > as PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
> > > SOURCE_MIRROR_URL as the first url. This causes build to fail as
> > > network access is diabled. PREMIRRORS should be appended here so
> > > that a prepend in other layers/conf files takes precedence.
> > >
> > > Signed-off-by: Bhargava Sreekantappa Gayathri
> > > <bhargava.sreekantappa- gayathri@xilinx.com>
> > > Signed-off-by: Manjukumar Matha
> > > <manjukumar.harthikote-matha@xilinx.c
> > > om>
> > > ---
> > >  meta/classes/own-mirrors.bbclass | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > I think this patch just moves the problem, you could easily have a
> > file:/// url as SOURCE_MIRROR_URL and a network address in your other
> > layer in which case your patch would break things...
> >
> 
> 
> Agreed.
> I think the better fix would be to go through the entire available list in
> PREMIRRORS skipping http or https  (since BB_NO_NETWORK is set) and then
> fail if we cannot get the required file.

Hi Richard/Manju,

Agreed, I have sent out a patch to fix this issue as discussed.

Thanks,
Bhargav
> 
> Thanks,
> Manju

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] own-mirrors.bbclass: Change prepend to append
@ 2018-03-09  1:54 Bhargava Sreekantappa Gayathri
  0 siblings, 0 replies; 7+ messages in thread
From: Bhargava Sreekantappa Gayathri @ 2018-03-09  1:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Bhargava Sreekantappa Gayathri

If BB_NO_NETWORK is set to 1, and local download directory is added as
PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
SOURCE_MIRROR_URL as the first url. This causes build to fail as network
access is diabled. PREMIRRORS should be appended here so that a prepend
in other layers/conf files takes precedence.

Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
---
 meta/classes/own-mirrors.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/own-mirrors.bbclass b/meta/classes/own-mirrors.bbclass
index a777835..4cfd894 100644
--- a/meta/classes/own-mirrors.bbclass
+++ b/meta/classes/own-mirrors.bbclass
@@ -1,4 +1,4 @@
-PREMIRRORS_prepend = " \
+PREMIRRORS_append = " \
 cvs://.*/.*     ${SOURCE_MIRROR_URL} \n \
 svn://.*/.*     ${SOURCE_MIRROR_URL} \n \
 git://.*/.*     ${SOURCE_MIRROR_URL} \n \
--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH] own-mirrors.bbclass: Change prepend to append
@ 2018-03-09  1:06 Bhargava Sreekantappa Gayathri
  0 siblings, 0 replies; 7+ messages in thread
From: Bhargava Sreekantappa Gayathri @ 2018-03-09  1:06 UTC (permalink / raw)
  To: openembedded-core, manjukum; +Cc: Bhargava Sreekantappa Gayathri

If BB_NO_NETWORK is set to 1, and local download directory is added as
PREMIRRORS_prepend in conf file, PREMIRRORS variable will have
SOURCE_MIRROR_URL as the first url. This causes build to fail as network
access is diabled. PREMIRRORS should be appended here so that a prepend
in other layers/conf files takes precedence.

Signed-off-by: Bhargava Sreekantappa Gayathri <bhargava.sreekantappa-gayathri@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
---
 meta/classes/own-mirrors.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/own-mirrors.bbclass b/meta/classes/own-mirrors.bbclass
index a777835..4cfd894 100644
--- a/meta/classes/own-mirrors.bbclass
+++ b/meta/classes/own-mirrors.bbclass
@@ -1,4 +1,4 @@
-PREMIRRORS_prepend = " \
+PREMIRRORS_append = " \
 cvs://.*/.*     ${SOURCE_MIRROR_URL} \n \
 svn://.*/.*     ${SOURCE_MIRROR_URL} \n \
 git://.*/.*     ${SOURCE_MIRROR_URL} \n \
--
2.7.4

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-20 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09  1:49 [PATCH] own-mirrors.bbclass: Change prepend to append Bhargava Sreekantappa Gayathri
2018-03-09 13:26 ` Richard Purdie
2018-03-09 17:56   ` Manjukumar Harthikote Matha
2018-03-09 19:04     ` Richard Purdie
2018-03-20 20:26     ` Bhargava Sreekantappa Gayathri
  -- strict thread matches above, loose matches on Subject: below --
2018-03-09  1:54 Bhargava Sreekantappa Gayathri
2018-03-09  1:06 Bhargava Sreekantappa Gayathri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.