Return-Path: Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by mail.openembedded.org (Postfix) with ESMTP id 87AB179357 for ; Mon, 15 Oct 2018 11:44:14 +0000 (UTC) Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 34AB05C1F84; Mon, 15 Oct 2018 13:44:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1539603854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vPL77QgoAycx1IopqrTl0p/dwph6Blwh5kiThh05kGU=; b=iKZPUMs92Dl40BLHq0gIl8cfzEJC0BN9eS/itxKJTUZBRo7lak22XoAdC8U4zVTsDX+hXs Qa5YClYZO/ZpsAvAnLZtfUi0Xs0ms+PnWG3nolskE5/UYjyrmr46tyRdSHBwJ2o/I/y3Vg dasw7GZgqQTXh0n8fPImrP3ekIxCk2w= MIME-Version: 1.0 Date: Mon, 15 Oct 2018 13:44:12 +0200 From: Stefan Agner To: Mark Hatle In-Reply-To: <3d35695a-93ea-75ed-41e5-76b2a4738082@windriver.com> References: <69b4b130-96b1-cea3-f4ec-b22e9777397b@here.com> <4184b6d1-6531-5011-4087-61bf5e0fc761@windriver.com> <3d35695a-93ea-75ed-41e5-76b2a4738082@windriver.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Cc: bitbake-devel@lists.openembedded.org Subject: Re: git submodule fetcher regression X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 11:44:15 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12.10.2018 16:50, Mark Hatle wrote: > On 10/12/18 8:50 AM, Stefan Agner wrote: >> Hi Mark, Hi Laurent, >> >> On 05.10.2018 10:38, Bonnans, Laurent wrote: >>> Hello Stefan, >>> >>> >>> On 10/04/2018 06:58 PM, Mark Hatle wrote: >>>> On 10/4/18 11:45 AM, Stefan Agner wrote: >>>>> I guess you refer to: >>>>> fetch2/gitsm: checkout submodules recursively >>>>> fetch2/gitsm: handle submodules nested inside subdirs >>>>> >>>>> WARNING: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Failed to fetch URL gitsm://github.com/cajun-rat/HdrHistogram_c;protocol=https;name=third_party/HdrHistogram_c;bareclone=1;nocheckout=1, attempting MIRRORS if available >>>>> ERROR: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Fetcher failure: Unable to find revision 0b778a98c90ce55285cb1cb6fe50e2b25dfd57ae in branch master even from upstream >>>>> WARNING: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Failed to fetch URL gitsm://github.com/advancedtelematic/aktualizr;branch=master, attempting MIRRORS if available >>>>> ERROR: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Fetcher failure for URL: 'gitsm://github.com/cajun-rat/HdrHistogram_c;protocol=https;name=third_party/HdrHistogram_c;bareclone=1;nocheckout=1'. Unable to fetch URL from any source. >>>>> ERROR: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Fetcher failure for URL: 'gitsm://github.com/advancedtelematic/aktualizr;branch=master'. Unable to fetch URL from any source. >>>>> ERROR: aktualizr-1.0+gitAUTOINC+a94a15e31f-7 do_fetch: Function failed: base_do_fetch >>>>> ERROR: Logfile of failure stored in: /home/ags/oe/build-colibri-imx7/tmp-tordy/work/armv7at2hf-neon-lmp-linux-gnueabi/aktualizr/1.0+gitAUTOINC+a94a15e31f-7/temp/log.do_fetch.41673 >>>>> ERROR: Task (/home/ags/oe/build-colibri-imx7/conf/../../layers/meta-updater/recipes-sota/aktualizr/aktualizr_git.bb:do_fetch) failed with exit code '1' >>>>> >>>>> (I am using meta-updater c4902394cc6673b07ad5ee87570e02afbdf7b022 and bitbake master-next as of now) >>>>> >>>>> I did use -c cleanall before, which hopefully should be sufficient? >>> This should be solved in meta-updater >>> 8a44c8a26966d0cb9b57ea1ef4c6f25c2a944dd8 and beyond. I believe it's the >>> same issue reported by Jens Rehsack on Oct 1. >>> We had a simple workaround in this case, so we did not investigate the >>> core bitbake issue at that time. >>>> If you are still having issues from master-next (bitbake), can you distill down >>>> a reproducer recipe? >>>> >>>> All it takes is a minimal recipe with a SRC_URI line that used to work for you >>>> through the do_unpack stage. (I don't care about anything after do_unpack...) >>>> >>>> typical reproducer may look like YP Bug 12941: >>>> >>>> SUMMARY = "Library to access Blu-Ray disk" >>>> SECTION = "misc" >>>> HOMEPAGE = "http://videolan.org" >>>> LICENSE = "GPLv2" >>>> LIC_FILES_CHKSUM="file://COPYING;md5=435ed639f84d4585d93824e7da3d85da" >>>> >>>> DEPENDS = "libxml2" >>>> >>>> SRC_URI = "gitsm://git.videolan.org/libbluray.git" >>>> >>>> SRCREV = "${AUTOREV}" >>>> >>>> >>>> --Mark >>>> >>>> >>> Hello Mark, here is a short reproducer (aktualizr.bb) >>> >>> >>> SUMMARY = "Aktualizr SOTA Client" >>> DESCRIPTION = "SOTA Client application written in C++" >>> HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" >>> SECTION = "base" >>> LICENSE = "MPL-2.0" >>> LIC_FILES_CHKSUM = >>> "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" >>> >>> PV = "1.0+git${SRCPV}" >>> >>> SRC_URI = " \ >>>   gitsm://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ >>>   " >>> SRCREV = "79246b930a1b5b6f956b69f74f1f0c62060061df" >>> BRANCH ?= "master" >>> >>> >>> Then, `aktualizr -c unpack` fails with the same error Stefan described. >>> >>> The root cause is this submodule declaration: >>> >>> [submodule "third_party/HdrHistogram_c"] >>>     path = third_party/HdrHistogram_c >>>     url = https://github.com/cajun-rat/HdrHistogram_c >>> >>> Which is set to the commit 0b778a98c90ce55285cb1cb6fe50e2b25dfd57ae, >>> current HEAD of the branch `fix-const-cast` but not merged in >>> cajun-rat's master. >>> >>> Please let me know if you need more details. >>> >>> >>> Also, while investigating these issues, I noticed that `cleanall` now >>> does not remove the fetched submodules like it would be expected. So, >>> running `fetch` again only download the main project and will reuse >>> cached submodules repositories if up to date. >> >> Any update on this? > > I don't have an immediate solution for the clear issue. I'm hoping someone else > might have an idea there. Sorry, I meant the issue above, where fetching fails... Fetching that hash used to work before the gitsm rework, so this is a regression... -- Stefan > > Since there repository is up-to-date (it has the commit id of what the submodule > wants) it should be safe for most users, unless they truly need to refetch for > another reason. > > I'd consider this a low priority issue, but definitely a bug. > > --Mark > >> Still the case in bitbake master-next... >> >> -- >> Stefan >>