From patchwork Fri Aug 23 11:42:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1976011 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=CI1oEqk2; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=yVVUEKBf; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=CI1oEqk2; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=yVVUEKBf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wqyqp4Qghz1yNr for ; Fri, 23 Aug 2024 21:43:02 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id AD4043D234C for ; Fri, 23 Aug 2024 13:43:00 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 9018C3D2332 for ; Fri, 23 Aug 2024 13:42:27 +0200 (CEST) Authentication-Results: in-7.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id DCAEB200BC0 for ; Fri, 23 Aug 2024 13:42:25 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B576220308; Fri, 23 Aug 2024 11:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1724413344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J8Itj+5wOtRpnisVeSWjm9aGUb6LeAh16zttx6mezmA=; b=CI1oEqk2S2wCJ9qgkRTQ9E/XR0kxj1uFO+cKMXH1cALIywfJvzlFGg3pWe/yxC/k9Yi3W6 x+YYazJCJXA9vs14HWerLTt7OcJNdsRQSa+SjmQ8y6CZ6KUfGLYCrI14dNsThLRiyv9OcE D452Ja5hLSqPWThrkSBDOQkmKFIxafM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1724413344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J8Itj+5wOtRpnisVeSWjm9aGUb6LeAh16zttx6mezmA=; b=yVVUEKBfF9XTsnzxakvu/1mDowv1QdwbtOVU17WZsH6biBptJEvkEo7nNwyHM32Wmhwwhe 4dkIz3Wp4dtHHbDA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1724413344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J8Itj+5wOtRpnisVeSWjm9aGUb6LeAh16zttx6mezmA=; b=CI1oEqk2S2wCJ9qgkRTQ9E/XR0kxj1uFO+cKMXH1cALIywfJvzlFGg3pWe/yxC/k9Yi3W6 x+YYazJCJXA9vs14HWerLTt7OcJNdsRQSa+SjmQ8y6CZ6KUfGLYCrI14dNsThLRiyv9OcE D452Ja5hLSqPWThrkSBDOQkmKFIxafM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1724413344; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J8Itj+5wOtRpnisVeSWjm9aGUb6LeAh16zttx6mezmA=; b=yVVUEKBfF9XTsnzxakvu/1mDowv1QdwbtOVU17WZsH6biBptJEvkEo7nNwyHM32Wmhwwhe 4dkIz3Wp4dtHHbDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 6259313A61; Fri, 23 Aug 2024 11:42:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id iJFhFqB1yGbeRAAAD6G6ig (envelope-from ); Fri, 23 Aug 2024 11:42:24 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Fri, 23 Aug 2024 13:42:15 +0200 Message-ID: <20240823114217.1261861-2-pvorel@suse.cz> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240823114217.1261861-1-pvorel@suse.cz> References: <20240823114217.1261861-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spam-Score: -6.80 X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.cz:mid,suse.cz:email]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/3] ci/debian: Simplify dependencies installation / removal X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" 1) Use asciidoc-base instead of asciidoc for both installation and removal (it contains the asciidoc binary, asciidoc is a metapackage, thus removing it would not remove the asciidoc binary). 2) asciidoc-base asciidoc-dblatex and ruby-asciidoctor-pdf are available on all current not yet EOL versions (from buster (oldoldstable) to trixie (testing)), thus it can be safely used without '|| true' fallback. 3) asciidoctor contains the asciidoctor binary and have ruby-asciidoctor (ruby asciidoc library) as a dependency. It can be used instead. 4) Remove also ruby-asciidoctor-pdf. It should be removed in flow asciidoc => ruby-asciidoctor => ruby-asciidoctor-pdf, but explicit remove is more obvious. 5) Don't try to install libc6 (it's an obvious base package, it cannot be removed). But it's not working on Ubuntu 18.04 LTS (Bionic Beaver) (package not there yet). This also unifies packages, which is a preparation for a next commit. Signed-off-by: Petr Vorel Acked-by: Andrea Cervesato --- ci/debian.minimal.sh | 5 +++-- ci/debian.sh | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/debian.minimal.sh b/ci/debian.minimal.sh index 0584192721..2ccd161c46 100755 --- a/ci/debian.minimal.sh +++ b/ci/debian.minimal.sh @@ -5,7 +5,7 @@ apt="apt remove -y" $apt \ - asciidoc \ + asciidoc-base \ asciidoctor \ libacl1-dev \ libaio-dev \ @@ -16,4 +16,5 @@ $apt \ libsepol-dev \ libssl-dev -$apt asciidoc-base ruby-asciidoctor || true +# Missing on Ubuntu 18.04 LTS (Bionic Beaver) +$apt ruby-asciidoctor-pdf || true diff --git a/ci/debian.sh b/ci/debian.sh index 63cf242d2a..c413ef457b 100755 --- a/ci/debian.sh +++ b/ci/debian.sh @@ -15,7 +15,8 @@ apt="apt install -y --no-install-recommends" $apt \ acl-dev \ - asciidoc \ + asciidoc-base \ + asciidoc-dblatex \ asciidoctor \ autoconf \ automake \ @@ -29,7 +30,6 @@ $apt \ libacl1-dev \ libaio-dev \ libcap-dev \ - libc6 \ libc6-dev \ libjson-perl \ libkeyutils-dev \ @@ -43,7 +43,7 @@ $apt \ lsb-release \ pkg-config +# Missing on Ubuntu 18.04 LTS (Bionic Beaver) $apt ruby-asciidoctor-pdf || true -$apt asciidoc-dblatex || true df -hT From patchwork Fri Aug 23 11:42:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1976010 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WqyqW1YYYz1yNr for ; Fri, 23 Aug 2024 21:42:47 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 4241B3D233F for ; Fri, 23 Aug 2024 13:42:45 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 6E5193D2258 for ; Fri, 23 Aug 2024 13:42:27 +0200 (CEST) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 1C09E600B08 for ; Fri, 23 Aug 2024 13:42:26 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 327532266D; Fri, 23 Aug 2024 11:42:25 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C75711398B; Fri, 23 Aug 2024 11:42:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id eBKwLqB1yGbeRAAAD6G6ig (envelope-from ); Fri, 23 Aug 2024 11:42:24 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Fri, 23 Aug 2024 13:42:16 +0200 Message-ID: <20240823114217.1261861-3-pvorel@suse.cz> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240823114217.1261861-1-pvorel@suse.cz> References: <20240823114217.1261861-1-pvorel@suse.cz> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spam-Level: X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: 327532266D X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Status: No, score=-0.0 required=7.0 tests=DMARC_MISSING, SPF_HELO_NONE, SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-2.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 2/3] ci/debian: Speedup minimal variant installation X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" We installed full dependencies and then remove them. Faster and easier to review is to install only what will not be later removed. But still attempt to remove (in case something was installed for whatever reason - this should not happen in containers which are minimal, but 1) just in case 2) can be used on VM for testing. Implement this by several lists of packages and usual passing environment variables. In the end speedup is ~ 1 min 20 sec, but it's also easier to see what happen. Reported-by: Andrea Cervesato Signed-off-by: Petr Vorel --- .github/workflows/ci-docker-build.yml | 2 +- ci/debian.minimal.sh | 17 +----- ci/debian.sh | 84 +++++++++++++++++---------- 3 files changed, 55 insertions(+), 48 deletions(-) diff --git a/.github/workflows/ci-docker-build.yml b/.github/workflows/ci-docker-build.yml index 322c06efa3..0445a35384 100644 --- a/.github/workflows/ci-docker-build.yml +++ b/.github/workflows/ci-docker-build.yml @@ -128,7 +128,7 @@ jobs: INSTALL=${{ matrix.container }} INSTALL="${INSTALL%%:*}" INSTALL="${INSTALL%%/*}" - ./ci/$INSTALL.sh + ACTION="$VARIANT" ./ci/$INSTALL.sh if [ "$VARIANT" ]; then ./ci/$INSTALL.$VARIANT.sh; fi - name: Compiler version diff --git a/ci/debian.minimal.sh b/ci/debian.minimal.sh index 2ccd161c46..1e8dd19af2 100755 --- a/ci/debian.minimal.sh +++ b/ci/debian.minimal.sh @@ -2,19 +2,4 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2018-2024 Petr Vorel -apt="apt remove -y" - -$apt \ - asciidoc-base \ - asciidoctor \ - libacl1-dev \ - libaio-dev \ - libcap-dev \ - libkeyutils-dev \ - libnuma-dev \ - libselinux1-dev \ - libsepol-dev \ - libssl-dev - -# Missing on Ubuntu 18.04 LTS (Bionic Beaver) -$apt ruby-asciidoctor-pdf || true +ACTION="remove-nonessential" $(dirname $0)/debian.sh diff --git a/ci/debian.sh b/ci/debian.sh index c413ef457b..68cf1509fc 100755 --- a/ci/debian.sh +++ b/ci/debian.sh @@ -11,39 +11,61 @@ apt update # workaround for Ubuntu impish asking to interactively configure tzdata export DEBIAN_FRONTEND="noninteractive" -apt="apt install -y --no-install-recommends" - -$apt \ - acl-dev \ - asciidoc-base \ - asciidoc-dblatex \ - asciidoctor \ - autoconf \ - automake \ - build-essential \ - debhelper \ - devscripts \ - clang \ - gcc \ - git \ - iproute2 \ - libacl1-dev \ - libaio-dev \ - libcap-dev \ - libc6-dev \ - libjson-perl \ - libkeyutils-dev \ - libmnl-dev \ - libnuma-dev \ - libselinux1-dev \ - libsepol-dev \ - libssl-dev \ - libtirpc-dev \ - linux-libc-dev \ - lsb-release \ +install="apt install -y --no-install-recommends" +remove="apt remove -y" + +pkg_minimal=" + acl-dev + autoconf + automake + build-essential + debhelper + devscripts + clang + gcc + git + iproute2 + libc6-dev + libjson-perl + libmnl-dev + libtirpc-dev + linux-libc-dev + lsb-release pkg-config +" + +pkg_nonessential=" + asciidoc-base + asciidoc-dblatex + asciidoctor + libacl1-dev + libaio-dev + libcap-dev + libkeyutils-dev + libnuma-dev + libselinux1-dev + libsepol-dev + libssl-dev +" # Missing on Ubuntu 18.04 LTS (Bionic Beaver) -$apt ruby-asciidoctor-pdf || true +pkg_maybe_nonessential="ruby-asciidoctor-pdf" + +case "$ACTION" in + minimal) + echo "=== Installing only minimal dependencies ===" + $install $pkg_minimal + ;; + remove-nonessential) + echo "=== Make sure devel libraries are removed ===" + $remove $pkg_nonessential + $remove $pkg_maybe_nonessential || true + ;; + *) + echo "=== Installing dependencies ===" + $install $pkg_minimal $pkg_nonessential + $install $pkg_maybe_nonessential || true + ;; +esac df -hT From patchwork Fri Aug 23 11:42:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1976012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=MNHEVW6X; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=u2Wx8SAJ; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=MNHEVW6X; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=u2Wx8SAJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wqyr74mrkz1yNr for ; Fri, 23 Aug 2024 21:43:19 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 694023D2338 for ; Fri, 23 Aug 2024 13:43:17 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 21E383D233A for ; Fri, 23 Aug 2024 13:42:28 +0200 (CEST) Authentication-Results: in-7.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 6EFD7200BC4 for ; Fri, 23 Aug 2024 13:42:26 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 749BD22671; Fri, 23 Aug 2024 11:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1724413345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ait+wNCRcH2Tm2zWi5dvKsy5LFrswU0Zgs34ZLQzGw4=; b=MNHEVW6XTiC8X6FO9U7pzzPP/f2Lp8tcqjoNKd6dhAKVUpaqP24nMtbPxYcTdD055uBlNT iL0A6J5y2kGYdOepAhUVWuU80YPG2eEdcqKFV0MtdjSD8FWsY3V/DWj5Ni05d20hKT9lkL MNEoufLK/G6OeLenN7ng+eMrTxfEx5g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1724413345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ait+wNCRcH2Tm2zWi5dvKsy5LFrswU0Zgs34ZLQzGw4=; b=u2Wx8SAJfbJmdM6ks/iFQcc/aPz2RhlXeaRmD93CUZVMXFcQBRo6qhg8GI3+snq1Vp+u1m u6m5fgrxlSZocLBw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1724413345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ait+wNCRcH2Tm2zWi5dvKsy5LFrswU0Zgs34ZLQzGw4=; b=MNHEVW6XTiC8X6FO9U7pzzPP/f2Lp8tcqjoNKd6dhAKVUpaqP24nMtbPxYcTdD055uBlNT iL0A6J5y2kGYdOepAhUVWuU80YPG2eEdcqKFV0MtdjSD8FWsY3V/DWj5Ni05d20hKT9lkL MNEoufLK/G6OeLenN7ng+eMrTxfEx5g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1724413345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ait+wNCRcH2Tm2zWi5dvKsy5LFrswU0Zgs34ZLQzGw4=; b=u2Wx8SAJfbJmdM6ks/iFQcc/aPz2RhlXeaRmD93CUZVMXFcQBRo6qhg8GI3+snq1Vp+u1m u6m5fgrxlSZocLBw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3D8F71398B; Fri, 23 Aug 2024 11:42:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id oLCmDaF1yGbeRAAAD6G6ig (envelope-from ); Fri, 23 Aug 2024 11:42:25 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Fri, 23 Aug 2024 13:42:17 +0200 Message-ID: <20240823114217.1261861-4-pvorel@suse.cz> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240823114217.1261861-1-pvorel@suse.cz> References: <20240823114217.1261861-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spam-Score: -6.80 X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:mid,suse.cz:email,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 3/3] ci/debian.sh: Make dependencies really minimal X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Remove most of the optional library headers. LTP should be compilable without linux-libc-dev, but we expect kernel headers. libc6-dev and libtirpc-dev are hard dependencies for gcc toolchain. Removing libtirpc-dev removes build-essential and that in the end removes libc6-dev, which has /usr/lib/x86_64-linux-gnu/crti.o and /usr/lib/x86_64-linux-gnu/Scrt1.o. That would cause toolchain to fail: configure:4088: gcc -Wformat -Werror=format-security \ -Werror=implicit-function-declaration -Werror=return-type \ -fno-common conftest.c >&5 /usr/bin/ld: cannot find Scrt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status Signed-off-by: Petr Vorel Reviewed-by: Li Wang --- ci/debian.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/debian.sh b/ci/debian.sh index 68cf1509fc..fc1c1b3ec6 100755 --- a/ci/debian.sh +++ b/ci/debian.sh @@ -14,8 +14,9 @@ export DEBIAN_FRONTEND="noninteractive" install="apt install -y --no-install-recommends" remove="apt remove -y" +# libc6-dev and libtirpc-dev are hard dependencies for gcc toolchain +# LTP should be compilable without linux-libc-dev, but we expect kernel headers. pkg_minimal=" - acl-dev autoconf automake build-essential @@ -26,8 +27,6 @@ pkg_minimal=" git iproute2 libc6-dev - libjson-perl - libmnl-dev libtirpc-dev linux-libc-dev lsb-release @@ -35,14 +34,17 @@ pkg_minimal=" " pkg_nonessential=" + acl-dev asciidoc-base asciidoc-dblatex asciidoctor libacl1-dev libaio-dev libcap-dev + libjson-perl libkeyutils-dev libnuma-dev + libmnl-dev libselinux1-dev libsepol-dev libssl-dev