From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6616615978640867328 X-Received: by 2002:a2e:8199:: with SMTP id e25-v6mr529774ljg.15.1541688865605; Thu, 08 Nov 2018 06:54:25 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9d8e:: with SMTP id c14-v6ls233241ljj.10.gmail; Thu, 08 Nov 2018 06:54:25 -0800 (PST) X-Google-Smtp-Source: AJdET5fZ33VZdIuuIXqgmpeJ8AGNcRO6yBKfpj/ABWpxKBNTZkYhevuQcKSC5wNEf2lRZvM/mtaA X-Received: by 2002:a2e:1ce:: with SMTP id f75-v6mr540060lji.11.1541688865127; Thu, 08 Nov 2018 06:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541688865; cv=none; d=google.com; s=arc-20160816; b=UnN2+e93TWd9+M8cEaTFwpTwtSISn6HT1424yWGIqe13kTg5Nix5q22agOgeEnSuGP ZnweVzgPdyOSEuTQLI3RgHWy4n2rNXLQLrqbsT6c+aA/e94yFbKO4z5qT920Va0BTdG0 M0ys2ExR8F4udQj8hRkjzl/+qBwN5hFo3F6HuGbSEYFUJGOq+Ef3gQQyXH7zNqS7Wot/ vrpnj3/ZvRG30XdpWmusdViciCrrp0GwY7JVAg3aFko+3kP/t7yzqpEM1VCiSi6y6C1v 12jlqwyEWCtTjY0N/8Qjk1pKR9MJrBkiesU+hUFNmioYdHSaiqG1kX6HeLn5DahOD5gt GRKg== 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=7iWr1JViEKPdyyK3ZtVnXLkCXKMxExdLxhT11T9SYTk=; b=rB39Sw25OiP4RqugDBnxWf3com5Oaf0xaxzrPnjf6VRWgWGzTpJOcMu+U9LNsi6p8P Ag78q+lzSubNAp5Ow2gGMhN2hrpL7fZ4Tn6NFm/Ujb2XTLv3lH8DEcy8+3hslyFRPDMw iwTlqkYyGryHv6dxHoYHUeV2huBmGcJ4zhsDUp//3L3sPieMrDZRmGBO1DwTyyhX56J6 1Zx4KtVFuNZpMnKib0R2A+fFayQCnKhAA3VB9iuj28j8seo5v6BVaYMK3O8xD/jfxIa1 tXHsAW4stxV7+UPFWUZgxntbJDFd5FBEUek0Ch84s+rCfMKfhlnHEQ5mgigAK5OQX+p/ +tCQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id 205si133598lfb.2.2018.11.08.06.54.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 06:54:25 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@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 wA8EsOBQ019353 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 8 Nov 2018 15:54:24 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.68.200]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id wA8EsO7i009926; Thu, 8 Nov 2018 15:54:24 +0100 Date: Thu, 8 Nov 2018 15:54:23 +0100 From: Henning Schild To: Jan Kiszka Cc: Subject: Re: [PATCH] buildchroot: build debian packages as "builder" not "root" Message-ID: <20181108155423.590f43de@md1za8fc.ad001.siemens.net> In-Reply-To: <9fc6082e-49ae-2e9c-6331-90b80b66baf0@siemens.com> References: <20181026104914.25581-1-henning.schild@siemens.com> <9fc6082e-49ae-2e9c-6331-90b80b66baf0@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: Xu1E04Sz/87Q Am Thu, 8 Nov 2018 14:32:42 +0100 schrieb Jan Kiszka : > 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? Does the file exist and can not be written by builder, or does it not exist and the dir must not receive new files. I am guessing the former but have not clue why. Maybe you can tell be how to reproduce this. Henning > Jan >