Skip to contentSkip to conversation

documentation: update sources mirror URL

PATCH In review Jon Mason 4 participants 9 messages Oct 5, 2021 – Oct 7, 2021 1 message not in the archive

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/2 documentation: update sources mirror URL

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +8 -7
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
 
 These changes cause the build system to intercept Git, FTP, HTTP, and
 HTTPS requests and direct them to the ``http://`` sources mirror. You
@@ -342,9 +342,10 @@ You could make the following changes to the ``local.conf`` configuration
 file as long as the :term:`PREMIRRORS` server is current::
 
    PREMIRRORS:prepend = "\
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
    BB_FETCH_PREMIRRORONLY = "1"
 
 These changes would cause the build system to successfully fetch source
documentation/ref-manual/variables.rst +4 -4
index 5f6f91146bf0..97782d8ec7ed 100644
@@ -5838,10 +5838,10 @@ system and gives an overview of their function and contents.
       :term:`Build Directory`::
 
          PREMIRRORS:prepend = "\
-             git://.*/.* http://www.yoctoproject.org/sources/ \n \
-             ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-             http://.*/.* http://www.yoctoproject.org/sources/ \n \
-             https://.*/.* http://www.yoctoproject.org/sources/ \n"
+             git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+             ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+             http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+             https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
 
       These changes cause the
       build system to intercept Git, FTP, HTTP, and HTTPS requests and
Signature · 1 line
2.20.1
author
#1 lore raw

PATCH 2/2 bitbake: bitbake-user-manual: update sources mirror URL

The URL for the sources mirror no longer works. Update to the new location.

---
 .../bitbake-user-manual-ref-variables.rst                 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +4 -4
index 8862e16b83cb..11f8fdcde003 100644
@@ -1123,10 +1123,10 @@ overview of their function and contents.
       your configuration::
 
          PREMIRRORS:prepend = "\
-         git://.*/.* http://www.yoctoproject.org/sources/ \n \
-         ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-         http://.*/.* http://www.yoctoproject.org/sources/ \n \
-         https://.*/.* http://www.yoctoproject.org/sources/ \n"
+         git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+         ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+         http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+         https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
 
       These changes cause the build system to intercept Git, FTP, HTTP, and
       HTTPS requests and direct them to the ``http://`` sources mirror. You can
Signature · 1 line
2.20.1
#2 lore raw
In reply to Jon Mason

Hi Jon

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

Thanks again,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#3 lore raw
Quoted 38 lines · Michael Opdenacker

Hi Jon

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Quoted 3 lines

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

Also, looking at documentation/profile-manual/usage.rst (where most of the occurrences in the docs are), shouldn't we have a newer kernel than 2.6.19.2 as an example? I mean, it's almost 15 years old.

Thanks,
Jon

Quoted 8 lines

Thanks again,
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#4 lore raw
Quoted 44 lines · Jon Mason
Quoted 38 lines · Michael Opdenacker

Hi Jon

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Quoted 3 lines

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

Quoted 8 lines

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

Also, looking at documentation/profile-manual/usage.rst (where most of the occurrences in the docs are), shouldn't we have a newer kernel than 2.6.19.2 as an example? I mean, it's almost 15 years old.

Careful, some of us remember working on the 2.6.19 kernel and have patches in it :)

I don't think we've worried too much about http vs https for the downloads as they are checksumed but it is probably cleaner just to convert them.

Cheers,

Richard

author
#5 lore raw
Quoted 55 lines · Richard Purdie
Quoted 44 lines · Jon Mason
Quoted 38 lines · Michael Opdenacker

Hi Jon

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Quoted 3 lines

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

Quoted 8 lines

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

Also, looking at documentation/profile-manual/usage.rst (where most of the occurrences in the docs are), shouldn't we have a newer kernel than 2.6.19.2 as an example? I mean, it's almost 15 years old.

Quoted 5 lines

Careful, some of us remember working on the 2.6.19 kernel and have patches in it :)

I don't think we've worried too much about http vs https for the downloads as they are checksumed but it is probably cleaner just to convert them.

It's a fool's errand, and I'm just the fool to do it. Changes all over the place, broken URLs, etc. Patches coming shortly (as soon as my sanity tests make sure I didn't break anything obvious).

Thanks,
Jon

Quoted 9 lines

Cheers,

Richard

#6 lore raw

Hi Jon,

Quoted 12 lines · Jon Mason
Quoted 10 lines · Richard Purdie
Quoted 8 lines · Jon Mason
Quoted 6 lines · Michael Opdenacker

Hi Jon

Thanks for the proposed update !

On 10/6/21 12:45 AM, Jon Mason wrote:

[...]

Quoted 12 lines
Quoted 12 lines
Quoted 8 lines

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

Also, looking at documentation/profile-manual/usage.rst (where most of the occurrences in the docs are), shouldn't we have a newer kernel than 2.6.19.2 as an example? I mean, it's almost 15 years old.

Careful, some of us remember working on the 2.6.19 kernel and have patches in it :)

Quoted 7 lines
Quoted 2 lines

I don't think we've worried too much about http vs https for the downloads as they are checksumed but it is probably cleaner just to convert them.

It's a fool's errand, and I'm just the fool to do it. Changes all over the place, broken URLs, etc. Patches coming shortly (as soon as my sanity tests make sure I didn't break anything obvious).

For non-literal blocks (where extlinks aren't replaced), please use :yocto_dl: to replace downloads.yoctoproject.org :)

Thanks!
Quentin

#7 lore raw
In reply to Richard Purdie

Hi,

Quoted 36 lines · Richard Purdie
Quoted 35 lines · Jon Mason
Quoted 35 lines

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

OK to do it as a follow-up patch. This way, I can already take yours (at least the ones for yocto-docs, which I maintain).

Quoted 6 lines
Quoted 4 lines

Also, looking at documentation/profile-manual/usage.rst (where most of the occurrences in the docs are), shouldn't we have a newer kernel than 2.6.19.2 as an example? I mean, it's almost 15 years old.

Careful, some of us remember working on the 2.6.19 kernel and have patches in it :)

I can take care of this one too.

Quoted 3 lines

I don't think we've worried too much about http vs https for the downloads as they are checksumed but it is probably cleaner just to convert them.

Agreed, but let's do it as a follow-up patch.

Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
Quoted 40 lines · Michael Opdenacker

Hi,

Quoted 37 lines · Richard Purdie
Quoted 36 lines · Jon Mason
Quoted 36 lines

Thanks for the proposed update !

Quoted 15 lines · Jon Mason

The URL for the sources mirror no longer works. Update to the new location.

---
 documentation/ref-manual/faq.rst       | 15 ++++++++-------
 documentation/ref-manual/variables.rst |  8 ++++----
 2 files changed, 12 insertions(+), 11 deletions(-)
documentation/ref-manual/faq.rst +0 -0
index d3a603d4a438..f06abc84ee6f 100644
@@ -302,10 +302,10 @@ attempt before any others by adding something like the following to the
 ``local.conf`` configuration file::

documentation/ref-manual/faq.rst attempt before any others by adding something like the following to the · line 308

Quoted 10 lines
documentation/ref-manual/faq.rst +4 -4
 
    PREMIRRORS:prepend = "\
-       git://.*/.* http://www.yoctoproject.org/sources/ \n \
-       ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
-       http://.*/.* http://www.yoctoproject.org/sources/ \n \
-       https://.*/.* http://www.yoctoproject.org/sources/ \n"
+       git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+       https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"

Hey, doesn't it sound weird to show an example that proposes to use http when https is usually recommended?
What about proposing https://downloads.yoctoproject.org/mirror/sources/
instead?

Or we don't really care because we use source checksums anyway?

Just my two cents. I don't mind accepting the patch as is.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

A quick and dirty grep of the trees shows many occurrences of downloads.yoctoproject.org without https. Perhaps it would be good to correct all of these in a follow-on patch. I can do a quick patch of all of these and get that out in the next day or so.

OK to do it as a follow-up patch. This way, I can already take yours (at least the ones for yocto-docs, which I maintain).

Merged your first patch into master-next. If you make a follow-up patch to replace "http" by "https" (I could do that if you wish), that's better if you base it on master-next.

Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com