DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5ARLBsSk3965089 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5ARLBsSk3965089 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=E7cn2iII X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18477385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1764277912; bh=sVhHl/E0lFl4p+MhXuLqBwBo3SbRSZcIkIaKkqyBIbk=; h=Date:Subject:References:Cc:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=E7cn2iIIcot9ji6nzwHlcGpFlrKGY0189N6pqnpHzvw1RQcckvxdh8KPY0nKUlh5P L0TsOU96GQ8c5Ct9B4X6VMNYHh2gGdHkTkP0+M3BeOMxMW9lBjIlths/WffQPFMi6q ok4jcsNz3fxw9xyvDCzAVl38wdOhrZoTGV5yPHJA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 415723858C78 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 415723858C78 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764277886; cv=none; b=r2GKOsCqqhisHjQL02H+odvmWWDVRoDydHMqWx7pF2r4RLZu7K4OM7+U2C0KAExXTEV8faQ38yYM+E60O+dOzzUTOKJwRKKVnAS8uPR+3G9kcf1txu3dNXifn8xGBzongMI6Kd2ZcDuGWoMlKmkS6fjOJ0YxsVt3RvRNAlll6fw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764277886; c=relaxed/simple; bh=pwalXlpWO8ijWsXqydt2Q933bvRKHQgZ5eTf5rxx+HM=; h=Message-ID:Date:MIME-Version:Subject:From; b=O2OOCzuBTIDKWqvA0Q2sht26P0gATUt2TU2JKz6vnSXd9hq/g0rwAacoo2r2QJwOJaYHUmDU625kN1Hq6Twm7ho5091KHfBFAIrNngYP71ywrRXbwpGgVVL4/ehqhnDw/Eplbbh6b9NX/R2/2agIA1cd3vz8MltgK9CaUpgoDXc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 415723858C78 X-SNCR-Rigid: 68CA1CA00723CCC4 X-Originating-IP: [86.139.199.212] X-OWM-Source-IP: 86.139.199.212 X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-VadeSecure-score: verdict=clean score=30/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeekvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecumhhishhsihhnghcuvffquchfihgvlhguucdlfedtmdenucfjughrpefkffggfgfufhfhvegjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeegiefhhfevtdegfedvveeifeejtdehteevieehgfdvffeigedthfefieektdeijeenucffohhmrghinheptgihghifihhnrdgtohhmnecukfhppeekiedrudefledrudelledrvdduvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtlegnpdhinhgvthepkeeirddufeelrdduleelrddvuddvpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdprhgvvhfkrfephhhoshhtkeeiqddufeelqdduleelqddvuddvrdhrrghnghgvkeeiqddufeelrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhurhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpegsthhprhgurhhgohdttdeipdhnsggprhgtphhtthhopedupdhr tghpthhtoheptgihghifihhnsegthihgfihinhdrtghomh X-RazorGate-Vade-Verdict: clean 30 X-RazorGate-Vade-Classification: clean Message-ID: <956df1ad-b196-4c19-9ae2-94528ad4a33c@dronecode.org.uk> Date: Thu, 27 Nov 2025 21:11:23 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: cygport no longer archives ${NAME}-${VERSION}-${RELEASE}.cygwin.patch into source package automatically References: <20251127165737 DOT 97e1d550925978036c854cfd AT nifty DOT ne DOT jp> <20251127224642 DOT 8edb5934f4df01416675d4b6 AT nifty DOT ne DOT jp> <20251127235915 DOT 5909aa3624e28dc314ad5773 AT nifty DOT ne DOT jp> Content-Language: en-US Cc: cygwin AT cygwin DOT com In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 27/11/2025 16:41, Corinna Vinschen via Cygwin wrote: > On Nov 27 23:59, Takashi Yano via Cygwin wrote: >> On Thu, 27 Nov 2025 14:20:31 +0000 >> Jon Turney wrote: >>> On 27/11/2025 13:46, Takashi Yano via Cygwin wrote: >>>> On Thu, 27 Nov 2025 16:57:37 +0900 >>>> Takashi Yano wrote: >>>>> One year ago, cygport archives ${NAME}-${VERSION}-${RELEASE}.cygwin.patch >>>>> into source package automatically. However, it does not seem to archive now. >>>>> >>>>> Is this intentional behaviour? >>> >>> Yes. >>> >>> I did some work a while ago to simplify the functionality this ancient >>> and confusing mechanism provided. >>> >>> Briefly, the .cygwin.patch file is applied to an empty ${C} directory to >>> create a set of files. Cygwin READMEs, custom post-install/pre-remove >>> scripts and shell profile scripts found in ${C} are then automatically >>> installed (as per the "Postinstall" chapter in the cygport reference >>> manual). >>> >>> This is just strange, and kind of awkward to work with when building >>> from a packaging repo, as you can't work directly with these files, only >>> a patch which makes them. >>> >>> So I added a new mechanism where these files can be named in CYGWN_FILES >>> and are directly included in the source archive, instead. >>> >>> [1] >>> https://cygwin.com/cgit/cygwin-apps/cygport/commit/?id=0b0066f3e778f760ca36a4454fe52eb603f9cf9d >>> >>>> Downgrading diffutils to 3.10-1 solve the issue. >>> >>> I though this was a different change where there's a new (benign) >>> warning in diff (about diff-ing against an empty or non-existent >>> directory?) which leaks out through cygport (that I maybe need to work >>> out how to squelch or avoid). >>> >>> But now you have me thinking that it's more serious than that? >> >> Yes. For example, currently, the source package of bvi includes >> bvi-1.4.2-1.cygwin.patch, however, it will be lost if the source >> package is rebuild in current environment. > > Wouldn't it be better to drop .cygwin.patch entirely and create > explicit patch files applied via PATCH_URI? Imho, these things don't belong in patches at all, since they are just plain files. Since the .cygwin.patch file in the bvi package only creates a README file (to be installed in usr/share/doc/Cygwin), the 'modern' solution is place it next to the cygport. (You don't even need to write CYGWIN_FILES="README", since that's the default if a file with that name exists). (Of course, if you have other files (not the aforementioned README, post-install/pre-remove and shell profile scripts) that you want to add to the source package, you can (as always) just add them to SRC_URI, and then write instructions in your cygport to install them from $S as needed. However, Takashi-san has identified a bug here: cygport uses 'diff || true' to generate the patch (to avoid seeing the exit status of 1 that diff generates if there are differences), so cygport is swallowing any error reported by diff (exit status 2). But it seems that diff 3.11 or 3.12 now considers it an error to diff against a non-existent directory (which is what cygport has been diffing ${C} against to generate the .cygwin.patch file, since forever). This is the cause of the 'diff: Is a directory' message seen while building a package - I'd thought this was just a warning, not realizing that it's an error but being ignored, and obviously prevents the .cygwin.patch file from being generated. Anyhow, the fix seems relatively simple (to diff against an empty but existing directory instead), so I'll release a fixed version of cygport as soon as I'm able to... (probably need to cook up some regression test to check that these .cygwin.patch files are generated, since I'd completely failed to notice that! Thanks very much to Takashi for pointing that out!) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple