From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7062656987288305664 X-Received: by 2002:a05:600c:3505:: with SMTP id h5mr1092394wmq.122.1644578415373; Fri, 11 Feb 2022 03:20:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:a45e:: with SMTP id e30ls71733wra.2.gmail; Fri, 11 Feb 2022 03:20:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwplPKKlZXdvKcJPwhCbCOt4E5eJ5KU8NjKLAzx5dLIURPMWQpfWv6HwekWPdm1A1v51oZy X-Received: by 2002:a05:6000:2ad:: with SMTP id l13mr994213wry.174.1644578414205; Fri, 11 Feb 2022 03:20:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644578414; cv=pass; d=google.com; s=arc-20160816; b=VFQvmQM4cTP/pcCUHJIlqjGggkBiSBeE9838hnJwBDBwtYxu28Hlb1vD2TmrjJu78/ swYXKR+ynp1gFlZkDcJAVNxCIAZIa8bCBc6NVGa5EhsPxYb5GlstSv2CJD5neXTS2Y5j 5stbsGHuThJbi5qy88Ya/gwWP5MCNzDKVTWn+qmOKwECKF3DpUiwW25iAJ6woOf7Z3wk 8MD2WZTengHO3Rrp3vfW5AGP+xnehnzDT5xl3We+wLBxE64zGOIr0iRksPZGtb1+3uQm t4kkQmQg2j/l2NAtlUchdnbw44nwmh7jHFYIpjwkT4I5fTT/7PK78AJldzGTMkxnaNxY MDkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=1Dt+qi9GOwI3iDLl914yk3F2qBx6pqdCNHbreq7A624=; b=jVb8sYjsvu+NwDkka9vtsts5QYLuikCfQ65Yhh4tqQljdEyBNcTh88KP/I0tKVv3n7 ybYWNMmK+nmp4zZ1KBpfGva3ulKB4dbK8xHHlIfGOyPALT/k8Z9AdznpNHSB+kJL4Mrz T7BIGbDFe8oS58/SKlsZwUizP67oZMDOGjsdbFpPEwiV0NJbn+INbToJ3Ne0E/782ZU6 u+vucBUZK1hIFVMZFAzMGiL0omVh3vXm5uuKPu2yT5x0pS1CvTC0aXq61b4xFkngGs8D VNWM1MOoqtaMnN8CRWvzJ86x7r9lQV7Ik1RWhhEpg3x5v0jOPifnsWHQ/WEp7wZ7uuaC zMBA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=xYX+R5jO; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe09::614 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 EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on0614.outbound.protection.outlook.com. [2a01:111:f400:fe09::614]) by gmr-mx.google.com with ESMTPS id ba1si165848wrb.1.2022.02.11.03.20.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Feb 2022 03:20:14 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe09::614 as permitted sender) client-ip=2a01:111:f400:fe09::614; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=xYX+R5jO; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe09::614 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Di/XEb3U9V/v9FZY4DX5ZB6AO7IAcMaLfLecSppPP+RDhvnOOFrPuZZfYKM+27ZeohRr+dx2kW/wh8VKdiUHECyfjETy+03ENVVTWDLr11kRkB8n8m7jXKRTNT9rLBYwQnh/dg9YoyLZ0dJ1+Cv0BY8+bqOaQstOmiupIjSWQZcLcfi8AvVmZCXfGp11/mwOGU/cdY8LBS5G8WLGE8638QLrgXd5aMFHAon54FKA+fpuEUwDtY8n3XdjWlenPS7wbYvUgokwjaqKBaN+v4M+H9kGMKFIRLeb4IjVBKVB1K/9fLdQHQNLD/SGfQgsqMvCoqEbFOcAL4Od2jc+ZHO8UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1Dt+qi9GOwI3iDLl914yk3F2qBx6pqdCNHbreq7A624=; b=aKD+y9DIoqDe1H8FB7Iijnl32DXWclSMnA92tETBivZUoPDGg3bCTz72dJSbCvbfiv4S9HvDeFzOltxASIiu4lx/hUMdwTGWmvCoWWcyHz8YCyd8G9mvE8Rzd63jsxaZfReghEI68/yyr5A4Pr4BCTrBqZpZ+raWNTX1HoXkH7p8+K2izIC/hyoHVmazwVBwGS4gDGUnMO8j9ErMu0C4XYR8wetHfVyuB7A+s5O6SSu3g0BPk2AzGm4nkRgxprMJ7m3M9ptS8nK7jU0nTXZj9sbwtDWKp5SyzS7KtlgJjaYaOPgaDR4gJFHeqpXukhZPSBdW1qdOhy3IBtr/Nx+NlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.70) smtp.rcpttodomain=ilbers.de smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Dt+qi9GOwI3iDLl914yk3F2qBx6pqdCNHbreq7A624=; b=xYX+R5jOzYARAQeV/Dm3w6qZr7ZY3kpRR8CW7/iXbejQr/0jZx8DZpGfwTJ5QBgeJoEzDOcOftGlo/ZUL6DeDt7G775Sp51e253HOOHY8oGs0Jx2TbN1oKqPsxOeIs9KIQg5kIHxpUjJBXIq0LIffFhOVh4zuxzCV5QmEISJdDNkOMqzlY/MmLTCwRyJSFbjmrcGEgAEPXwblR55iBJoLoz/G1AnBhRq3mZevRHB9XsB/aYTEyZ/1S3/t3tFZFFjOdU5YrebRVpixHTyyJfXZXjMUUEfMlTN7E2SuGdVn/nFL/6FZSWt5sanAaaUdMwbll8iHfNhWF/N1cEP+69VEw== Received: from SV0P279CA0057.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:14::8) by AM6PR10MB2918.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:d6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Fri, 11 Feb 2022 11:20:12 +0000 Received: from HE1EUR01FT027.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:14:cafe::e9) by SV0P279CA0057.outlook.office365.com (2603:10a6:f10:14::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend Transport; Fri, 11 Feb 2022 11:20:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.70) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.70 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.70; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.70) by HE1EUR01FT027.mail.protection.outlook.com (10.152.0.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4975.11 via Frontend Transport; Fri, 11 Feb 2022 11:20:12 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SJA.ad011.siemens.net (194.138.21.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 11 Feb 2022 12:20:11 +0100 Received: from [167.87.72.233] (167.87.72.233) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 11 Feb 2022 12:20:11 +0100 Message-ID: Date: Fri, 11 Feb 2022 12:20:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Question related to Sbuild CLEAN_SOURCE Content-Language: en-US To: Uladzimir Bely , , References: <1b5ef299-ec8d-c180-c2b6-505294f5484b@siemens.com> <2591024.vuYhMxLoTh@home> <29092d94-9261-07d6-7ebf-240dbbb435c4@siemens.com> <3349320.sQuhbGJ8Bu@home> From: Jan Kiszka In-Reply-To: <3349320.sQuhbGJ8Bu@home> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [167.87.72.233] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46464e1d-7dc9-4841-39ec-08d9ed507880 X-MS-TrafficTypeDiagnostic: AM6PR10MB2918:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2Y2B5e+k7pwjZF5TjQKWSiZKRUQgaW9f0X4SbQAA1avmGhDpRmZYEo6PvaM1b1gzvpCtCJjW27GjnUZqS4N6+bSwgl+CB8+PDRMkTv3n8diBxo9VikmVerzwgaxQv0rNUGD16fPX8fZfo1bAO5HtvAZO6RdxNa204nnZhumuC9KGUhf0yp/YKcumkHaoF1IjuoONeaw8sB4Eix8x2G4o7eY9fsBgFQM3+5e81Omj95ZMN3cA2gWGvA/5MMSvhhiwpVunFG5vIMDESruj247GZK+/ILortkWji5W6vF38UEudoB0DJ/BcvkqeynvWa4cXshE0XGc95S79tBt5R/Ku1oRFbKxdBbkLmqwle07Qk1TdBFJrNzUV6wy9XUOiEQoBSoh+CurEdkbG1B7ScTPdaxuw/rZU67A6U9sezU01fWwbH+W3t2YYi2kneD11uo2aQRVNaeUtF4cWhkt6lyWkzfHKIyBZumU03Ob99LtzUUG4lli4JiTSDwvQj14TeStTnlYKq4GoHzYFm/uEWnVssauGKoT0QTiMN2JAKJwTB3OOrgsj1R+XReAQBxGkLrpBGzO5/7AF23RelSr0Uh0SkPa68ENge6UWo9P6Usfk/zKcwhYZYyUTWmB6/M81pFNr/3znJcy7mxM/4sVrAarIXOs20U+vA9aW5gMPRIYSivefayulneOTCaVhaRgxJuOgyk/0rYfqqV+VwQSh5eQpLCyvESKyG4OQ1AtYldRRdTLZh0920e4m9stFxcFtWjMtMmfCdKWYGBNSU/6kCxEJ4L7ODmPoBtrct3OkE5uLaS27q8i55XEL88ZCN3cXzSVB6flFFBafpHJkxKXgcC0YeA== X-Forefront-Antispam-Report: CIP:194.138.21.70;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:hybrid.siemens.com;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(47076005)(44832011)(36860700001)(82310400004)(2906002)(82960400001)(7596003)(7636003)(356005)(966005)(508600001)(2616005)(26005)(8676002)(316002)(16576012)(40460700003)(110136005)(70206006)(6706004)(6636002)(336012)(83380400001)(8936002)(70586007)(5660300002)(956004)(53546011)(186003)(16526019)(36756003)(31696002)(31686004)(86362001)(3940600001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2022 11:20:12.3690 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46464e1d-7dc9-4841-39ec-08d9ed507880 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.70];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT027.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR10MB2918 X-TUID: ZFXiaC09xsFj On 11.02.22 11:54, Uladzimir Bely wrote: > In the email from Thursday, 10 February 2022 12:10:47 +03 user > quirin.gylstorff@siemens.com wrote: >> On 2/10/22 09:47, Uladzimir Bely wrote: >>> In the email from Wednesday, 9 February 2022 18:14:22 +03 user >>> >>> quirin.gylstorff@siemens.com wrote: >>>> On 2/9/22 12:52, Baurzhan Ismagulov wrote: >>>>> On Wed, Feb 09, 2022 at 11:36:09AM +0100, quirin.gylstorff@siemens.com >>> >>> wrote: >>>>>>>> - Is there are reason sbuild executes clean outside of the chroot? >>>>> >>>>> It would be interesting to hear what kind of issues you had due to that. >>>> >>>> If we rebuild a debian package with dpkg-gbp which uses for example >>>> `dh-lua` (swupdate) the build will fail due to the missing installation >>>> of dh-lua in the host environment. The solution to this is to install >>>> dh-* in the build environment. >>>> >>>> ``` >>>> gbp:info: Performing the build >>>> dpkg-source: info: using patch list from debian/patches/series >>>> dpkg-source: info: applying use-gcc-compiler.diff >>>> dh clean --with lua >>>> dh: error: unable to load addon lua: Can't locate >>>> Debian/Debhelper/Sequence/lua.pm in @INC (you may need to install the >>>> Debian::Debhelper::Sequence::lua module) (@INC contains: /etc/perl >>>> /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 >>>> /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 >>>> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 >>>> /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 13) line 1. >>>> BEGIN failed--compilation aborted at (eval 13) line 1. >>>> ``` >>>> >>>> You can fix it with documentation but it needs to be addressed. >>>> >>>> A project where this can be tested is isar-cip-core with the current >>>> preintegrated sbuild[1]. >>>> [1]: https://gitlab.com/Quirin.Gy/isar-cip-core/-/tree/test/sbuild >>> >>> Hello. >>> I've tried this repository (master branch) on my side. >>> It currently builds OK with Isar revision 33b5aa65 (default mentioned kas- >>> cip.yml), it works with current isar/next as well. Also, I successfully >>> built it wth latest isar/ubely/sbuild revision. >>> >>> Maybe there are some more specific steps to reproduce the issue you are >>> talking about that I could try to check on my side? >> >> Ah sorry, >> >> you need to add the SWUpdate option to the build. The kas command would be: >> >> ``` >> /kas-container --isar build >> kas-cip.yml:kas/board/qemu-amd64.yml:kas/opt/ebg-swu.yml >> ``` >> >> or you build SWUpdate from the devshell. >> >> Kind regards >> Quirin > > I tried this - and yes, I also faced this problem with "dh_clean --with lua". > > There are 2 ways to deal with it: > > 1. We can simply add "--no-clean-source" to sbuild parameters. In this case > sbuild itself doesn't trigger additional "dh_clean" before build. > > 2. We can switch to building from .dsc file instead of building from unpacked > source directory (e.g., firstly create .dsc file by dpkg-source, sencodly, run > sbuild passing .dsc as argument). In this case sbuild also doesn't call > dh_clean. > > Both methods work, but the second looks more debian-friendly. Worse: The first one could erode over the time as it is no official Debian method. > > BTW, I faced some other build issues with "isar-cip-core": > > 1. "efibootguard" recipe attempts to deploy "efibootguardx64.efi" and > "bg_setenv" binaries directly from source tree. This doesn't work with sbuild, > especially in case of building from .dsc file. Moreover, "efibootguardx64.efi" > binary doesn't even belong to any output .deb files. The first one is a known conversion pattern. The second one is actually a bug: We should not use the deployment folder, we should use a deb package installed into the buildchroot that installs the bootloader, just like we do in all other cases. Seems I missed that in reviews. > > I consider this binary should be added to .deb file and deploying should be > done from it (e.g. using "dpkg --fsys-tarfile" for extraction). I can submit a > patch if needed. Yes, please. > > 2. "swupdate" is built from git branch "debian/master". I had to add "-git- > ignore-branch" to GBP_EXTRA_OPTIONS, to skip the error, like "not master > branch used". > > 3. Finally, I still have build error with "swupdate": > "The following packages have unmet dependencies: > sbuild-build-depends-main-dummy : Depends: sphinx but it is not installable" > You will likely need a better tool to get the explanation. apt itself too primitive in complex cases. Usually, I jump in via devshell_nodeps, install aptitude, try to install the failing dep and let aptitude explain to my what goes wrong. Jan -- Siemens AG, Technology Competence Center Embedded Linux