From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 15 04:13:07 2021 Received: (at 47789) by debbugs.gnu.org; 15 Apr 2021 08:13:07 +0000 Received: from localhost ([127.0.0.1]:36441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWx7b-00053R-7C for submit@debbugs.gnu.org; Thu, 15 Apr 2021 04:13:07 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:60010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWx7Z-00053I-3S for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 04:13:05 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id swD32400G0mfAB406wD3sC; Thu, 15 Apr 2021 10:13:03 +0200 Message-ID: <5bcade8103a4995b6ba2fe64572c230bcbf52f82.camel@telenet.be> Subject: Re: [bug#47789] [PATCH 4/6] gnu: Add java-jline-terminal. From: Maxime Devos To: Mike Gerwitz , 47789@debbugs.gnu.org Date: Thu, 15 Apr 2021 10:13:03 +0200 In-Reply-To: <392710e13edd524ecac953dcecee73be459ea852.1618460450.git.mtg@gnu.org> References: <392710e13edd524ecac953dcecee73be459ea852.1618460450.git.mtg@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-WtyTqqVt67IxO8THCv1Q" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1618474383; bh=Zk3/N1wa1cEE+A7YENy/mYFRpRU/o/3FofcoweqCbro=; h=Subject:From:To:Date:In-Reply-To:References; b=Z8m2XpuOQdCeLWsQTDt23ZzEgMEGEiWB5S54LYEDUrK15Gf5vZi0RSHqJD332xFJE XgckgOUd37q+3TiUie3p2l6zOja4GNaEqur6zabuBLmYYneRybhoeFXXyd7qsm0Hkc sItPJ4CAJLOaPNH6Fx3O/dbA0UBPDGpPi4KqC54LZExgxOb5klu61asJGgtmJuLsiF y+NWl8DSd5taxt21xg7dwq6/iNTgoPZVqr1J7ozABTRnZMMgKiuq0/XkfLH+2h+8hj Z0oxJnHYfercmxQGLpSTlwfBya3fQogEDAmFxciL1NsJ9/8OlL9UEsk7bJxr2qlyNf EANuOeJu670eA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47789 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-WtyTqqVt67IxO8THCv1Q Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2021-04-15 at 00:26 -0400, Mike Gerwitz wrote: > + (add-after 'unpack 'patch-paths > + (lambda _ > + (substitute* "terminal/src/main/java/org/jline/utils/OSUtil= s.java" > + (("=3D \"(s?tty|infocmp)\"" _ cmd) > + (string-append "=3D \"" (which cmd) "\""))) (which cmd) is most likely incorrect when cross-compiling, as when cross-compiling, only the inputs in "native-inputs" contribute towards PATH, and "inputs" does not contribute towards PATH (IIUC). You will need something like (lambda* (#:key inputs #:allow-other-keys) ... ... (string-append "=3D \"" (assoc-ref "ncurses" inputs) "/bin/ncurses") ... (string-append "=3D \"" (assoc-ref "ncurses" inputs) "/bin/stty") ... (string-append "=3D \"" (assoc-ref "ncurses" inputs) "/bin/tty") ...) (TODO to self: define a variant which/target which looks at the build input= s instead of native-inputs when cross-compiling.)=20 Greetings, Maxime. --=-WtyTqqVt67IxO8THCv1Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYHf1jxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ioVAQC04n7drXWkSlo87YmP+kNEJN4h rcitHqcUSneyNCL/awD/UGAKzKAQyHpNLRhWZSVoN6ZUFOG6fpcZ34k4tM29wQ4= =dMZQ -----END PGP SIGNATURE----- --=-WtyTqqVt67IxO8THCv1Q--