[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OSSTEST PATCH] ts-xen-build-prep: Grab newer NASM version, to build OVMF
- To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 13 May 2022 16:39:57 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oWgBO5xpKQai5Se+hdg6PjkOYmQz29aCA/m7AfbHJ6w=; b=oEfEPxVuXMANHkBy3uTyZjmU/aKr7UsXNUvIGfZclVhqN6Yb1EWk2IKJCsYw/TjCg7XDZvA0Z09wGv7I4OrPwgnlCkILh4sQlDJKVTet7Ciwwne0MQkVAod9dudOWWUvAUA8mLl+Jcp/spjdKnHeGzHMwptDh6r76w0w7s3s76O3JEM3qo+ovI6ZgnHrmmOO7gjpBiAGKpd6JhKpaonqMEEyxJJ5r0RZ2cV7AqkwtwIWW5qznzW9pClpFUxo9fvR+atPtiTpIV8d6lT3ygvEl5Pw+nj4EnfJ2QAUpv7lQi8iWmNuZgiYqOphbqIWNMSxjibUkfziDclDKUBjnGDvJQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X8AzFF4VDpnzzvZ5xctK+c8MrPDalgqk16bm4d4bxvHFtEEbRRmtoEVJiJM2jIdHsclfyY9AOA1jNIh1gk4krhGZogYiNaDw4ipbu0x6nWtMTBjjATH5w6xo5o8Hr1KhGe8GIl/pmWAVQg70Msce0auKopjx0HaZtLc8Ji3zpSOmBeVAiSrp9YIDFYmib2QHsKXHjuF2VdFOrSfJZu8VgNEUtLu4dBy4IlFK+9Obo03k+C+RZGGxpfmt4hVCAy7A2pc7X7ZK6d8Kinfrrrk3e4C4sVy2siUpzObaM3pyY08YjE0HI1EN75LCrmcGsOk17PIZdRmjrtZxALiyc7yWGQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Ian Jackson <iwj@xxxxxxxxxxxxxx>
- Delivery-date: Fri, 13 May 2022 14:40:12 +0000
- Ironport-data: A9a23:vz6CLa614cic1detBhRvGAxRtFvGchMFZxGqfqrLsTDasY5as4F+v mUZXW6APfmLYWbzKt0jbIu0pkxT6pDUmtJhSlNqqis8Hi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuVGuG96yE6j8lkf5KkYAL+EnkZqTRMFWFw0HqPp8Zj2tQy2YXgWFvX0 T/Pi5a31GGNimYc3l08s8pvmDs31BglkGpF1rCWTakjUG72zxH5PrpGTU2CByKQrr1vNvy7X 47+IISRpQs1yfuP5uSNyd4XemVSKlLb0JPnZnB+A8BOiTAazsA+PzpS2FPxpi67hh3Q9+2dx umhurSTDis3eaL8ld8EaF4FCAR3Op9bo5HYdC3XXcy7lyUqclPK6tA3VAQTAtdd/ex6R2ZT6 fYfNTYBKAiZgP67y666Te8qgdk/KM7sP8UUvXQIITPxVK56B8ycBfiXo4YAgF/chegXdRraT 9AeZjd1KgzJfjVEO0sNCYJ4l+Ct7pX6W2IB8g3N9PZui4TV5DxNk4r0Gf3pRvK1eP1ExHaio yHfpmusV3n2M/Tak1Jp6EmEluLJ2C/2Ro8WPLm57eJxxk2ewHQJDx8bXkf9puO24ma/RNB3O 0ES4jApr6U56AqsVNaVYvGjiHuNvxpZXsUKFeQ/sVmJ0vCNu1rfAXUYRDlcbtBgrNUxWTEhy l6OmZXuGCBrt7qWD3ma8994sA+PBMTcFkdaDQdscOfPy4CLTF0b5v4XcuteLQ==
- Ironport-hdrordr: A9a23:fi67Va3SAEzlonbLJf2MRAqjBS5yeYIsimQD101hICG9Lfb0qy n+pp4mPEHP4wr5OEtOpTlPAtjkfZr5z+8M3WBxB8baYOCCggeVxe5ZjbcKrweQeBEWs9Qtrp uIEJIOdOEYb2IK6voSiTPQe7hA/DDEytHPuQ639QYRcegAUdAF0+4WMHf4LqUgLzM2f6bRWa DskPZvln6FQzA6f867Dn4KU6zqoMDKrovvZVojCwQ84AeDoDu04PqieiLolis2Yndq+/MP4G LFmwv26uGKtOy68AbV0yv2445NkNXs59NfDIini9QTKB/rlgG0Db4REoGqjXQQmqWC+VwqmN 7Dr1MJONly0WrYeiWPrR7ky2DboUMTwk6n7WXdrWrooMT/Sj5/IdFGn5hlfhzQ7FdllM1g0Y pQtljp+6Z/PFflpmDQ9tLIXxZlmg6funw5i9MeiHRZTM83dKJRl4oC50lYea1wUR4S0LpXXt WGMfuspcq/KTihHjDkVyhUsZaRt00Ib1i7qhNogL3X79BU9EoJvXfwivZv3Evoz6hNNaWs19 60TZiAq4s+P/P+TZgNcNvpEvHHfVAkf3r3QRKvCGWiMp07EFTwjLOyyIkJxYiRCe81Jd0J6d /8bG8=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Fri, May 13, 2022 at 02:35:34PM +0100, Anthony PERARD wrote:
> Recent versions of OVMF now need a version of NASM that is newer
> than the one available on Debian oldstable/buster. They want to use
> NASM 2.15.05 [1], which is available in Debian stable/bullseye. The
> need to use a newer version started with d3febfd9ade3 ("MdePkg:
> Replace Opcode with the corresponding instructions.").
>
> There is no backport package available but the nasm package from
> Debian Bullseye can easily be installed on Buster as it has few
> dependencies and are already satisfied.
>
> [1]
> https://github.com/tianocore/edk2/commit/6a890db161cd6d378bec3499a1e774db3f5a27a7
> ("BaseTools: Upgrade the version of NASM tool")
>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> ---
> ts-xen-build-prep | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/ts-xen-build-prep b/ts-xen-build-prep
> index 67b3eae62155..38d4a8e79451 100755
> --- a/ts-xen-build-prep
> +++ b/ts-xen-build-prep
> @@ -250,6 +250,15 @@ END
> if ($ho->{Arch} eq 'amd64' && $ho->{Suite} !~ m/squeeze|lenny/) {
> target_install_packages($ho, 'libc6-dev-i386');
> }
> +
> + # Use newer version of NASM, for OVMF
> + if ($ho->{Suite} =~ m/buster/) {
> + my $nasm_pkg = "nasm_2.15.05-1_$ho->{Arch}.deb";
> + my $nasm_url = debian_mirror_url_suite_arch("bullseye", $ho->{Arch})
> + ."/pool/main/n/nasm/$nasm_pkg";
> + target_fetchurl($ho, $nasm_url, "/tmp/$nasm_pkg");
I think this is likely too fragile, what will happen when the package
gets bumped to a newer version?
I think we need to store a local copy in osstest and install from
there instead of trying to fetch from the upstream Debian mirror.
I guess we could use something similar to DebianExtraPackages?
DebianExtraPackages_build_$arch_$suite nasm_2.15.05-1_$ho->{Arch}.deb
And fetch those using the some_extradebs method.
Thanks, Roger.
|