Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id E95BE79BB0 for ; Fri, 12 Oct 2018 14:51:43 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w9CEoJKi032754 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 12 Oct 2018 07:50:40 -0700 Received: from soho-mhatle-m.local (172.25.36.227) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.408.0; Fri, 12 Oct 2018 07:50:11 -0700 To: Stefan Agner , "Bonnans, Laurent" References: <69b4b130-96b1-cea3-f4ec-b22e9777397b@here.com> <4184b6d1-6531-5011-4087-61bf5e0fc761@windriver.com> From: Mark Hatle Openpgp: preference=signencrypt Autocrypt: addr=mark.hatle@windriver.com; prefer-encrypt=mutual; keydata= xsBNBFYKxFgBCACt/pzutBp6p/xVKTFJjHbM3KpQKCblyot/YP+bpTr51Hrc5xDXBQhoG7TC aIRvRIvbhEevEQK9y04gW3JK/5lobq5ORebolcsHlYBUvpNeIPjupLQwGvz/TPtrLRNGLqDC rvsM6OA2XbQ2bwzxWaSQS3ImE2O2iXOZn9HhThMGeDB4Nff3fgUvXOTDIrgWOn9K2DgLL7Yc zkUIlFdj+Nraksd/7BSk8oH6tjeBVhFqSFvKta9QxWgdr58oPaTYaW/xNqUjlLrbJuMw/MSe xzuYfdfDfm6J8kRjMOnwQ0n8svJElzqAk+d83ow38gpGQ+LkjGgnf8ZFJ4rUJFADroX3ABEB AAHNJU1hcmsgSGF0bGUgPG1hcmsuaGF0bGVAd2luZHJpdmVyLmNvbT7CwHcEEwEIACEFAlYK xFgCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQfv796/r0vvlvZAf9Gs+eN320yhRW V/fZCsngKhmOK4v3HrTwFrkSmoD9QHQiE/5IPdNacHwIPwZx07tNBohB8xOeNqCPRYRBwGhA AnxKOPyd0nnm6ZhPzbA57v4x3IGRQr4QzvcBTASJq91l3Ew4lpAslyx5w1DPPqRD7G8ycDKg peKyDwmdkvCunVisSAQI3XIMq2y230biTO98tDPEezg+lg+yTsz9ZT33F5KNuWrpf8VL5fG/ mt+kAv7wtsx/KTRbqhH3iFXF6eBSwMjAfTXFlkLfbM9riJGXrWEl9n2S2R3cDHNHug0lb8f4 whK370KEO4OwRKIYW/VUBmzk5XZUE9DTlDSV8ycsrs7ATQRWCsRYAQgAwK3FuHCE+HW3YWdH PUjeSn5p//xJ57u8g2rng8zm9zNjmYgpPv5UxozaD9i2jf4mlQLHGGOezhHae8K4Nj70oVcv 8AmwcrJa9i9WL1oy/9R3fHMWf/Ctt9VXTO0qlCuq6PDzaUfvsXR61aJIjTKNQTOjCLjY1vXm VSewUgARysmA8WrjTfwGBihMBxAX0+kIjx8nOlam0WvekMBXZ0AbS56oTLRxYao6DI3GeB/N oWPy/5DfuTKaSdM0Pf8al20x9RuNN5/HLMlyDH/k8bIa1xd9aAqW+Feiw5gC107V2E6ULyIy q6em2UrsmIRxrvpHqbNgQKqvTehJ+V/i4g/uOwARAQABwsBfBBgBCAAJBQJWCsRYAhsMAAoJ EH7+/ev69L755XAH/3ZcNhooqd9OBhFkvXm1iWZ8EoC7motWqVn2oEyxoonsg8AD9kFXiN+T dYp7dH99EZu9q4ptj56AXm4uHzOgywL/5/V2TY6twCGAjUGzDjAB5gzoi+JLIBlDiyOip0eL QswIhRk473xy3j8DA4oVamnSPWgyNJ+qsdt37YWDzoDFFvtDoRU7Eb+znfIMDKzlny0XU/8L cW1bNHJlpv/78GPdfP4tjysEd8MuA5jf5o5w4XqcwTqalffEJtQ/s3pbkstEi7qm5uPui5Kt gq6YYLSqcSNe0GWAF9/T+qwyo7burSTxUWCWtMmlXdAQLW9SynLhB3Jbch0nFAh0fCKi6yY= Organization: Wind River Systems Message-ID: <3d35695a-93ea-75ed-41e5-76b2a4738082@windriver.com> Date: Fri, 12 Oct 2018 09:50:10 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: 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: Fri, 12 Oct 2018 14:51:44 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit 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. 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 >