From patchwork Fri Jun 23 20:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Mery X-Patchwork-Id: 106286 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp388360qgd; Fri, 23 Jun 2017 13:25:19 -0700 (PDT) X-Received: by 10.98.158.138 with SMTP id f10mr10110445pfk.177.1498249519691; Fri, 23 Jun 2017 13:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498249519; cv=none; d=google.com; s=arc-20160816; b=EPAvi2FfH5SlR3nYJIVbJc2erlU1dsSl+WTviJ06mhQelOT95fyShxqCgZU7wx2I2v tKBjV/qrE79Ik+itbOwooE1f+12esrFtcJJt4X580ukj6pD+6Jof0yiGBvH/DCXjQHL3 Ji4QVEh+03BC1ypM5mWSpo7dgNeFCjXPKoX51XacrzgaBHrgn8KcayAAMH0qqaijROfE B6ytQm5/tWj73uMHCIg0KeUlv/PFgV5CjvflF8V1okCDI/nW5PbabmT9L58wd9qmu+Mw rXIaURvVz/6f6SbMu4ea4TZd/ywvvTRrqRA8cW+dP9SfucM+kE47XOkhGstwyeC5+8F3 NcRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :delivered-to:arc-authentication-results; bh=RuaO+GyliLRuWmrgaaz/YeCrpt/MhngQJV1+0yiHGrU=; b=fZx/6qutEyvbkhUpkrubH41x9+W36a8IUtM9V3YVlcam2h/pJzaWwWfL6/YhhLH/fL 5ZBI4nM/XTqLBJiQmdJvQK99FlEubTcEd6Jq866juSV4qjBkKBUFs5HMgq6ihhCAolx1 BX7aTV6yebq3V0SZVPoX7DiYMEiPdfOn10mjoh45xQ+rSakwa9h659IpVmBdQbnlxdrN tw+IuwjcTtEGRdJLFS78ioGETmwDo2Yp5EDomfAeoBFvJhMDN0XexmSEYZZlat1+S1iN Osl2rloq+HI9aW5NtlVO52adU1/kjdQJuDzlWEjapIrdaDzrEV7YT0IiBagavg+l2Jg3 GWnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r26si3885969pfa.462.2017.06.23.13.25.19; Fri, 23 Jun 2017 13:25:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id BE8D077FED; Fri, 23 Jun 2017 20:25:10 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail.hanoverdisplays.com (mail.hanoverdisplays.com [62.7.92.68]) by mail.openembedded.org (Postfix) with ESMTP id 1D56E781F2 for ; Fri, 23 Jun 2017 20:24:07 +0000 (UTC) Received: from localhost (192.168.0.21) by mail.hanoverdisplays.com (192.168.0.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 23 Jun 2017 21:24:07 +0100 From: Alejandro Mery To: Date: Fri, 23 Jun 2017 21:23:20 +0100 Message-ID: <20170623202324.69194-3-amery@hanoverdisplays.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170623202324.69194-1-amery@hanoverdisplays.com> References: <20170623202324.69194-1-amery@hanoverdisplays.com> MIME-Version: 1.0 X-Originating-IP: [192.168.0.21] X-GFI-SMTP-Submission: 1 X-GFI-SMTP-HelloDomain: localhost X-GFI-SMTP-RemoteIP: 192.168.0.21 Cc: Denys Dmytriyenko Subject: [oe] [meta-oe][morty][PATCH 2/6] devmem2: use different filename to avoid checksum conflicts X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Denys Dmytriyenko The newly resurrected devmem2.c file besides having a new location, also updates its header, producing different checksums, which would conflict with any previously cached or mirrored instances. To avoid such conflicts, use a different filename in fetch(). Rename it back to original name at unpack() for devmem2-fixups-2.patch to succeed w/o modifications. WARNING: devmem2-1.0-r7 do_fetch: Fetcher failure for URL: 'http://www.free-electrons.com/pub/mirror/devmem2.c'. Checksum mismatch! File: '/OE/master/downloads/devmem2.c' has md5 checksum be12c0132a1ae118cbf5e79d98427c1d when e23f236e94be4c429aa1ceac0f01544b was expected File: '/OE/master/downloads/devmem2.c' has sha256 checksum ec382c90af3ef2f49695ff14a4d6521e58ac482c4e29d6c9ebca8768f699c191 when 3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639 was expected If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe: SRC_URI[md5sum] = "be12c0132a1ae118cbf5e79d98427c1d" SRC_URI[sha256sum] = "ec382c90af3ef2f49695ff14a4d6521e58ac482c4e29d6c9ebca8768f699c191" Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified. WARNING: devmem2-1.0-r7 do_fetch: Renaming /OE/sources/devmem2.c to /OE/sources/devmem2.c_bad-checksum_be12c0132a1ae118cbf5e79d98427c1d Signed-off-by: Denys Dmytriyenko Signed-off-by: Martin Jansa --- meta-oe/recipes-support/devmem2/devmem2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.13.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb b/meta-oe/recipes-support/devmem2/devmem2.bb index c42eb5e0b..c86eb2e4b 100644 --- a/meta-oe/recipes-support/devmem2/devmem2.bb +++ b/meta-oe/recipes-support/devmem2/devmem2.bb @@ -3,12 +3,16 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf" PR = "r7" -SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c \ +SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \ file://devmem2-fixups-2.patch;apply=yes;striplevel=0" S = "${WORKDIR}" CFLAGS += "-DFORCE_STRICT_ALIGNMENT" +python do_unpack_append() { + os.rename("devmem2-new.c", "devmem2.c") +} + do_compile() { ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS} }