From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by sourceware.org (Postfix) with ESMTPS id 87CE03858D37 for ; Wed, 21 Jun 2023 21:45:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87CE03858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=towo.net Received: from [192.168.178.72] ([91.64.130.150]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MO9r5-1qR9Ym2wQr-00OWpz for ; Wed, 21 Jun 2023 23:45:37 +0200 Message-ID: <58be0826-44fc-4ac1-9d37-f66fdd28ef79@towo.net> Date: Wed, 21 Jun 2023 23:45:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [ITP] italic-man To: cygwin-apps@cygwin.com References: <711af07e-46e4-4d3b-b28a-a64e37284d55@towo.net> From: Thomas Wolff In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:w5lzjI2V3Apjbg81x/F6AMR90AA2yPx529j9gGZ6npGTHZeQDjj 5aDP98L6jgo+e7TjdR70N57rpFKGLf4GIMbN01i9KCkakReHVuC0NGjZIG/ST6xpsH2h85v 0QE6cS1Z201+7AaN//GHmLd0qKiAxxy9X2dmhh3RT1+Xn+686Xad+uHZrujJTtkp1ThQvtd v6Yhju81sxVPupGSYhRYg== UI-OutboundReport: notjunk:1;M01:P0:dLFP/Aw+QlM=;6KnVZ2SXNCUsEQsxDqoKJsdXzb6 hDC6hQgSDNEf3eVaaBEWFRdawuYFweAzdrCbZuGe3jUsb1vthpX6dgIeEdjovd5jKAlgyGoJe bpHuPYyHNUokzzN7elD+ySIs/S/Fe9rN/waeunfbMmOL8zE1NlOKvHb1Hlfmcto7ovJ1iNJKp aie7uXRceSxEUUcDTm54xwYzY0dMTvlYJ7KOrPI1Esi2VeUtBoqw35cxRQ/yxA0JtuE1D/FdF NVNVql4VATi1Qmrj0ajP5dOKAgCSBRdfWQQKlgjGTP3BPeNxD6y02mKfgf9jovvID6KwgzyRg wbtm5Vr+9s/KkiMH0b1WmKl60o80Ds0EDfx9OFtBHkkXJDl+pMNq0qWbkRXNRo7Bm+2xVS/H0 dE/Qvb8EBBK2JsNgLES6prU2/5Xt+jeORavRxbx5KgX4Lylg5DFT65NnVqXeNfUL1EgfCBqX+ De5dJTkCyOQ2DvVqrbfDl0cXzQm8LyaAk5zpP1fDRddYroOMjzHeUwpWn3EWQTifZ8I4D9lVg 60yiOc+dYRB/aoUK6HRgusVyVq8gs9EJT4ylV71ihNn4C0xneDhYElOb6JSzYy6eXoZxxQI4S DwJBP8B3xotP6PyRerm705PAWltfKU/SaJBi7ZEp7oV2LgRoQse2wLu2A4hbdvukwRDgv6C9v iXAeW5OmS2YY0fxyR7gA5MJwucu0VGrH+25nFU82Pw== X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Am 16.02.2023 um 20:17 schrieb Thomas Wolff via Cygwin-apps: > > Am 16.02.2023 um 19:59 schrieb Jon Turney: >> On 21/01/2023 17:04, Thomas Wolff via Cygwin-apps wrote: >>> italic-man installs two scripts and hooks them into the workflow of >>> the 'man' command so that the italic attribute of manual pages is >>> actually displayed as italics in terminals that support it. >>> >>> cygport file attached >> >> Thanks very much for having another go at this. >> >> I'm still not overly keen on postinstall/preremove scripts which >> modify a configuration file belonging to another package, so I think >> I'm going to defer to Achim on approving this. >> >> Taking a step back, may I ask a couple of questions? >> >> - Can this be done as a patch to man-db and/or groff? >> >> (perhaps with a separate man-italic package which just contains a >> marker file which enables the functionality?) >> >> - (If different) how would this be done in an upstreamable way? > Thanks for taking a look. > I understand your hesitation but there are a number of zp_ postinstall > scripts around that make updates to mandb, mime db, desktop, various > caches, maybe crontab. > Well, yes, there could be a zp_ script for man that makes this entry > to /etc/man_db.conf itself in the presence of the italic-man package. > If that's desired and someone else updates man, I will cooperate on this. > I think the installation of italic-man does this in an upstreamable > way except for the postinstall mechanism of course which seems to be > different (if existent at all) everywhere. > Thomas I've added a zp_man-db-italic.dash postinstall script as a proposal for man-db to address your concerns, to be found in the repository github.com/mintty/italic-man. However, I find not documentation about these zp_ things, it seems they are just all called after each setup. So would it actually make a difference whether the zp_ is a script of italic-man or of man-db? I've also added a cygport file to the repository so you can try the update if you like. About your first question > - Can this be done as a patch to man-db and/or groff? Do you mean the whole thing should not be a separate package at all but completely patched into man-db? Looking forward to your opinion and that of the man-db package maintainer. And yes, the hook works on Linux too, so it could be provided somehow upstream. Thomas