From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-045.btinternet.com (mailomta28-sa.btinternet.com [213.120.69.34]) by sourceware.org (Postfix) with ESMTPS id 59E303858C83 for ; Tue, 16 May 2023 15:54:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59E303858C83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk Received: from sa-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.38.7]) by sa-prd-fep-045.btinternet.com with ESMTP id <20230516155439.KPQT5235.sa-prd-fep-045.btinternet.com@sa-prd-rgout-004.btmx-prd.synchronoss.net>; Tue, 16 May 2023 16:54:39 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 6406812D0866B95D X-Originating-IP: [86.140.69.19] X-OWM-Source-IP: 86.140.69.19 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehledgleefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpefhffevueeitefgieeltddviedtjedvfeduledtgeduheefheffvddtjedtffelheenucffohhmrghinheptgihghifihhnrdgtohhmpdhgihhthhhusgdrtghomhenucfkphepkeeirddugedtrdeiledrudelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdeingdpihhnvghtpeekiedrudegtddrieelrdduledpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepuehrihgrnhdrkfhnghhlihhssefuhhgrfidrtggrpdhrtghpthhtoheptgihghifihhnqdgrphhpshestgihghifihhnrdgtohhmpdhrvghvkffrpehhohhsthekiedqudegtddqieelqdduledrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghu shgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepshgrqdhprhguqdhrghhouhhtqddttdeg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.106] (86.140.69.19) by sa-prd-rgout-004.btmx-prd.synchronoss.net (5.8.814) (authenticated as jonturney@btinternet.com) id 6406812D0866B95D; Tue, 16 May 2023 16:54:39 +0100 Message-ID: <35aed14c-b786-996f-55eb-ecf9b59c9da8@dronecode.org.uk> Date: Tue, 16 May 2023 16:54:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: scallywag mingw64 complain cross-tools not installed before installs decided To: Brian Inglis , "cygwin-apps@cygwin.com" References: <7de1702b-3869-ad36-dfaa-539b582969b9@Shaw.ca> Content-Language: en-GB From: Jon Turney In-Reply-To: <7de1702b-3869-ad36-dfaa-539b582969b9@Shaw.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 16/05/2023 05:58, Brian Inglis via Cygwin-apps wrote: > Just recently noticed this has been happening as builds succeeded; see: > > https://cygwin.com/cgi-bin2/jobs.cgi?srcpkg=mingw64-x86_64-nghttp2&status=build+succeeded&user=Brian+Inglis&id=6354 > https://github.com/cygwin/scallywag/actions/runs/4968984196 > > https://cygwin.com/cgi-bin2/jobs.cgi?srcpkg=mingw64-x86_64-nghttp2&status=build+succeeded&user=Brian+Inglis&id=5367 > https://github.com/cygwin/scallywag/actions/runs/4225550616 > > scallywag: repository contains cygport mingw64-x86_64-nghttp2.cygport > scallywag: cygport vars failed, exit status 1 > scallywag: /usr/share/cygport/cygclass/cross.cygclass: line 142: > x86_64-w64-mingw32-gcc: command not found > *** ERROR: This package requires x86_64-w64-mingw32 binutils and gcc > > scallywag: > scallywag: parsing cygport > /cygdrive/d/a/scallywag/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2.cygport This isn't actually a new problem, although it's probably more clearly reported now. The problem is that some cygport classes perform environment checks in free code (not as part of any function) e.g. 'inherit cross' immediately checks for the CROSS_HOST complier. This interacts badly with cygport commands which aren't actually one of the build steps, and particularly with 'cygport vars BUILD_REQUIRES' (which scallywag wants to use to determine what packages need to be installed) To make things (usually) work in this situation, scallywag falls back to trying to parse the cygport file to extract variables (as we did before 'cygport vars' was implemented) - which succeeds because it doesn't try to execute the cygport, but is much less reliable in terms of giving correct answers, since it only understands literal string assignments, and can't understand e.g. shell variable expansions etc. The real fix is for someone to rearrange things in cygport, so that these checks only occur before the build-steps which they are actually prerequisites for, but that hasn't happened yet...