From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6901236327051689984 X-Received: by 2002:ac2:434f:: with SMTP id o15mr927793lfl.297.1606822870785; Tue, 01 Dec 2020 03:41:10 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9895:: with SMTP id b21ls295311ljj.6.gmail; Tue, 01 Dec 2020 03:41:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoMGg5Mud/ocfFV2ejoXTd8wt7C3hcJvRK3ceeQECBr7hZ5A2mYWVbMzfk4lWV6/JJcLgf X-Received: by 2002:a2e:95c7:: with SMTP id y7mr1022891ljh.115.1606822869627; Tue, 01 Dec 2020 03:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606822869; cv=none; d=google.com; s=arc-20160816; b=qayug9BXPQGsz+HXdYAiUgNFyCeYUge9sT2rM74mXKcpXWflDydDngFkcKYn85oJ3M zYN5cJHhNMIPrPbYyDmLDZoTDQN+VCH1auVvJnbZsIyNq7D7vN+Izgujp5Gps/Vg77Nd k0ODZwn3CprkTCB2W8VmmWSMoDRv8X1L4bUFlPVD6g2U4eWGLyPsX9KDCsXGW14BZtSP jCaxScgCavJInbEPx8a7k/awK/dP9NvXCQuipKV8s6q/VyiubnuosN/qGvzXCDV95JJD zaW2WcWPP5mXd707tra8V+VSjAs3BJnSAZPfbpXuCPGMT6Z1t2QKLO70CKs3XaLiZE6+ UfVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=uAB2sRLy9h4aMNzcVrKXiHzTr09c7ubyb7q79MzmDM8=; b=y8HfBUc6PO9Fce7paXpHRxrI+W3OP05QqzUMeb0KzqdFmAt7C9jAVlEJM0ovLdVT3N sm0Fo4DryeKWWHAO5NY+c/OQCih5TsjRU+yqVz1PNdnYnCLV+ktVeN58eArHyhyqs+Xz /3MGr7ZOK/ALTqII2C+thxwxDGVTKxUrRRGuLK2uLLPsf4oHja4lmcqSdwC6MhN06iuu vSHedhlt6t9snD3PVo9xSmzTURz5jDoTFqibU9sWbh05ubsf2VMCWhGAfkLMd8IecBjL K93k+tSYYXNDuGVrCdwcJTlI3A2SKm/+QacYHGYLhcSc5uahJTyFXkNLWFkFs+m1qY8I 20Yg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id b26si36378lfc.12.2020.12.01.03.41.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2020 03:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 0B1Bf84d007517 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 1 Dec 2020 12:41:08 +0100 Received: from [167.87.33.175] ([167.87.33.175]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 0B1Bf8Hm014375; Tue, 1 Dec 2020 12:41:08 +0100 Subject: Re: do_adjust_git in dpkg-base.bbclass not working for gitsm fetcher To: "[ext] Raphael Lisicki" , isar-users@googlegroups.com References: From: Jan Kiszka Message-ID: Date: Tue, 1 Dec 2020 12:41:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 08inG0Lh/imo On 01.12.20 11:41, [ext] Raphael Lisicki wrote: > Hi, > > the function do_adjust_git does not work if the fetcher has been set to > "gitsm" which is required if the project contains git submodules. > > See > https://github.com/siemens/isar/blob/master/meta/classes/dpkg-base.bbclass#L26 > > > This will cause the .git/objects/info/alternates remain unmodified, > which in turn breaks git from inside the buildchroot. From https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-manual.html#gitsm-fetcher: "The Git Submodules fetcher is not a complete fetcher implementation. The fetcher has known issues where it does not use the normal source mirroring infrastructure properly. [...]" For that reason already, I would strongly discourage the use of this fetcher. And that's why it was never tested with Isar (to my best knowledge). In general, git submodules are hairy. And specifically in the context of distro (like Debian), their presence indicate that you rather want them as "Build-Depends" and properly packaged. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux