From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: how to run makeinfo in a subprocess on Windows? Date: Sun, 05 Sep 2021 15:47:38 -0700 Message-ID: <86bl56skqd.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15440"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 06 00:48:28 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mN0w7-0003qB-Nz for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Sep 2021 00:48:28 +0200 Original-Received: from localhost ([::1]:45120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mN0w6-0002hV-5G for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Sep 2021 18:48:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mN0vR-00022T-Rx for emacs-devel@gnu.org; Sun, 05 Sep 2021 18:47:45 -0400 Original-Received: from gateway30.websitewelcome.com ([192.185.149.4]:28833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mN0vP-000659-3T for emacs-devel@gnu.org; Sun, 05 Sep 2021 18:47:45 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway30.websitewelcome.com (Postfix) with ESMTP id C46225465 for ; Sun, 5 Sep 2021 17:47:40 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id N0vMmbrU0rJtZN0vMmFt5P; Sun, 05 Sep 2021 17:47:40 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gDrBeAZyeKrm3cYmXtuqg0eZToqn39UKNIOEz2uqrxE=; b=DmiDQU6BhgYYaI/0lug6SJYobN Rk+2ViHts9hn4b47SK5/m9L5MpNA/Whp1QGfYWsfkjq8iUca7HZ8X83YukSnm2Fd2TH3/Ah5i5pVY wPLyFw0owZDxldThp8Ds8HAW96wmECUim5xfESugBZD4IYO0g2mHb82CG5yDgCBKKkFiCrzWcxp75 4jUtRoWHl4ZrjHn4fmS1L3rblTDbvagQt4D/o+FzJi45DbuSt/INyT2YBCGSUgQaLYkllPiL/kaR4 h7kY4CC/lnlMNKMRAXhjH8ey67cDQG1FGtIkfat512JROS7/7xirH1n2bz+Vr6pkVLDHzGcHUqAtt kjUP5L9A==; Original-Received: from [76.77.182.20] (port=53097 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mN0vM-001KSB-5Y for emacs-devel@gnu.org; Sun, 05 Sep 2021 16:47:40 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1mN0vM-001KSB-5Y X-Source-Sender: (Takver4) [76.77.182.20]:53097 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: permerror client-ip=192.185.149.4; envelope-from=stephen_leake@stephe-leake.org; helo=gateway30.websitewelcome.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274039 Archived-At: I'm working on automatically publishing html doc files for ELPA packages. When the source for a doc is .texi, that requires running "makeinfo". elpa-admin does this via call-process, doing something like: (let ((default-directory "c:/Projects/elpa/packages/ada-mode/") (docfile "ada-mode.texi") (html-file "doc/ada-mode/ada-mode.html")) (call-process "makeinfo" docfile nil nil "--no-split" "--html" "-o" html-file)) and that works fine on Debian. However, on Windows, I get : let: Searching for program: Permission denied, makeinfo I suspect the problem is that "makeinfo" is actually a perl script, and it has "#! /usr/bin/perl" on the first line. On Debian, the lower-level system call that actually starts the process apparently knows how to handle that; it starts perl, and passes it "makeinfo" and the other args. However, on Windows that doesn't happen. I suspect if I was running the mingw64 version of Emacs, it would work. The emacs I'm running is built using mingw64 tools, but it uses the native Windows OS, not the mingw64 layer. Is there a suggested way to handle this? I can just add code to elpa-admin to run perl explicitly when on Windows, but I'm hoping there's already code somewhere that handles this. -- -- Stephe