From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 01 Oct 2025 09:23:04 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f58.google.com (mail-ed1-f58.google.com [209.85.208.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5917N3O6031934 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Oct 2025 09:23:03 +0200 Received: by mail-ed1-f58.google.com with SMTP id 4fb4d7f45d1cf-63359dd377csf7487892a12.2 for ; Wed, 01 Oct 2025 00:23:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1759303378; cv=pass; d=google.com; s=arc-20240605; b=amiPbSwF1gJJcVhg/W8X7nwvQqIOpHKugM9UCodS7wv4TzFPBMSPBeL6lz2K8JqCTX L+JOW08FHO40Yq1FTY7LHDOrEhu73778zIVu4/pZ4c08LXuoDP+am7CgxY0YugZxwQdP k9LwWcycSYako0Ydr3ohdQ8pgppWxLvbzI/EXGGpL63M8dc6tzVNtKv+CIo3SPO6d5WA gQaQAsSoIx+DrY9TtkKu4PekTMOdSKe3LILHeato/6/9eaOAjavPmfDXAWuPPHCSTbbm mhL44Dz9ZF8nbYHY9Gae2kgkqEduF/ASuBMh23ZEi2Miu/gk5uP5MxRBYd+YaJy3gvb/ Pbdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=7wXbFuhXY74q/Y07TN7f9dIXCPn9xFvkxeGicCdKZH8=; fh=L2tpi9C0aoEcrJSrkMU98VonPFKZIdXXrGfjDtPNgWI=; b=OYHcGDP4k0u5y8EUYJAecDTLuS6uK0QiwAdIAhXOOGvfp6KbtYFmVTMgZbLmqJppJt KGyGjCsP0evRQbzqfi8hKRU3yyw5VlNzk7EYO1qnLhqXWSVQpwOjE99XLqryFyJ4Ft5G ILzHdPeY4Qq+3AGnTWP1WZVavTrWwSL4njfFkruUqnEWcDk0eClz+Oz0y4JpapFzH4wk DiqUJ6yCz0dhJ+CxRzW9jq9SLPYA5hrNBohdre5Tf6BoKJrzkydyAWorjwjloNJnm3t8 Nm3eBNd7vgGogjRX9DdYcox2GcC06hRQ1byL9H4l2MRon3w0CRwTQPCmcnAxE7U0m6vE Ywfw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=FEl4zhzI; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1759303378; x=1759908178; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:from:content-language:references:to :subject:user-agent:mime-version:date:message-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=7wXbFuhXY74q/Y07TN7f9dIXCPn9xFvkxeGicCdKZH8=; b=QrIZ2HAk6RHKbMQoiEKp+tZLCFwEy4KqLmOWr5mTnRAerYB2yPcpFPEQzTInoW55/z QK0Vbc598BUXNfGrA3Fe7GSTrVdNMyd36uuQvygRsr/WjjP3KUjXXu4p+etiRlLPIQtr QnZdm3IV6ApRWHfx7N8Z8H1oizMPhTUiBkjB9q/8HUVY0sNYPHw4TfSF+sSd90fj7KmI gPSkVdmMgDXQVTtm9PsySDyM/pKmDZ2k6NZ3ZivVP/IlzR9oAhydQtGs8kXV7/ALWqsp 7DdEq41icG/WPhwVLkv9UBa92gd1M9ygPsU8/6ZtcY8eY3r40QMnW4pNgg3nSi8D4/Xp Q4dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759303378; x=1759908178; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:to:subject:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=7wXbFuhXY74q/Y07TN7f9dIXCPn9xFvkxeGicCdKZH8=; b=i+Rn3tN4FsXn2whEhTKUeQMhOWee5Qr/u50KBGFFFclpkm5SsIkKuRsS9WM8luXcBO 7nOlhnekMN2fambSugrp5qgZZcNqHK8JxlsKNMM5TAcdOee68kanU+tbVycsr8bROS9x pH5KPJYgRDCOYG2t+jU/ekhup2FbzYHssF4eTYJ4KyE6ukQNp88qvDaWACw3kOxUMgZj GxjhiIhivz9WT1l10qYgxh7LJGmDGnNY/FLk6b7nA3ase56QiqRdpm+pfd6hp6ugPdYB gKzLYW6Y+ZFn9UOMciAlLvGAsqCIyKds/kPuDlIIf/tyZOOXJ2l68tqzMtzPJo7cd2WO jB3g== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVRbV/EAekShY15totxQKlt2UVSGSR98kRMQeRU81V7fM4mfcelnkUULcSNPVv4+tBGvQPS@ilbers.de X-Gm-Message-State: AOJu0YybCk2jXVfhMNXGiBCf0co3sZpjOzlQpMcHpmU02P8f6m1v6JTn qbUb0NKqhVJw2tpO/OKHJPJIsDd49mqzQCXzMLoDnf8JQKbs2qcRVd4U X-Google-Smtp-Source: AGHT+IHE2Vi7PHthAl8VmZykHVHUAAYtOiOq1jZmq0EEhQo8oN09Ty/TIKooFAYprOVLxYpzcsei1Q== X-Received: by 2002:a05:6402:1e8f:b0:636:23c2:e61f with SMTP id 4fb4d7f45d1cf-63678d01c0amr3165659a12.26.1759303377919; Wed, 01 Oct 2025 00:22:57 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd6eiD/jdAoN2w4E0lM6ipWEnIZk8ifTrDO9TJ6zaKnuDw==" Received: by 2002:a05:6402:34c4:b0:61c:8922:33b1 with SMTP id 4fb4d7f45d1cf-6349f6e192bls7364163a12.2.-pod-prod-03-eu; Wed, 01 Oct 2025 00:22:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVEww2UAPjuEj0l0ZPlhNgpqIQq8HXSBh9W9SpfG+exTeBPoY96/gZ5fM58xnQ1Tru3CFrZjgFGeZDz@googlegroups.com X-Received: by 2002:a17:906:4789:b0:b40:c49b:710 with SMTP id a640c23a62f3a-b46e9572fd9mr222262066b.47.1759303375146; Wed, 01 Oct 2025 00:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1759303375; cv=none; d=google.com; s=arc-20240605; b=WF4fdOEHvlHCmfJ8P824bMuszus0ZIxCmDWpyF+FPSDE1e59IG5WI7mqqzvJjYbaIl VjrSugq8h+0x3MASlpnnEk7KWp1MWsCkO1+Ro0ioZwI9OY7UJQvVFemQTQBZoH4mef2c jDFrW5LqZPYExOBTnY9f0shTuUzcolDL3c4g1Ge5+fzF3KiHLJsUBKzmFo4euEeR5OQJ ifS+1Hvmjy+vS7CUMYRtMHp8n1RoAB7C/XYkU2HUvIatYigzTvzbZEY0swj565eUG3RC 66nSKduIEBMgRp2E+2w6stLHXrkYcA5ZAbXNoivnbm1PF0EjquZrUobKIZHTFOUiTtp3 3aGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=PJAzIHr7zm3L/BqWWY3yQGx2Tj/8VP3VJc+zkQ56p5c=; fh=1x/T85rXr8yhgzXWAa7zssXnuyt2jGlhJYPIGFWr6UE=; b=cOMMJ9JPN7qOchflpagV3i1CV4cQkZDl++Bp2bgUE0BfJv2sj2R8xhcecgmch9ocjd OqHGStTMqgr3o/agEy3ouy/VaaGQweIaPXLmgMRRu+7wSKA1QXOCk4X9SciA0NTh6Bs/ NTUn0nC1MtL7gBwJhvB7Zu8PO2Kk7ZLE4orzEfgLraIYBHMsEkbHmnV5zueq2EyUYSeP saDevkc3I4zNfksWauQyFLhjOg9v0w9/PC6KFMXkP89z0UvIJCD2AKLssD4TBrXcqPSB jParvNAhStCbY1nh6t7GYTHQAP0H8ZhP2J3J52xR1tvkDHkB0stJwDQHE6+bwrtBMsAg tQXw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=FEl4zhzI; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com Received: from mx1.emlix.com (mx1.emlix.com. [178.63.209.131]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-b3d91a706adsi14494566b.1.2025.10.01.00.22.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 00:22:55 -0700 (PDT) Received-SPF: pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) client-ip=178.63.209.131; Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id CD2B05F871; Wed, 1 Oct 2025 09:22:54 +0200 (CEST) Message-ID: <3a8541e0-c79d-4b50-bbf4-ab5c1198a94f@emlix.com> Date: Wed, 1 Oct 2025 09:22:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/4] bootstrap: create lock for downloads/deb without sudo To: Cedric Hombourger , isar-users@googlegroups.com References: <20250925065433.4180883-1-cedric.hombourger@siemens.com> <20250925065433.4180883-4-cedric.hombourger@siemens.com> Content-Language: en-US From: Andreas Naumann In-Reply-To: <20250925065433.4180883-4-cedric.hombourger@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Original-Sender: anaumann@emlix.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=FEl4zhzI; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: wzzHaB3gYsRD Am 25.09.25 um 08:54 schrieb 'Cedric Hombourger' via isar-users: > From: "cedric.hombourger@siemens.com" > > The syncin/syncout commands passed to mmdebstrap will create a lock > file in downloads/deb if it does not exist. As mmdebstrap is being > executed as root, the lock would also be owned by root and this will > cause problems for rootless commands that may be executed later (such > as downloading of Debian packages). Create the lock file without > sudo prior to running mmdebstrap for it to be owned by the build user > rather than root. > > Signed-off-by: Cedric Hombourger > --- > meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > index 931f6f13..b2de61ad 100644 > --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > @@ -181,6 +181,10 @@ do_bootstrap() { > && sudo umount $base_apt_tmp \ > && rm -rf --one-file-system $base_apt_tmp' EXIT > > + # Create lock file so that it is owned by the user running the build (not root) > + mkdir -p ${DEBDIR} > + touch ${DEB_DL_LOCK} > + Tested-by: Andreas Naumann Actually by a collegue of mine. > sudo TMPDIR="${BOOTSTRAP_TMPDIR}" mmdebstrap $bootstrap_args \ > $arch_param \ > --mode=unshare \ -- Andreas Naumann emlix GmbH Headquarters: Berliner Str. 12, 37073 Goettingen, Germany Phone +49 (0)551 30664-0, e-mail info@emlix.com District Court of Goettingen, Registry Number HR B 3160 Managing Directors: Heike Jordan, Dr. Uwe Kracke VAT ID No. DE 205 198 055 Office Berlin: Panoramastr. 1, 10178 Berlin, Germany Office Bonn: Bachstr. 6, 53115 Bonn, Germany http://www.emlix.com -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/3a8541e0-c79d-4b50-bbf4-ab5c1198a94f%40emlix.com.