From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTPS id 2B86F3858425 for ; Mon, 8 Nov 2021 17:18:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B86F3858425 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-411-GykB5zpbNHCL5cpFqEIG7A-1; Mon, 08 Nov 2021 12:18:02 -0500 X-MC-Unique: GykB5zpbNHCL5cpFqEIG7A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C414719253CD; Mon, 8 Nov 2021 17:18:00 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.82]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C324A60657; Mon, 8 Nov 2021 17:17:44 +0000 (UTC) From: Florian Weimer To: Lukasz Majewski Cc: Joseph Myers , Adhemerval Zanella , Carlos O'Donell , Andreas Schwab , libc-alpha@sourceware.org Subject: Re: [PATCH] ci: Check for necessary Debian packages when running build-many-glibcs.py References: <20211108165255.15600-1-lukma@denx.de> Date: Mon, 08 Nov 2021 18:17:42 +0100 In-Reply-To: <20211108165255.15600-1-lukma@denx.de> (Lukasz Majewski's message of "Mon, 8 Nov 2021 17:52:55 +0100") Message-ID: <87bl2uh8i1.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2021 17:18:07 -0000 * Lukasz Majewski: > The build-many-glibc.py can be run on a 'vanila' Debian distribution > (as for example in docker container), which don't have by default > installed some packages (like flex). > > This causes build break at late stage of the full build; > ../src/scripts/build-many-glibcs.py . checkout --replace-sources && > ../src/scripts/build-many-glibcs.py . host-libraries && > ../src/scripts/build-many-glibcs.py . compilers && > ../src/scripts/build-many-glibcs.py . glibcs > > To avoid such situation, this check has been added to inform user > early of required (and missing) Debian packages. > > The same approach (with using the 'distro' python module) can be > applied to Fedora or Suse. I would recommend searching for required tools on PATH, using shutil.which. This should work on any distribution. If I recall correctly, the non-obvious tools are: bison flex git makeinfo patch tar Thanks, Florian