From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6616615978640867328 X-Received: by 2002:adf:b3d3:: with SMTP id x19-v6mr771753wrd.12.1541683963713; Thu, 08 Nov 2018 05:32:43 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:8884:: with SMTP id k126-v6ls225138wmd.19.gmail; Thu, 08 Nov 2018 05:32:43 -0800 (PST) X-Google-Smtp-Source: AJdET5f8Z7nTYmzQU3CzMF8Ryzq5vAkr0oaOrbDR5EgAzVD80a5UAawwOx7CtXMSvE0ziffZKf7x X-Received: by 2002:a1c:cc9:: with SMTP id 192-v6mr273623wmm.8.1541683963145; Thu, 08 Nov 2018 05:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541683963; cv=none; d=google.com; s=arc-20160816; b=aOGiCQo2jfOjYAw7MfiRflJhpuFZj2DPHyPO5At5sFJNB4SXASGFcN6sIMavXF8TB6 JAq5VuscGa/Uvy6SBemu3QLGbxx0u51ySBW72ysDURDZa+DSMaWECuxWLYg8avUzDJub oBK7wavNcpC3QV+yEhdfDv6FCAlzgKkVA+vKaUQA94K1n2DvTWiWUQP/RJPmiZZ0J9pT EmDctUyMCsBnT6pN0mQhDoLi9QPVnvkKewAa/cw+/sCKuAE+Nt3BvCW6Ohg7+PvGL0TP jFP97D+LpzXayyqIq+mqL6Fw56icTLeksJqNKHQNRTD0XTlYUM+TnniguT4uUqA5SscV 7CRA== 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=Yjit1RnR+GwoLc+lnE/u6qZeuWrbRCWROQcxXgTWWtA=; b=IThtCJS09zc+o8uPAvxKEkTFsa8atwKsa0vHJ8HDYkpuKx02IscaHiEBkGmJ73xCHs u/9yJb6pfKXd0jFiGOX1lksVTuUZZVSJaRLUP0WY9a/QqbFjd9RNv2aMYbn/D3LFStuP ThAxnTLrPahUCzIj7+7fmmHb8sqtS6FsEKUYyfsmeAFzGXKUSOyq+Tyr6BaB8AryRdlq Q1uw+8Y4jM++JSC0qdvLbhEU6C9n0Bkpl0wgy0Yey+mSz0qZx/LO+mbevLDEWqCN6r+G lcSDWGj6H3y/X0Ct90MWc13bGGrF9niMsGiWly5UR/BMFqDWpywvJs8eWEC+kah5KVi2 erCw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id n6-v6si159359wrj.4.2018.11.08.05.32.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 05:32:43 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id wA8DWghL008782 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 8 Nov 2018 14:32:42 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id wA8DWglR014930; Thu, 8 Nov 2018 14:32:42 +0100 Subject: Re: [PATCH] buildchroot: build debian packages as "builder" not "root" To: "[ext] Henning Schild" , isar-users@googlegroups.com References: <20181026104914.25581-1-henning.schild@siemens.com> From: Jan Kiszka Message-ID: <9fc6082e-49ae-2e9c-6331-90b80b66baf0@siemens.com> Date: Thu, 8 Nov 2018 14:32:42 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20181026104914.25581-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: WiSA9Y5QIbNF On 26.10.18 12:49, [ext] Henning Schild wrote: > We used to build packages as "root" and now do that as a regular user. > Not building as "root" allows us to find mistakes in debian/rules where > privileged operations are used while they should not (a sudo was > found in a rules-file). Further some build steps might actually expect > to not run as root (seen in openssl test suite). > > Not building as root should increase overall quality and brings us > closer to how debian packages are build by others. I strongly suspect this is the cause for more and more rebuild errors of this kind: | make[1]: Leaving directory '/home/builder/u-boot/u-boot-v2018.09' | dh_clean -O--parallel | dpkg-source -I -b u-boot-v2018.09 | dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) | dpkg-source: warning: source directory 'u-boot-v2018.09' is not - 'u-boot-2018.09' | dpkg-source: info: using source format '1.0' | dpkg-source: info: building u-boot in u-boot_2018.09.tar.gz | dpkg-source: error: cannot write u-boot_2018.09.dsc: Permission denied | dpkg-source: info: building u-boot in u-boot_2018.09.dsc | dpkg-buildpackage: error: dpkg-source -I -b u-boot-v2018.09 gave error exit status 13 | WARNING: exit code 13 from a shell command. | ERROR: Function failed: do_build (log file is located at /work/build/tmp/work/long-life-ebsy-armhf/u-boot-2018.09-r0/temp/log.do_build.15761) Are we missing some cleandirs in dpkg[-base].class? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux