From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6798139016226013184 X-Received: by 2002:adf:a30a:: with SMTP id c10mr29431031wrb.175.1583854583455; Tue, 10 Mar 2020 08:36:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:208f:: with SMTP id g137ls515906wmg.1.gmail; Tue, 10 Mar 2020 08:36:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/OnXMyuPQOZUITK7iZ+Uk7cAKHMIP3T57lbvMGr1MvxzoIXIo63/mYsww6leodtcDcd3U X-Received: by 2002:a05:600c:230e:: with SMTP id 14mr2780935wmo.42.1583854582703; Tue, 10 Mar 2020 08:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583854582; cv=none; d=google.com; s=arc-20160816; b=FP1J36lg+Ap8XBcYrgY3NklM47AjzhwItkVPfs0n0J8rqJ3CLKVrq4dLNSOKwtO1eD Jd10ukPcpjjKzJ0bWdYNTWCDHJQdggLCKyU9ZYY1nwSWD6XHURTj5+Gh79NSdHkK+MHX 9lUdBFL/I4iePyOGQXQtxYaBGCQiWMk+L6MXmsxnu2/PKGbXnQa9BWASE+lXG5QoW+xF g4YT6tvU8UZUU3drKm7Vyhy0ARI5nJBPslN7KRlVQnybKccO3w3mZ8oio0Cn7VGd2S/w s57rM3J9IS/E9e1QouK01iMD9OasdEzWW+YJu6KgnUgSwkFky5qzedQfg2nx3dmTVN/j F97w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=INmW1FHuqVDEIrG7JiatSF8rlNDxFEHTOMfMMrS7aqk=; b=r7I8nwYXpq4Qnl11+TSfteV/byCIuD3hzs2Ewzxnt9oKbK1XZmvdKsWAjbbJAWn87c 7lUeArcHmhGEknkUWLBwqg6AaawmSXUaaQZ6XyWPFZffFskTwgSOn5Fcga8FNYlUA+w5 9jzUCGM/In80Kz+4lIxqXfVLxXzDsMo1wCNuadMpepoVT8f+Ij9xM7bGPGSZBBZf+xPn dOa8O+mP+i7KSaG5sa2IdliDJZ2GDmaE913BJA2FI2Ow367fhM2jYsZzRwxhJ0HdVWtF v6fPsm7CstZ/10QNgwXenqyh/kq9ZipG+mDHSCooBlc4+UTKkghJuPZkGPrrAkZS9LmY R1oA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id d16si653664wrv.4.2020.03.10.08.36.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2020 08:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 02AFaMVp027267 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 Mar 2020 16:36:22 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.68.205]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 02AFaMXS014477; Tue, 10 Mar 2020 16:36:22 +0100 Date: Tue, 10 Mar 2020 16:36:21 +0100 From: Henning Schild To: Cc: isar-users Subject: Re: dpkg-raw git fetch Message-ID: <20200310163621.1d87716c@md1za8fc.ad001.siemens.net> In-Reply-To: <87825320-c0cc-4876-8b53-8c3fe6d30db2@googlegroups.com> References: <5a454616-f591-8a43-4ea7-eaed4fbe236c@siemens.com> <51e462f0-aa1f-c33c-a57b-f4773efdbb4d@siemens.com> <20200309175936.6927bf4f@md1za8fc.ad001.siemens.net> <87825320-c0cc-4876-8b53-8c3fe6d30db2@googlegroups.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-TUID: Y33UqnLOKrXC On Tue, 10 Mar 2020 08:08:27 -0700 wrote: > On Monday, March 9, 2020 at 5:59:40 PM UTC+1, Henning Schild wrote: > > > > On Fri, 28 Feb 2020 13:08:10 +0000=20 > > "[ext] sven.sc...@siemens.com " > > >=20 > > wrote:=20 > > =20 > > > Hi,=20 > > >=20 > > > I'm a little bit confused. In the task unpack the SRC_URI files > > > will be put into WORKDIR=20 > > > =20 > > https://github.com/ilbers/isar/blob/f3d50cfb9b7a5740c6dd11ee58fc4ba1a18= 15eca/meta/classes/base.bbclass#L182 > > =20 > > >=20 > > > But in the next task S (workdir/git) will be cleared.=20 > > > =20 > > https://github.com/ilbers/isar/blob/f3d50cfb9b7a5740c6dd11ee58fc4ba1a18= 15eca/meta/classes/dpkg-raw.bbclass#L15 > > =20 > > >=20 > > > Should I understand why ${S} will be cleard before do_install is=20 > > > called? =20 > > > > I think you might have found an issue with the distinction of S and > > D. In fact they should be different folders but for dpkg-raw they > > are not. I think also the debianize class does not clearly > > distinguish them.=20 > > > > =20 > I coincidentally ran into the same issue yesterday and yes debianize=20 > assumes all the work should be done in ${S} > should debianize expose a DEBIANIZE_DIR defaulting to ${S} and let > dpkg-raw set it to ${D} instead? Unfortunately bitbake/oe lack good descriptions of the two. But those can be found here: https://devmanual.gentoo.org/ebuild-writing/variables/ and probably also in FreeBSD That means that debianization should be done on S, not D. And OE also has 'D =3D "${WORKDIR}/image"', which seems to be missing in Isar. Henning > One workaround would be to create that second copy on your own. So > you=20 > > clone i.e with destsuffix and make sure that the unpacked copy and > > the installed copy are not the same directory.=20 > > > > Once you have found a solution and have a clue where the line > > between S and D should be drawn, please give feedback on how to > > improve the class.=20 > > > > Henning=20 > > =20 > > > Mit freundlichen Gr=C3=BC=C3=9Fen=20 > > > Sven Angelo Schultschik=20 > > >=20 > > > Siemens AG=20 > > > Digital Industries=20 > > > Process Automation=20 > > > Software House Khe=20 > > > DI PA CI R&D 2=20 > > > =C3=96stliche Rheinbr=C3=BCckenstr. 50=20 > > > 76187 Karlsruhe, Deutschland=20 > > > Tel.: +49 721 595-2827=20 > > > mailto:sven.sc...@siemens.com =20 > > >=20 > > > www.siemens.com/ingenuityforlife=20 > > >=20 > > > Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim=20 > > > Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch,=20 > > > Lisa Davis, Klaus Helmrich, Cedrik Neike, Michael Sen, Ralf P.=20 > > > Thomas; Sitz der Gesellschaft: Berlin und M=C3=BCnchen, Deutschland;= =20 > > > Registergericht: Berlin Charlottenburg, HRB 12300, M=C3=BCnchen, HRB > > > 6684; WEEE-Reg.-Nr. DE 23691322=20 > > >=20 > > > Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten=20 > > > firmenvertrauliche Informationen. Sollten Sie diese E-Mail > > > irrt=C3=BCmlich erhalten haben, benachrichtigen Sie uns bitte durch > > > Antwort-Mail und l=C3=B6schen Sie diese E-Mail nebst Anlagen von Ihrem > > > System. Vielen Dank. -----Urspr=C3=BCngliche Nachricht----- Von: Jan > > > Kiszka > Gesendet: Donnerstag, > > > 27. Februar =20 > > 2020 18:00 =20 > > > An: Schultschik, Sven (DI PA CI R&D 2)=20 > > > >; isar-...@googlegroups.com > > > =20 > > Betreff: =20 > > > Re: dpkg-raw git fetch=20 > > >=20 > > > On 27.02.20 17:39, Schultschik, Sven (DI PA CI R&D 2) wrote: =20 > > > > Fetch does put the repository into the downloads folder.=20 > > > >=20 > > > > Which task is responsible to bring the files from=20 > > > > downloads/../git-repo to ${S} ?? =20 > > >=20 > > > Right: unpack.=20 > > > =20 > > > > S =3D "${WORKDIR}/git" ist defined in the recipe.=20 > > > >=20 > > > > Log.unpack says clone -s -n downloads/git > > > > recipe-name/version/git without an error=20 > > > >=20 > > > > Shouldn't the see the files then? =20 > > >=20 > > > Yes - provided the default revision checked out contains > > > anything.=20 > > >=20 > > > Jan=20 > > >=20 > > > --=20 > > > Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate=20 > > > Competence Center Embedded Linux=20 > > > =20 > > > > =20 >=20