From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADAB3C433E2 for ; Sun, 24 May 2020 02:15:43 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 677C020759 for ; Sun, 24 May 2020 02:15:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 677C020759 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=zx2c4.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ce5a732a; Sun, 24 May 2020 02:00:03 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 23 May 2020 19:41:41 -0600 References: In-Reply-To: Message-ID: Subject: Re: Adding Debian, Ubuntu, OpenSUSE, RHEL, CentOS kernels to WireGuard CI: Seeking URLs From: "Jason A. Donenfeld" To: Neal Gompa Cc: unit193@ubuntu.com, Daniel Kahn Gillmor , Andy Whitcroft , Ubuntu Kernel Team , Martin Hauke , Joe Doss , WireGuard mailing list , Carl George Content-Type: text/plain; charset="UTF-8" X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" On Sat, May 23, 2020 at 7:10 PM Jason A. Donenfeld wrote: > > On Sat, May 23, 2020 at 6:21 PM Neal Gompa wrote: > > > > On Sat, May 23, 2020 at 8:01 PM Jason A. Donenfeld wrote: > > > > > > On Sat, May 23, 2020 at 5:50 AM Neal Gompa wrote: > > > > > > > > On Sat, May 23, 2020 at 3:21 AM Jason A. Donenfeld wrote: > > > > > > > > > > Hi Neal, > > > > > > > > > > Thanks for these very helpful instructions. In trying to implement > > > > > this, one snag I encountered was that the .src.rpm file has inside of > > > > > it the linux-{version}.tar.xz file that I actually want. Is there > > > > > anywhere on the internet that hosts these .tar.xz files directly? > > > > > > > > > > > > > There *is*, but that starts getting into using the CentOS Git system > > > > more directly. Per your original email, you weren't interested in that > > > > path, so I didn't go there. > > > > > > Well, one trick is that most web git viewers (such as cgit) can > > > produce a tarball on the fly from a URL. Something like this exist > > > here? > > > > So, CentOS uses a Dist-Git[1] system, which means the part that is > > actually tracked in git is the packaging files, and there's an > > associated binary repo reference stored in the Git repo for fetching > > binary artifacts. Dist-Git is the common ancestor to virtually all > > current approaches to storing binaries efficiently alongside a Git > > repo (Git-Annex and Git LFS came much later). > > > > It seems it's possible to do this without having to use Git itself > > (which is better than with git-annex and git-lfs), but it's a bit > > cumbersome... > > > > The way that you'd fetch the tarball in this scenario would be to > > something like the following: > > > > 1. Get the tags via API, but with commits: > > > > $ curl --silent --header "Content-Type: application/json" \ > > https://git.centos.org/api/0/rpms/kernel/git/tags?with_commits=true \ > > | jq '.["tags"] ' > > > > This gives you now a JSON dictionary with the tags as keys and the > > associated commit as values. > > > > 2. Get the corresponding commit and fetch the .kernel.metadata file > > containing the lookaside references: > > > > $ curl --silent > > https://git.centos.org/rpms/kernel/raw/${kernel_tag_commit}/f/.kernel.metadata \ > > > kernel_sources > > > > 3. Fetch the source matching to your kernel source package: > > > > $ wget https://git.centos.org/sources/kernel/${rel}/${kernel_src_checksum} \ > > --output-document=${kernel_src_filename} > > > > The $kernel_src_checksum and $kernel_src_filename would be populated > > from the entries in the kernel_sources files you downloaded earlier. > > > > Note: $rel is either "c7" or "c8" depending on which one you're trying to get. > > > > > > [1]: https://github.com/release-engineering/dist-git > > Perfect, thanks. CentOS kernels are now on > https://www.wireguard.com/build-status/ , though el7 is having build > issues. c7 issue: https://bugzilla.redhat.com/show_bug.cgi?id=1839419 c8 issue: https://bugzilla.redhat.com/show_bug.cgi?id=1839415 c8s issue: https://bugzilla.redhat.com/show_bug.cgi?id=1839421 I've hacked around the c8 issue in the build system, but the c7 and c8s issues will need to be fixed by Red Hat.