Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Migrate libyang2 sources download from wget to dget (#13504) #13517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guillaumelambert
Copy link
Contributor

According to its manual page,
"[dget in its] first form, [..] fetches the requested URLs. If this is a .dsc or .changes file, then dget acts as a source-package
aware form of wget: it also fetches any files referenced in the
.dsc/.changes file.
The downloaded source is then checked with dscverify and, if successful, unpacked by dpkg-source."

Thus, when possible, dget use is preferable to wget so that sources authenticity can be performed automatically by dscverify"

Previous commit in PR #13394 has been removed
because it switched the debian repository from its mirror in SONiC at https://sonicstorage.blob.core.windows.net
to debian official repository at https://deb.debian.org/debian/pool/main/liby/libyang2/

This version of the package was in debian testing and after having taken a look at the repo content
at https://deb.debian.org/debian/pool/main/liby/libyang2/ it appears it was removed from the official distribution.
and superseded by a more recent version 2.1.30.

This new commit restores the URL at the mirror
dget https://sonicstorage.blob.core.windows.net/debian/pool/main/liby/libyang/libyang2_2.0.112-6.dsc
to address the following issue #13504

Note that debian-keyring must be installed on your system to run this command that performs a signature verification,
what is not the case by default in Ubuntu.
$ sudo apt-get install debian-keyring

Which release branch to backport (provide reason below if selected)

all branches using libyang2 sources

Description for the changelog

[build] Migrate libyang2 sources download from wget to dget

A picture of a cute animal (not mandatory but encouraged)

                  .".
                 /  |
                /  /
               / ,"
   .-------.--- /
  "._ __.-/ o. o\  
     "   (    Y  )
          )     /
         /     (
        /       Y
    .-"         |
   /  _     \    \ 
  /    `. ". ) /' )
 Y       )( / /(,/
,|      /     )
( |     /     /
 " \_  (__   (__        [nabis]
      "-._,)--._,)

…t#13394)

According to its manual page,
"[dget in its] first form, [..] fetches the requested URLs.
If this is a .dsc or .changes file, then dget acts as a source-package
 aware form of wget: it also fetches any files referenced in the
.dsc/.changes file.
The downloaded source is then checked with dscverify and,
if successful, unpacked by dpkg-source."

Thus, when possible, dget use is preferable to wget so that sources
authenticity can be performed automatically by dscverify"

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
@guillaumelambert guillaumelambert changed the title [build] Migrate libyang2 sources download from wget to dget (#13394) [build] Migrate libyang2 sources download from wget to dget (#13504) Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants