From patchwork Mon Oct 14 06:01:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: nomble@palism.com X-Patchwork-Id: 15723 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2D63E1759F; Mon, 14 Oct 2019 13:27:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A2D0B17530 for ; Mon, 14 Oct 2019 13:27:27 +0100 (BST) Received: from localhost ([::1]:48968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJzRf-0008Kf-2I for patchwork@mira.cbaines.net; Mon, 14 Oct 2019 08:27:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35405) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJtQm-0003EC-LG for guix-patches@gnu.org; Mon, 14 Oct 2019 02:02:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJtQk-0005hR-7z for guix-patches@gnu.org; Mon, 14 Oct 2019 02:02:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJtQj-0005gZ-Q9 for guix-patches@gnu.org; Mon, 14 Oct 2019 02:02:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJtQj-0006UV-Mh for guix-patches@gnu.org; Mon, 14 Oct 2019 02:02:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37741] [PATCH 1/3] gnu: u-boot: Update to 2019.10. Resent-From: nomble@palism.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Oct 2019 06:02:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37741 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37741@debbugs.gnu.org Cc: Vagrant Cascadian , Danny Milosavljevic , Caliph Nomble Received: via spool by 37741-submit@debbugs.gnu.org id=B37741.157103291724622 (code B ref 37741); Mon, 14 Oct 2019 06:02:05 +0000 Received: (at 37741) by debbugs.gnu.org; 14 Oct 2019 06:01:57 +0000 Received: from localhost ([127.0.0.1]:37668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtQa-0006Og-Qi for submit@debbugs.gnu.org; Mon, 14 Oct 2019 02:01:57 -0400 Received: from a2i315.smtp2go.com ([103.47.205.59]:59625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJtQV-0006Iz-9B for 37741@debbugs.gnu.org; Mon, 14 Oct 2019 02:01:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m9dnt0.a1-4.dyn; x=1571033811; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=eiYrUR0sY8QXN7bbplhOT51c1GkkJf/zhzWypMVKlZQ=; b=3E77C++Z WnaU7yEgrsLw6Bsva+GnDya28WojUIEFvaAzhYdaq6ePXPArrTDrrg0nLCPOXhAbMuBj7SKq5TTz7 kYTI6ILOiAMCp6VvgRQSAyAbrR3AxeQXMFFch06QxodSF+GqdeeM7KjUqeBnCxnW8+WCoICGwaw5S Q6bWxd5TVEoMtoI+vw5yqjk6rshIRraBuZMh0qxppU7d7V8z0uhcWJRkEuvR8IyG/6ipXIkmveLGq k9XDIKYgfW9O0NTCVeeDFYer6gHy9a1PLL/D9zRE6mZZWNDlpvNmjt+JAnIvVlukrR+KbjDskm3hx oIzwQVTd6pi290eLkkk/22I1NQ==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palism.com; i=@palism.com; q=dns/txt; s=s437609; t=1571032911; h=from : subject : to : message-id : date; bh=eiYrUR0sY8QXN7bbplhOT51c1GkkJf/zhzWypMVKlZQ=; b=d4CekvTEG2wgjrjzph/xjrcuAquk67wfIoTXilZU6B6uu+IonZTGCt5PmDd50X5SYXaayE zVYOYVfupgwl280vE1ll/7DODowP4irP01Yp8auUaMYgmS1CNx6g23hdkkYtJkRSowgjUkZP B3V5LP8VkkN5KJ7yQZUTT4BxoW/S0BOcURHm0OWUintbx+9noEl/htBXbAvpQntRNgX3bUX2 CHLWbSJFPMpZzVDQh8HikdsANprlsqpUSR6m4H8jeTei4/8uUs67nNx1eznWIJ4/5lTQbz/z C0AVFe5V3ftIJ7XTw86LBiJ7hP7Ex3ATacPNCeYw4cmQZ6FF2L18udPw== Received: from [10.176.58.103] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92-S2G) (envelope-from ) id 1iJtQT-pH9PbI-7k; Mon, 14 Oct 2019 06:01:49 +0000 Received: from [10.71.224.214] (helo=palism.com) by smtpcorp.com with esmtpa (Exim 4.92-S2G) (envelope-from ) id 1iJtQS-9EFQB9-2X; Mon, 14 Oct 2019 06:01:48 +0000 Received: from suleiman.europe (suleiman.panic [10.0.1.194]) by palism.com (Postfix) with ESMTPS id BE9DF3DB0A; Mon, 14 Oct 2019 02:01:45 -0400 (EDT) From: nomble@palism.com Date: Mon, 14 Oct 2019 02:01:05 -0400 Message-Id: <20191014060105.31091-1-nomble@palism.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191014001407.28367-1-nomble@palism.com> References: <20191014001407.28367-1-nomble@palism.com> MIME-Version: 1.0 X-Smtpcorp-Track: 1iJtQS9EFQU92b.pD9NUA-u- Feedback-ID: 437609m:437609aw1iaFX:437609s81ni0v7kx X-Report-Abuse: Please forward a copy of this message, including all headers, to X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-Mailman-Approved-At: Mon, 14 Oct 2019 08:20:33 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Caliph Nomble * gnu/packages/bootloaders.scm (u-boot): Update to 2019.10. [source]: Remove upstreamed patches. * gnu/packages/patches/u-boot-fix-mkimage-header-verification.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. Signed-off-by: Caliph Nomble --- gnu/local.mk | 1 - gnu/packages/bootloaders.scm | 7 +-- ...boot-fix-mkimage-header-verification.patch | 57 ------------------- 3 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 gnu/packages/patches/u-boot-fix-mkimage-header-verification.patch diff --git a/gnu/local.mk b/gnu/local.mk index 39b8e009b2..428708c9fe 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1371,7 +1371,6 @@ dist_patch_DATA = \ %D%/packages/patches/totem-meson-easy-codec.patch \ %D%/packages/patches/tuxpaint-stamps-path.patch \ %D%/packages/patches/txr-shell.patch \ - %D%/packages/patches/u-boot-fix-mkimage-header-verification.patch \ %D%/packages/patches/unzip-CVE-2014-8139.patch \ %D%/packages/patches/unzip-CVE-2014-8140.patch \ %D%/packages/patches/unzip-CVE-2014-8141.patch \ diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 520728b52c..91f27d2e38 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -400,7 +400,7 @@ tree binary files. These are board description files used by Linux and BSD.") (define u-boot (package (name "u-boot") - (version "2019.04") + (version "2019.10") (source (origin (method url-fetch) (uri (string-append @@ -408,10 +408,7 @@ tree binary files. These are board description files used by Linux and BSD.") "u-boot-" version ".tar.bz2")) (sha256 (base32 - "1vwv4bgbl7fjcm073zrphn17hnz5h5h778f88ivdsgbb2lnpgdvn")) - (patches - (search-patches - "u-boot-fix-mkimage-header-verification.patch")))) + "053hcrwwlacqh2niisn0zas95zkbffw5aw5sdhixs8lmfdq60vcd")))) (native-inputs `(("bc" ,bc) ("bison" ,bison) diff --git a/gnu/packages/patches/u-boot-fix-mkimage-header-verification.patch b/gnu/packages/patches/u-boot-fix-mkimage-header-verification.patch deleted file mode 100644 index 063677db4a..0000000000 --- a/gnu/packages/patches/u-boot-fix-mkimage-header-verification.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 48b52117235928cfd7ef1ec5c3f2cff5d7b03862 Mon Sep 17 00:00:00 2001 -From: Jordan Hand -Date: Wed, 10 Apr 2019 09:46:32 -0700 -Subject: [PATCH,v2] fdt: Fix mkimage list to try every header type -Origin: https://patchwork.ozlabs.org/patch/1083495/ - -Image type is not supplied to `mkimage -l`. For this reason, we cannot -use imagetool_verify_print_header_by_type. Instead, this patch uses -imagetool_verify_print_header to look through all header types to find -one where image validation succeeds. - -This patch fixes failures in test/image/test-imagetools.sh - -Signed-off-by: Jordan Hand -Tested-by: Alex Kiernan -Tested-by: Vagrant Cascadian ---- - tools/mkimage.c | 23 +++++++++++++++-------- - 1 file changed, 15 insertions(+), 8 deletions(-) - -diff --git a/tools/mkimage.c b/tools/mkimage.c -index 2899adff81..76c3406d37 100644 ---- a/tools/mkimage.c -+++ b/tools/mkimage.c -@@ -403,14 +403,21 @@ int main(int argc, char **argv) - exit (EXIT_FAILURE); - } - -- /* -- * scan through mkimage registry for all supported image types -- * and verify the input image file header for match -- * Print the image information for matched image type -- * Returns the error code if not matched -- */ -- retval = imagetool_verify_print_header_by_type(ptr, &sbuf, -- tparams, ¶ms); -+ if (params.fflag) { -+ /* -+ * Verifies the header format based on the expected header for -+ * image type in tparams -+ */ -+ retval = imagetool_verify_print_header_by_type(ptr, &sbuf, -+ tparams, ¶ms); -+ } else { -+ /** -+ * When listing the image, we are not given the image type. Simply check all -+ * image types to find one that matches our header -+ */ -+ retval = imagetool_verify_print_header(ptr, &sbuf, -+ tparams, ¶ms); -+ } - - (void) munmap((void *)ptr, sbuf.st_size); - (void) close (ifd); --- -2.20.1 -