From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7354299914861412352 X-Forwarded-Encrypted: i=2; AJvYcCV3l9w3Zb+9BybfosK6OotVjq2nddXxNg1xt5ZBII4V+wSA4TLC7KpdWLgEgiLVoITfctEBV7mLvpQ3g2y0gUVkDd9h6lU9bkn3MuY= X-Received: by 2002:a2e:954e:0:b0:2e9:77ec:58eb with SMTP id 38308e7fff4ca-2e977ec599amr43694481fa.17.1716886154804; Tue, 28 May 2024 01:49:14 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:97d3:0:b0:2e4:59d9:72e7 with SMTP id 38308e7fff4ca-2e9599e57fals16966881fa.1.-pod-prod-08-eu; Tue, 28 May 2024 01:49:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXOrelB1y+sNzlDJjXpOi9avQmjDzIW1tdY+PjMOoAnhW1mSAVxGeGYvWGZAew6i/uB6T+oj20k7EGdUJOJAeAiKnIhcWE2/o5XP1Y= X-Google-Smtp-Source: AGHT+IFCjp2hVuj17aoZnDnw/TAOxA+qfnUSnq+tbPEHEgmfQAvxHQbcQj+Y2K7EMA4ERlJiSeAZ X-Received: by 2002:ac2:4433:0:b0:51a:d08d:bab4 with SMTP id 2adb3069b0e04-52966e9b049mr9659305e87.55.1716886152634; Tue, 28 May 2024 01:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716886152; cv=none; d=google.com; s=arc-20160816; b=pd2J6byhWC1A7TnMyx8ldB8fVNWT/QlM9TlMbpirLfjF2ICHi1NagIKq7PoEzoy7n4 afGKBM3iM9cHpM5zT9+gYBu5A6Un3GWKHQjLTdd5NteNX1Ol46+8nBOYhl9WGOpXG6Q4 SAvmGvyc8fisXzw9YdVUuT1OaLqBzHymeNMtFORL1KMMl83yCU0fEGNAJYhT1mSRbmzk sMuzLyEauYlT5z4B+pRcxuQdJ8PMBfN51gJ6C7VINnT1EyoFGiFgAdoUP0MePk/e+kmg izr6WJDNFay3cQVfaJPldhna/PQELpUsa4uy3i6nJ3oYP/Pe4ys4zddhdtKv9WwmM1a2 3MjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=j5XayyJfmEn43KXKq/QmrkQpbFnixpqwt7zwucNq5UM=; fh=PQ99Pg41VQdbA86ND2WcBEzUU5iFkUCElVkRjDo5d5w=; b=vZprztSf3Y0AipOB8b5+x37rRmw9rVqIR2jKaOGBe0osfh9IGc9u0dCfn43HQcAAM8 cWZpWHi6W0JNMLZys49aaCYkJDZSyXztHGL8GXFCFDwrlx5LXT4IDjXsHWDmxGkJUy7o XavNBrSyC8ISH2vbfGLNKjmHJHtqPfQN3DZB93WY+nvw3siavSDCYfkiB3FLsH/Kk5/H Iu9qLMzcq9Dw+Kxbn7aOuGyCDUMhSgdFw9hTPOdrnSgZrEu0sZXTlKnjgEWjDs8+0tVP AA2TsOHKfvD8JKUE49DRlKJ+w+/XF+Ars5Ich9IzFSmXLkIgC85eMhWlR0UUds6l5YTf fDYg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="BecMr/m/"; spf=pass (google.com: domain of ch@denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-529b5ce523bsi60460e87.3.2024.05.28.01.49.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 01:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of ch@denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="BecMr/m/"; spf=pass (google.com: domain of ch@denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=ch@denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from [10.0.200.95] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ch@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 84C1A88418; Tue, 28 May 2024 10:49:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716886151; bh=j5XayyJfmEn43KXKq/QmrkQpbFnixpqwt7zwucNq5UM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=BecMr/m/a6l2Q4jyHswX5FeMnMkh1B8oYWc8C4ekFLBkWZN6vTG6ydOMjNDSKdxN3 WUU7dNR+YzaF083r+WHa+5Nj3BERmD6cKs73IvVQ9gcZ4OtrmTEfSFab4c3BinMyoZ fi9r1Oealq5w405pNsJgkTbchhgrqo0D81KKAoUIQDwSuBOVL+3Q3n5vIdTOPPGxp3 jRMBYrJu+2QBGO4le3LoGGTmXZsx8nrHRKqtl77H3BGvC1PX+sN8NQ1LaMG+1fmK2D d6t+XAlHULisbimt5y6vlV/+XqWuBR8qTak4/qrVoF2Db+KiQ+72pzcTU7BNqR9byo AlxKW+ksd44rg== Message-ID: Date: Tue, 28 May 2024 10:49:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Accessing sbuild build-directory To: Jan Kiszka , "Scheler, Fabian" , Uladzimir Bely , Anton Mikanovich , "isar-users@googlegroups.com" References: <81b2fa44-feae-4ddd-80bf-fd6b0e5fe852@siemens.com> <2b33407e-bfcf-4ebb-88a3-6347a1f13aec@ilbers.de> <4cbee698-bbaf-4d5d-8594-818a93a17f6f@siemens.com> <1d0a149b-a5b7-46d2-a4fa-3eb66dc50723@siemens.com> Content-Language: en-US From: Claudius Heine Organization: Denx Software Engineering In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-TUID: AD+DWggmELpl Hi Jan, On 2024-05-28 9:58 am, Jan Kiszka wrote: > On 28.05.24 09:29, Claudius Heine wrote: >> Hi everyone, >> >> On 2024-04-05 3:10 pm, 'Scheler, Fabian' via isar-users wrote: >>> Am 05.04.2024 um 12:03 schrieb Scheler, Fabian (T CED EDC-DE): >>>> Am 05.04.2024 um 11:57 schrieb Uladzimir Bely: >>>>> On Fri, 2024-04-05 at 12:09 +0300, Anton Mikanovich wrote: >>>>>> 05/04/2024 11:38, 'Scheler, Fabian (T CED SES-DE)' via isar-users >>>>>> wrote: >>>>>>> Hi all, >>>>>>> >>>>>>> I want to extract the coverage information (i.e. the gcno-files >>>>>>> created by gcc) that is generated during the package build via >>>>>>> sbuild >>>>>>> and I look for some hook that allows to access the content of the >>>>>>> sbuild build-directory after the build from within a recipe. >>>>>>> >>>>>>> Is this possible? >>>>>>> >>>>>>> Ciao >>>>>>> Fabian >>>>>> >>>>>> Hello Fabian, >>>>>> >>>>>> You can refer to sbuild documentation for hooks explanation. >>>>>> The last one executed inside session before its cleanup is >>>>>> '--chroot-cleanup-commands'. >>>>>> So you can modify dpkg.bbclass adding any custom commands with this >>>>>> hook. >>>>>> >>>>>> There are no already implemented dummy pre/post hooks for now, but we >>>>>> can try to >>>>>> implement them in future if needed. >>>>>> >>>>> >>>>> FWIW, perhaps 6d5fbbab could be used to quickly play with custom hooks >>>>> to sbuild process. A different approach can be chosen for the final >>>>> implementation (if any). >>>>> >>>> >>>> thanks for your quick feedback. Yes, injecting arguments to sbuild like >>>> proposed in 6d5fbbab should be an option. I'll give it a try. >>> >>> FYI: Injecting --post-build-commands finally did the trick, but it is >>> not really nice. However, there seems not to be another option to >>> accomplish that. Unfortunately 6d5fbbab has been reverted and I can >>> follow Jan's arguments, maybe this is a use-case justifying the >>> extension. >> >> I am currently struggling with a similar issue trying to extract the >> `.config` used to compile the swupdate recipe from cip-core [1]. >> >> Because the debian package uses multiple different build profiles as >> well as a base debian defconfig to generate a `debian_defconfig`, which >> is then used to generate a `.config` it becomes very difficult to verify >> if the configuration I patched into the base debian defconfig has >> actually applied or was overwritten by something else along the way. >> >> With openembedded you could just look in the build directory and see if >> every option that you wanted is set correctly in the `.config` file, but >> here this is not possible. >> >> It might be possible to add the `.config` into a binary package and read >> it from there, but there should be an option to investigate the build >> directory in isar itself. >> > > We should add an option to leave the build artifacts behind when leaving > sbuild, just like we had in the ugly old times with buildchroot. I > wanted to study kernel .config and similar stuff in the past more than > once but always found other ad-hoc workarounds to actually solve that > demand properly. So what are the options for implementing this? It would be good that even after a failed build, it is possible to investigate the build directory. regards, Claudius -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de