From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-042.btinternet.com (mailomta21-re.btinternet.com [213.120.69.114]) by sourceware.org (Postfix) with ESMTPS id E7FF63857C6F for ; Tue, 25 Aug 2020 19:45:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E7FF63857C6F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=jon.turney@dronecode.org.uk Received: from re-prd-rgout-002.btmx-prd.synchronoss.net ([10.2.54.5]) by re-prd-fep-042.btinternet.com with ESMTP id <20200825194531.IJKO13627.re-prd-fep-042.btinternet.com@re-prd-rgout-002.btmx-prd.synchronoss.net> for ; Tue, 25 Aug 2020 20:45:31 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com X-Originating-IP: [31.51.206.39] X-OWM-Source-IP: 31.51.206.39 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduiedruddvtddgudeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefuvfhfhffkffgfgggjtgesmhdtreertdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepudetfeevffeuleegiefhhffggeeujeekuefgiedtheekleekteelvddvteevgeeunecukfhppeefuddrhedurddvtdeirdefleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddrudduudgnpdhinhgvthepfedurdehuddrvddtiedrfeelpdhmrghilhhfrhhomhepoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqecuuefqffgjpeekuefkvffokffogfdprhgtphhtthhopeeonhgvfihlihgssehsohhurhgtvgifrghrvgdrohhrgheq X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.111] (31.51.206.39) by re-prd-rgout-002.btmx-prd.synchronoss.net (5.8.340) (authenticated as jonturney@btinternet.com) id 5ED9C0CC0D8AF478 for newlib@sourceware.org; Tue, 25 Aug 2020 20:45:31 +0100 Subject: Re: [PATCH] doc: Various fixes to makedocbook for python3.8 To: "newlib@sourceware.org" References: <20200822184520.57006-1-jon.turney@dronecode.org.uk> <20200824100115.GC3272@calimero.vinschen.de> From: Jon Turney Message-ID: <5718ea21-5420-7401-3a79-4122cfa0e723@dronecode.org.uk> Date: Tue, 25 Aug 2020 20:45:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200824100115.GC3272@calimero.vinschen.de> Content-Type: multipart/mixed; boundary="------------872F436E8E1DAAC29801D1F2" Content-Language: en-GB X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 19:45:34 -0000 This is a multi-part message in MIME format. --------------872F436E8E1DAAC29801D1F2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 24/08/2020 11:01, Corinna Vinschen via Newlib wrote: > On Aug 23 20:41, Jon Turney wrote: >> On 23/08/2020 16:23, Ken Brown wrote: >>> On 8/22/2020 2:45 PM, Jon Turney wrote: >>>> --- >>>>   newlib/doc/makedocbook.py | 8 +++++--- >>>>   1 file changed, 5 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/newlib/doc/makedocbook.py b/newlib/doc/makedocbook.py >>>> index 92d0f279d..3fab26f1a 100755 >>>> --- a/newlib/doc/makedocbook.py >>>> +++ b/newlib/doc/makedocbook.py >> [...] >>> Would it make sense to also change the shebang line so that >>> makedocbook.py uses python3?  Currently the build of Cygwin on Fedora >>> uses python3, but the build of Cygwin on Cygwin uses python2.  This is >>> of no great importance, but a recent IRC discussion shows that it can be >>> confusing. >> >> Yeah, I guess that would make some sense, given that python2 is now EOL. >> >> Otoh, making it gratuitously not work with python2 seems a bit harsh. >> >> On the gripping hand, reading PEP 0394, I see it doesn't actually require >> that 'python' exist at all, so I guess changing the shebang as you suggest >> is the right thing to do. > > With this change, please push. Testing on system where '/usr/bi/python' doesn't exist, there's also another script which I neglected to update. Patch attached. --------------872F436E8E1DAAC29801D1F2 Content-Type: text/plain; charset=UTF-8; name="0001-doc-Also-update-shebang-for-chapter-texi2docbook.py.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-doc-Also-update-shebang-for-chapter-texi2docbook.py.pat"; filename*1="ch" RnJvbSA1M2E1NDU4NGUwNjcyOWU0YzIzOTk1ZTk5OTNkYzFjODgxMDZjMzJkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKb24gVHVybmV5IDxqb24udHVybmV5QGRyb25lY29k ZS5vcmcudWs+CkRhdGU6IFR1ZSwgMjUgQXVnIDIwMjAgMTc6MTY6MzYgKzAxMDAKU3ViamVj dDogW1BBVENIXSBkb2M6IEFsc28gdXBkYXRlIHNoZWJhbmcgZm9yIGNoYXB0ZXItdGV4aTJk b2Nib29rLnB5CgotLS0KIG5ld2xpYi9kb2MvY2hhcHRlci10ZXhpMmRvY2Jvb2sucHkgfCAy ICstCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24oLSkKCmRp ZmYgLS1naXQgYS9uZXdsaWIvZG9jL2NoYXB0ZXItdGV4aTJkb2Nib29rLnB5IGIvbmV3bGli L2RvYy9jaGFwdGVyLXRleGkyZG9jYm9vay5weQppbmRleCBlMjE0ODliOWEuLjFhNzgwMzA5 MSAxMDA3NTUKLS0tIGEvbmV3bGliL2RvYy9jaGFwdGVyLXRleGkyZG9jYm9vay5weQorKysg Yi9uZXdsaWIvZG9jL2NoYXB0ZXItdGV4aTJkb2Nib29rLnB5CkBAIC0xLDQgKzEsNCBAQAot IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCisjIS91c3IvYmluL2VudiBweXRob24zCiAjCiAjIHB5 dGhvbiBzY3JpcHQgdG8gY29udmVydCB0aGUgaGFuZHdyaXR0ZW4gY2hhcHRlciAudGV4aSBm aWxlcywgd2hpY2ggaW5jbHVkZQogIyB0aGUgZ2VuZXJhdGVkIGZpbGVzIGZvciBlYWNoIGZ1 bmN0aW9uLCB0byBEb2NCb29rIFhNTAotLSAKMi4yOC4wCgo= --------------872F436E8E1DAAC29801D1F2--