From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7062656987288305664 X-Received: by 2002:ac2:54a5:: with SMTP id w5mr1130100lfk.517.1644402972701; Wed, 09 Feb 2022 02:36:12 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3b0e:: with SMTP id f14ls376850lfv.0.gmail; Wed, 09 Feb 2022 02:36:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+wFiw5ZeF1R49TGu5UqBXCc484mb1QBDzSVK9iq+VoJOnBXFaRZLsZrWJMUHjSMZOzDmW X-Received: by 2002:a05:6512:3b9a:: with SMTP id g26mr1138488lfv.71.1644402971721; Wed, 09 Feb 2022 02:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644402971; cv=none; d=google.com; s=arc-20160816; b=Io15y0HDq/o3jt54b6Kvl+IE7+YTFwYwmcBEvt2ddW9ce1jBwlUmkTJpEw1afi3PI/ lkHnDN4j6h4xMhWV03Ffs2G86SxIpPqJEA6G91D9bHbVsIpbuAAYLQnTLexdlCW261rk DztTf1iklo47SMPOHNE58xsEhGqjkPnSrMuq/7Gs2d0UEF4OWEa4gvDiK3zdSiJePGgc NhOfmQQ5OLgs8beaU5uxHTu/RztVU5KgPLm59DgUxVN9nzd/me4x3gZIIIJeoHuRH9AU VqIpWqwWlHukg+ewpMDgVyQC+bM/8GeUY3DwmvmW0/xsEnH2g9YLCXQBKbHocc78bezk FN5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:in-reply-to:organization:from :cc:references:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=d946NdBBRcp93HmFJMdDZiJ7QR2ZZNe01bAsmE9yv/4=; b=jreIJPAl4X1Q5FeaZDOMZ6LFAO8ttE1QiNm6BG8zEWUaiPFBGPuWAzgS00E2Unrys5 v0E5nBv7WGXoxIQSLP/hUNoNbBlzr3v6opkkYqA+Pj/216+xd9i56jgcubOA3zLvBCM0 SJH8eT3UiSa7oa4J2jbZvcKGV/fPRnuXAVp2GxxRoHUyq+AZh0UWz2g0vYhF4X79jX7K P66s6ktdxmjPvjPv+yIGdH3qbgM7QDVUR4I/P4zpLZcpIiEwH3pG+clPLal8P6qX0ZQP RSeGRwHEB/qyTRtkEDe0L0LTitKC3D/FakreZ/gZdbqMz00A4L5/FIcLLmNwr95vAlyA GOKQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=eRIHEDXs; spf=pass (google.com: domain of fm-51332-20220209103610e84ca72484a03a6b89-hyw3ow@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-51332-20220209103610e84ca72484a03a6b89-hYw3ow@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id p12si761934lji.3.2022.02.09.02.36.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Feb 2022 02:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of fm-51332-20220209103610e84ca72484a03a6b89-hyw3ow@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=eRIHEDXs; spf=pass (google.com: domain of fm-51332-20220209103610e84ca72484a03a6b89-hyw3ow@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-51332-20220209103610e84ca72484a03a6b89-hYw3ow@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 20220209103610e84ca72484a03a6b89 for ; Wed, 09 Feb 2022 11:36:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=quirin.gylstorff@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=d946NdBBRcp93HmFJMdDZiJ7QR2ZZNe01bAsmE9yv/4=; b=eRIHEDXs+r1J+hz/IEi5b7SH2WODFn6Vyiucuwv4byDuNQQvWRgNVFWRU3+b/WimCzm4uU NM5jevFNgwM0h8r6675iyg0VP67jo5N9PKzx1NZIadietoZTTJnA187UM1bP9NXnk6DhPDlH 8OCiOAmkR1Tfa4gcKWEj4suP3TPZI=; Message-ID: <818250b5-fed8-8ff9-febb-6cbf61e0680f@siemens.com> Date: Wed, 9 Feb 2022 11:36:09 +0100 MIME-Version: 1.0 Subject: Re: Question related to Sbuild CLEAN_SOURCE Content-Language: en-US To: Johannes Schauer Marin Rodrigues , debian-user@lists.debian.org, sbuild@packages.debian.org, isar-users References: <1b5ef299-ec8d-c180-c2b6-505294f5484b@siemens.com> <164435326066.1656.13805705968480410488@localhost> Cc: "Kiszka, Jan (CT RDA IOT SES-DE)" , tobias.schmidl@siemens.com From: quirin.gylstorff@siemens.com Organization: Siemens In-Reply-To: <164435326066.1656.13805705968480410488@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer X-TUID: 4HZIF3wo9RMW Hi, thanks for the fast answer - I will forward the mail to the ISAR mailing list. On 2/8/22 21:47, Johannes Schauer Marin Rodrigues wrote: > Hi, > > please keep me in CC as I'm not subscribed to debian-user@l.d.o. > > Quoting quirin.gylstorff@siemens.com (2022-02-08 15:40:40) >> we are currently testing the integration of sbuild in ISAR[1] and have a >> question related to the CLEAN_SOURCE behavior. >> >> >> "When running sbuild from within an unpacked source tree, run the >> 'clean' target before generating the source package. This might require >> some of the build dependencies necessary for running the 'clean' target >> to be installed on the host machine. Only disable if you start from a >> clean checkout and you know what you are doing."[2] >> >> >> As noted in [2] we observe that we need dh- in the host >> environment to execute the dh clean -with . >> >> Our questions are: >> >> - Is there are reason sbuild executes clean outside of the chroot? > > Yes because if you don't know what you are doing (as it says in the manpage you > cite) and you run sbuild from within an unpacked dirty source tree without > running the clean target, then you might be building something that is not the > source package you expect to be built. > >> - How does the buildd infrastructure deal with this behavior? > > The buildd infrastructure doesn't run sbuild from within an unpacked source > tree so it will not run the clean target outside the chroot and thus doesn't > need to have the necessary dependencies for running the clean target installed. > > The fact that sbuild is able to run from inside an unpacked source tree is a > convenience feature which allows you to run sbuild without having to first > create the source package. But the actual input to sbuild is the source package > (the dsc). Don't use sbuild to create a source package. The source package is > the input to sbuild. The output of sbuild are binary packages, not source > packages. > > Thanks! > Best regards, Quirin