From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6480563028650622976 X-Received: by 10.46.41.200 with SMTP id p69mr155293ljp.37.1509644013917; Thu, 02 Nov 2017 10:33:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.20.8 with SMTP id u8ls616866ljd.9.gmail; Thu, 02 Nov 2017 10:33:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q5pahec6Cc6glj44H3rprJ7VL8zvqWdyYFEeDIIuR29NO+3hDPzecROjgY/xS6Y60QVvsi X-Received: by 10.46.68.213 with SMTP id b82mr151736ljf.24.1509644013389; Thu, 02 Nov 2017 10:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509644013; cv=none; d=google.com; s=arc-20160816; b=MzyqY7JgfkBfozGCrAvGHIZJK92x6Otlf4DjurbEdavjr01RqwGFxzAdvppFMY+2LU DWfqzUf9BWbJf8rSgJ93PwlVqmhWei5rTu6txT0GOKsh9yKuW6PGQI2ee9L1DNeMBQce bIAXxgOw5PosKxZr97q+JHm/IlCDzxVEt+nS7zfSIGenFy0eCdmHoZTO+8lIricKzKJx c0A/poKId+JadrIR7myGwxoqesGsW4sjZ+cIxx9OA6hadB5AEauoeKU1j1IzRjioDH7Q Su+9vezgNxqSh+Tuuye1s83mA63zE8oPgkGVpcEMw+hoKe9gXVFEJt3eeMp7/MU6bVYf SqPw== 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:cc:to:subject :arc-authentication-results; bh=PcSPU+IqmpWvkkl0TNPR5pd4I4dyu1QmlZaeZdn0chM=; b=M2hBOtKaDu8nFyi5u7mJC7YuTSFmPLcSG+Yavw20r1zyrNmN/hcdUx0IAZhrx6j+EB DaGxnmEA5FACeDcwPVrVhc8OyIjrFpw1JSlYzoSw5qM0KhKEy7H9d0VIEVmZA8nC/UaQ IS3CzhOKWyCWVb8U+oWa7zL2U+Fg6YHcInjq1s0hs+2vpywA5d7l4T07eiXOGqT9u6oY aNuPht/gaf8CvC4oTG6MZw9j/PkArLdcA1nuXU1YDJMBP1Aw4EwVQsizx6hqfxFIpcMO x7fv4geoAFEGykvy1z/yKtEvml5aUysBpz2pMFsX1N2PrTvsVt+Y08a4niDhIajLIHiH Mneg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id w29si293094lfc.1.2017.11.02.10.33.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 10:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id vA2HXWAT020566 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:33:32 +0100 Received: from md1f2u6c.ww002.siemens.net ([139.25.68.37]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id vA2HXWq2000804; Thu, 2 Nov 2017 18:33:32 +0100 Subject: Re: PRoot: Drop sudo around buildchroot To: Henning Schild , Alexander Smirnov Cc: isar-users References: <8e0fb678-085a-1403-3ee9-f3afef3c080a@ilbers.de> <00b0017a-62e0-1e1b-4d67-786af7702f8d@siemens.com> <20171102181908.6108f3be@md1em3qc> From: Jan Kiszka Message-ID: <8fc86cca-f989-c642-66a6-0162efb2cf73@siemens.com> Date: Thu, 2 Nov 2017 18:33:31 +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: <20171102181908.6108f3be@md1em3qc> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: awgqJeIIXhCo On 2017-11-02 18:19, Henning Schild wrote: > Hi, > > i just gave that a try and failed to generate an image. > > When using docker you will need "--cap-add=SYS_PTRACE". > Now i waited for a long time, proot seems to slow things down a lot. If it is relying on ptrace, that would explain this... > > And then i ended up with a long list of packages where "Errors were > encountered while processing:". Might be connected to docker... > > Did anyone else give that a try? Not yet. I suppose we also need to native run to find out if the slow-down and the failure are only docker-related. Jan > > Henning > > Am Wed, 25 Oct 2017 12:48:37 +0300 > schrieb Alexander Smirnov : > >> On 10/24/2017 11:22 PM, Jan Kiszka wrote: >>> On 2017-10-24 21:34, Alexander Smirnov wrote: >>>> Hello all, >>>> >>>> I've successfully dropped 'sudo' around buildchroot operations: >>>> >>>> - Create buildchroot >>>> - Build dpkg-base package (hello) >>>> - Build dpkg-raw package (example-raw) >>>> >>>> The patch is quite small, proot works out-of-the box. I've tested >>>> the following configurations: >>>> >>>> - multiconfig:qemuarm-wheezy:isar-image-base >>>> - multiconfig:qemuarm-jessie:isar-image-base >>>> - multiconfig:qemuarm-stretch:isar-image-base >>>> - multiconfig:qemui386-jessie:isar-image-base >>>> - multiconfig:qemui386-stretch:isar-image-base >>>> - multiconfig:qemuamd64-jessie:isar-image-base >>>> - multiconfig:qemuamd64-stretch:isar-image-base >>>> >>>> So proot is really good tool :-) >>>> >>>> If you'd like to reproduce the test, please try my branch: >>>> asmirnov/devel >>>> >>>> NOTE: do not forget to install proot: apt-get install proot >>>> >>>> Build command: >>>> $ bitbake multiconfig:qemuarm-wheezy:isar-image-base >>>> multiconfig:qemuarm-jessie:isar-image-base >>>> multiconfig:qemuarm-stretch:isar-image-base >>>> multiconfig:qemui386-jessie:isar-image-base >>>> multiconfig:qemui386-stretch:isar-image-base >>>> multiconfig:qemuamd64-jessie:isar-image-base >>>> multiconfig:qemuamd64-stretch:isar-image-base >>>> >>> >>> Great news! Hope this passes all tests and then makes it into >>> master soon! >> >> I've tested QEMU machines for images listed above, no difference >> observed in comparison with original 'sudo' approach. But anyway, it >> would be nice if somebody else will test this, especially in customer >> project environment. >> >