From patchwork Sat Dec 24 10:07:38 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: 2365 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Sat, 24 Dec 2022 11:08:25 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pg1-f191.google.com (mail-pg1-f191.google.com [209.85.215.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2BOA8Nk5019036 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 24 Dec 2022 11:08:24 +0100 Received: by mail-pg1-f191.google.com with SMTP id d10-20020a631d4a000000b00491da16dc44sf3595635pgm.16; Sat, 24 Dec 2022 02:08:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671876498; cv=pass; d=google.com; s=arc-20160816; b=TyvupiSswCY21VGognLIwfP7kGpcOP89pUJWMym44LC9iBCO3hdtonT7leJ9t2dNcx iyKqOyl3pvvMHu0blWKa4LnRzbEsDSNRzdb9LMjHBcrJ0ANhtM22ovECJFV2rG8Xqw7f s7JcImxpBaPRNl1+qdW+iHgf2ebHuS3Fg8JEVXy93mTu8eXzQ77JSoUO9U2kCLie73tA zJZx1JO1eScqpE3EceBXcDGanmAK+PlcwPxxdXXUL6kI1JlPy3TuYbQ7kedY/DXoew/1 0dBnNFppofP1SrM/ZZSpjH/4ybqLrysPGqND+OrElIHnn8kQzHXt0zAPtyZ+dzLIsxOW MPIw== 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=sQyLLBT9JKV+cSYmu7zjtDnObuMckY1GIdqeqdQQvjU=; b=icILO0om8b5FOezoQABxhwZ1CZkJxrAxYK1OpAhyvaDuLx7CoY+FT0DPJTjpBC6ZSF c7K2pB5mSvepx3tRYFdareTo+6RDK9QYjIPmPB1zCwG3d7geQQlL6oW61rYQXn0dp4tQ M8SDv1bGPLnAeVUBxf0l6zlBrj6HL8JGUZB9zGq60+XmpRj6ibDVYAw7+CauOnabAuWe EHEq3Kaf/gGbc9toyZwVMl2lA8bchBsLeOReSIJk78MAiZb03FuAz7VqBK1dsErMzPUf 6dh7yO4gfI29iMOh7MiIb6MtJMDUhg/fNc5fYlqr+OfU1qXCF1OnhkITlJ5hduDbRYsy lvig== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pKZdlDyA; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b 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:message-id:reply-to; bh=sQyLLBT9JKV+cSYmu7zjtDnObuMckY1GIdqeqdQQvjU=; b=MYpdnHAr4sSL4+MVDAfamg4TJ22HAradNvr2OMqzOasTGovCO5nNZyRvyolpUx0QY3 1RwqlSYsXzUI2fxWQcL3iqzZqRjI4ullbiDxfGu5fZds+PdGbBUL5Pe2Tvnd4IimdHCu 7mM+YsbEdF0eAmEH6SD12FQneqajhQCiZJdbj480km45zWjPotJ7/CU6BbhAsdvtfOF4 fqnY4X54mc6DCYe0TKDqu/70AEsctB/YnIYoZZnTNsR/rgbHwEOPRQNI4bZ57qNEZPTN iXZIVLIfde6xzXmtCcXPnvJHk2p5WmjJ4hAd9PPO9OHiiKihPo7BW/kNdnByD3MbLD7t uYTQ== 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:message-id:reply-to; bh=sQyLLBT9JKV+cSYmu7zjtDnObuMckY1GIdqeqdQQvjU=; b=Vki5owU7hT6xTUW1hVutKV7P7s8vDXzc5mW9IZmJHo4zLVuyWwRJjLQ+FqPqkJLW6Y yWWVe/dWW136dMqC9lMPRIJJsnihpMEHZf0tJMwJhR4NxYEL4yd2kxARHKO8Sdu1rBmi eScmYNoWCVrirIdTnpLM+htBviixaiTmL6TMqjmxtPoSM+7lrN/VLW3NOccwMA9q9VFD VIycYlMONKbYwa8s8gwyY3cQCdsruL8Q7SoEhYJhqhGzUtC/lIvL0zrhKrmg9puvmOw3 sduEnh/p4l/4GfI7cCa/TUAKCv1eAeT5nJq4veR0xMnhkBvN4IHhF5FxhdTqqRFkhd7A XQdQ== 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:message-id:reply-to; bh=sQyLLBT9JKV+cSYmu7zjtDnObuMckY1GIdqeqdQQvjU=; b=KpG1fRdXjRtevWtSJ+Tbc0jU7STVb3QupsQrH1RF4TW6eOZsu9712tuRCWNC7RvO+X UFApSrsXaGCFyzvn764RX3Ge06SSDvto4gXN+eoSaH81gAyWIZDsw0FpggFKrLz5KhuS pHdfauA/N4BKijQmzdW4rWLybEvMCK5+0L+Z+JHE1PN+vRBVYevKEGWsYNEvYZIuNvP3 pvMdHz0Pbejnai9T/POL7r6tgxt8SZVxjCUkx8TSkNyCIo4crh/EUuuutgPBzOBB9Oh6 m+lzLsaIXm5J9jjHV+UuIvhEeFrSSiJZSVoKk8FXU4OSGdWGVfKhF3Y2eqCAv+e8YxOl KoZw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AFqh2kp+KBPLgMl5nl1HAlVQ4xn1ItYB8FYP8OSBNlFJbuhEJ/hj0rvS PLEGHcekht2u046p4YdeBUo= X-Google-Smtp-Source: AMrXdXtjqZKQ6svkPR4zPRTe4gBzhuEDq5ch9cEYIPHOriwgaJ/08BAcbczZJWjlnnHAvlhWm2L96g== X-Received: by 2002:a63:e048:0:b0:45f:bf86:c917 with SMTP id n8-20020a63e048000000b0045fbf86c917mr909634pgj.201.1671876497849; Sat, 24 Dec 2022 02:08:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:a015:b0:210:6f33:e22d with SMTP id q21-20020a17090aa01500b002106f33e22dls8010270pjp.2.-pod-control-gmail; Sat, 24 Dec 2022 02:08:17 -0800 (PST) X-Received: by 2002:a05:6a21:3d13:b0:ae:7f1d:1912 with SMTP id bi19-20020a056a213d1300b000ae7f1d1912mr16883196pzc.38.1671876496905; Sat, 24 Dec 2022 02:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671876496; cv=none; d=google.com; s=arc-20160816; b=RERGd7UpBjLpj72H1mrv+pR6E8Ib6EWhEJlVOTBWRH4WlgMeeo14zYLPtFa7Sn9tcO Qbm6M/AetEHZTY3zdQvHHMtTnL7VJ9JcwpTf389PHsawrTYWX69siVVjsaklV1BJwopi b1TpqvRXtHLVk3G/2NaQY7wLRAIMAcVfAZRk2oGlKOyFrpUpC+en1H0IUDU+nhno7QtU wfhkbiXsPykZTUSQ0mZIz+0d+/PAixUB+y5wNnlc7VjpFZeP6aEKUDqaaeB/0Van4Hgk gvAdKNYapD5Qdx3TzuCiQNgVRRz+gAH/UUXYNWGn27oZRKzZ2VW8D9QFkgJK1TJWNiK6 GUlA== 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=6EAUVIDVC436xAAdTrxWgti+fXtxVEnPU1PPd5byQrc=; b=E4GU+FRXe974v/LoCDGA0mvyNJBjUl80kcH14/r6LKIZ6uhaB67LHLIfFXJLHSJO06 TmW9pMoawsCf9ljklME1vLsx6U3mwWs7wXePU5DOxY8lr8qqOFpbuIAzhbAkOBZsRLCd l7Q6gqDsccK/6X8L0ubtgAN27WxeLAmy+HjCw9X0saZT6cyliVOXI05xCIkGcFCydSPI PtGUDpPxJHyJmzOeHeCc4ccw8UV1whKuTrTtqJyR2rpvO7Oei05xjDC2rRHmpFaPdu6f +TS+YbkOZnt68lEv3diF3s9R2/asfddiwq/3IkFawrVra+2vjBtbNmxgR2u82w4je+FD 3Ojg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pKZdlDyA; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com. [2607:f8b0:4864:20::72b]) by gmr-mx.google.com with ESMTPS id i15-20020a170902c94f00b00174ea015ef2si145829pla.5.2022.12.24.02.08.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Dec 2022 02:08:16 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) client-ip=2607:f8b0:4864:20::72b; Received: by mail-qk1-x72b.google.com with SMTP id p12so3408236qkm.0 for ; Sat, 24 Dec 2022 02:08:16 -0800 (PST) X-Received: by 2002:a37:9882:0:b0:6fe:d744:ec56 with SMTP id a124-20020a379882000000b006fed744ec56mr641493qke.203.1671876495818; Sat, 24 Dec 2022 02:08:15 -0800 (PST) MIME-Version: 1.0 From: "Roberto A. Foglietta" Date: Sat, 24 Dec 2022 11:07:38 +0100 Message-ID: Subject: [PATCH v2] scripts/ci_build.sh installs required commands 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=pKZdlDyA; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b 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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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, CI build requires some commands in order to operate properly and some of these are checked to be in the executable path but nothing more. This fix the issue installing them at the beginning of the script. v2: typos fixed patch sent by elastic mail and went in moderation as usual, here in attachment. Best regards, R- From 46ae757d7f90ea817f3087f9e350253b1cfa1a69 Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Sat, 24 Dec 2022 11:01:08 +0100 Subject: [PATCH v2] scripts/ci_build.sh installs required commands CI build requires some commands in order to operate properly and some of these are checked to be in the executable path but nothing more. This fix the issue installing them at the beginning of the script. v2: typos fixed Signed-off-by: Roberto A. Foglietta --- scripts/ci_build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index fa7208c..e897942 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -14,10 +14,18 @@ export PATH=$PATH:/sbin # Go to Isar root cd "$(dirname "$0")/.." +for i in virtualenv umoci skopeo reprepro quilt; do + if ! command -v $i > /dev/null; then + if [ "$updated" == "1" ]; then + sudo apt-get update -qq + fi + sudo apt install -y $i + updated=1 + fi +done + # install avocado in virtualenv in case it is not there already if ! command -v avocado > /dev/null; then - sudo apt-get update -qq - sudo apt-get install -y virtualenv rm -rf /tmp/avocado_venv virtualenv --python python3 /tmp/avocado_venv source /tmp/avocado_venv/bin/activate -- 2.34.1