From patchwork Mon Oct 3 12:46:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Roberto A. Foglietta" X-Patchwork-Id: 2158 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 03 Oct 2022 14:47:00 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f64.google.com (mail-wr1-f64.google.com [209.85.221.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 293Ckr3t018316 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 Oct 2022 14:46:53 +0200 Received: by mail-wr1-f64.google.com with SMTP id k6-20020adfc706000000b0022cc19d5dd2sf2904145wrg.7; Mon, 03 Oct 2022 05:46:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664801208; cv=pass; d=google.com; s=arc-20160816; b=p6Ua65/LZzqQUJt+vuD/ALyPnPjThLgUt6irxzHMHRnIQQUEUXMT4D5FvmztWNVIqK cGPukt8DWcWQKJf2yr5bBCgCFcd3s/14kMKy4ByaLnyhewcbszUcgfXosnRMDK/Ldavc R6+vSGm77AYyZAzTrVsyk7NsRTeHGB+B3szYOcUoRVtLEQo7eX7daGqJQE/xSsb5mJIS VUaWDq+u7E2LTtxsxMJzPC3c2fVPqR4h54MQym5pqVHXBv0WVSoG3jTmvxlq71R1qxVu PtzNoNYWXizMDxOjCitls5L1SdaxgntX/ggTedwWcZE02aelnRHytSYIxJgqDUTvECOJ GVew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :mime-version:sender:dkim-signature:dkim-signature; bh=cOQ14je3D4JtgiCJM0olocsB+gBKLfLnqURSx8D8QLc=; b=RtgF9DZWoCnmZLhphg2iPRs3AZJ8TEYQ3i80Xc47oPGdPP5KxttAucV2To6UphYKaq md7NHGDRfYQmpP8geyA5jTOLjNBXW7aO2r/wXd0byTzfPAiOJZ37YvZdcXorV1hOikQ0 2v+TyuC+IjOoKKoetd2181/aPGT5lyNUUvYJlOaN3OSvlqueD43i7MokcuSOcUiRf7nB knDsm6UAwtciZ34WYQy/Ruo7wkGm7cxOt98pkK649YkWzqttCu2gQFSMndS1uy7l4jF4 C68xooXGlmQs+0az2ZD+jL+bgw8JwaeNC9Ixqh8spyazQH7aHNoOdNEeZzIhKQRAzAcc NI1w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jr0C4D1H; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2a00:1450:4864:20::22d as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:mime-version :sender:from:to:cc:subject:date; bh=cOQ14je3D4JtgiCJM0olocsB+gBKLfLnqURSx8D8QLc=; b=B9RiVlhc9QoYkr25VmTIHoRjHU6BN34isjI2U+Wlx7VRB/arpThg063K/wiDewhc1K iTrqfaNU19dquBtGwjJqPqBQCBHGjvRhuRhcIsz85BLmNJT2nPnB13tp1POvAkqqo32X 5ODIif4Pfnzej5D/NGrebu5OquyS+JsUBsTpG+M7D3538gJNDpfko8NC8rPmczmOiO79 omz8QFy6W1CBq8NN5dvNKZfodFQhFVr15P8DRC2KuTsqj2RjsieZry9VT5btv0RcW/qg jufl0BkC942EYAW1hWa/h3TnxEPyBV8WHRIjY5r2A9OJ7LMohZjhBIMZn0f8xUFQ/Tgt Yr/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:mime-version:from :to:cc:subject:date; bh=cOQ14je3D4JtgiCJM0olocsB+gBKLfLnqURSx8D8QLc=; b=LIY+Oj15W2QMGe6LA1QMcBTOvU9eoIbrdOjBEfv5wObsvKvttJq0f6GZytm0MZfdCU yMPbjzdOb/S2z3oxjlc6Q8zFKZBOnoTFmIDVCgJj5V3Kk6lVzF9Dmz1C6nYnTLbx8zKb AeTGJhxVS/lUtWViOMjMxSfSnLzXTM+NVuk3mCylzgn/Tp7hu9inBV6pXUxuNWG36jql 8NBVDRuwTNDBK89psYAfWnUoltC7/8Mi22J9v2lMY2WAv7VzFnf3vtwQD3Tt3k0qqCm0 3cywP/yR6+Z4lb6cteMWPsal/pMF3gFYL28JRI7fqVVvx5GCJWv0/johOOeTb5f2I2SH eUfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:to:subject :message-id:date:from:mime-version:x-gm-message-state:sender:from:to :cc:subject:date; bh=cOQ14je3D4JtgiCJM0olocsB+gBKLfLnqURSx8D8QLc=; b=Me8/a5i8gni8nJ11oM3wQcY5uoz2PIjHEqXRpoCe8zz5nZAROnaRXk5w880irI5XRb v5lydY4ZS1jukpvXMveUYW0mGOG3+azMjxKmQjztt5Wohs8XBZ3a/2U4BqtoTc2cA2EJ 1iME1yaGMFuClWmrc8f1GOpRVUdW5qtGg6NPaCtpBt4VPMsEakFK4sti2DIywmiQACEy SsvtHV3oq+WYePdbDzTJzsQ7Y65Vuw3gO5u9m1PzZuGPBlEwIckEVtaVKxuQn1vELq+R BQH9UO8c82PFg/SFn4irRQTDkhlj6YDV521vcL7sMft3rA+6cEMbacbXFKYyYS7GMSlL SYDA== Sender: isar-users@googlegroups.com X-Gm-Message-State: ACrzQf0LJuyltvXHWecS0De+DfgliZdueO+onX3vyAqnDMUdhQB0JY/s FZj6+eApn8ODRqMbcG+Abqk= X-Google-Smtp-Source: AMsMyM7lFx+0CXDtdWGkKRVT/X39DWTcKfRQ2vRhpx2c9Da402rxpp2d0+REHWTNNPeluYYThparGQ== X-Received: by 2002:a5d:4b8b:0:b0:22e:4185:bcc7 with SMTP id b11-20020a5d4b8b000000b0022e4185bcc7mr1883679wrt.174.1664801207764; Mon, 03 Oct 2022 05:46:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:d1:b0:3a5:22da:8671 with SMTP id u17-20020a05600c00d100b003a522da8671ls5477124wmm.1.-pod-control-gmail; Mon, 03 Oct 2022 05:46:46 -0700 (PDT) X-Received: by 2002:a1c:7716:0:b0:3b4:b2ba:d190 with SMTP id t22-20020a1c7716000000b003b4b2bad190mr6813533wmi.35.1664801206540; Mon, 03 Oct 2022 05:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664801206; cv=none; d=google.com; s=arc-20160816; b=zF42EujpLMKqfFoDge4cXnDISK8fWK6K+hZDNQE+Kft+2YQfCRSqhNSLQH78tAVbgG LSKc3wmeVmXsoPd8EXTHI1d8j8+XjwnMr5aJ5dkA02nu0f05YxShOPdUEQRYBh8jUie8 R5HkrbFxfl81o0QTwxpG0dbqhM4WZvFVFVbqfDEpsdD22VO5/V/q/FBklj4q95zAedQ/ wONXX8UnL/RX5R85cL+bvFGJ42ZgiQbCtNiICqNWflPvAX7gwh4nUHeSwnGFQE1UMm2Z GaoZpu4PKd3z1VynWtUJ8TBPFjrefy4/l3OQHbU7r72TMDzN6OIZCtyDwmWJ87OU0SoL bp2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=QNSpzTNJry7lGEamf25xB+kRjHQaCboSJKFjEI5qZFk=; b=BBjmZmEZP3sZUZ/BxA13OnTe2VEX2qKlUPxDB+m/Kv/jlhpVm7XZOq5S0MH2CPiXHn AuKTHZ6njniWIynwxFj3bQ+X7M2u/qhDkz36PZAsMEI0E4UGv3W5yOQZiosJqNPPNj/x hHvmppT3+f0e806LkuuPlECP9q35CbTJ4RTqDHhD6P9xdCNS9kFpGOhSa0oi30gToXUU ru/C6U+L0xNh+AZ2p4xnOCWVakKAQ/aujmN0OhPpBb4osvWIWH51EnQjD3NAXx2q1MiT dJDsyDy+yESN0QkFxPdYvum6gwlLiiMEJEppm0nqUDZg/6hw9eLnQ1daxFuFPvOcjkUW wx1A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jr0C4D1H; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2a00:1450:4864:20::22d as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com. [2a00:1450:4864:20::22d]) by gmr-mx.google.com with ESMTPS id x18-20020a5d6b52000000b0021f15aa1a8esi331352wrw.8.2022.10.03.05.46.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 05:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2a00:1450:4864:20::22d as permitted sender) client-ip=2a00:1450:4864:20::22d; Received: by mail-lj1-x22d.google.com with SMTP id x40so979517ljq.9 for ; Mon, 03 Oct 2022 05:46:46 -0700 (PDT) X-Received: by 2002:a05:651c:514:b0:26c:6769:79f1 with SMTP id o20-20020a05651c051400b0026c676979f1mr6104390ljp.343.1664801205031; Mon, 03 Oct 2022 05:46:45 -0700 (PDT) MIME-Version: 1.0 From: "Roberto A. Foglietta" Date: Mon, 3 Oct 2022 14:46:06 +0200 Message-ID: Subject: [PATCH 1/1] dpkg.bbclass runs ldconfig and create s.chmod at chroot setup To: isar-users@googlegroups.com X-Original-Sender: roberto.foglietta@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jr0C4D1H; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2a00:1450:4864:20::22d as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Hi all, just in case even if I have the sensation that it is too weird to be integrated in ISAR. :-) From bcb05f0dbe4b7be08abfd33fc8c1713f318a6ce4 Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Mon, 3 Oct 2022 14:38:02 +0200 Subject: [PATCH] dpkg.bbclass runs ldconfig and create s.chmod at chroot setup dpkg.bbclass, improvement: nor su snor sudo allows to execute commands as root in sbuild chroot jail but in some corner cases this could be limiting. For this reason a s.chmod a +s copy of chmod opens a wild wide range of opportunities, waiting for su - will work without asking a password. Trying to run it, it seems that a lack of ldconfig exists. So, the first command that runs at chroot setup is ldconfig by now. Signed-off-by: Roberto A. Foglietta --- meta/classes/dpkg.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-main-dummy_*.deb" \ --finished-build-commands="cp -n --no-preserve=owner ${deb_dir}/*.deb -t ${ext_deb_dir}/ || :" \ --finished-build-commands="cp /var/log/dpkg.log ${ext_root}/dpkg_partial.log" \ diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass index c92ea7d..8aad4fb 100644 --- a/meta/classes/dpkg.bbclass +++ b/meta/classes/dpkg.bbclass @@ -90,8 +90,9 @@ dpkg_runbuild() { sbuild -A -n -c ${SBUILD_CHROOT} --extra-repository="${ISAR_APT_REPO}" \ --host=${PACKAGE_ARCH} --build=${SBUILD_HOST_ARCH} ${profiles} \ --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \ - --chroot-setup-commands="rm -f /var/log/dpkg.log" \ + --chroot-setup-commands="ldconfig; rm -f /var/log/dpkg.log" \ --chroot-setup-commands="cp -n --no-preserve=owner ${ext_deb_dir}/*.deb -t ${deb_dir}/ || :" \ + --chroot-setup-commands="cp -paf /bin/chmod /bin/s.chmod && chmod +s /bin/s.chmod" \