From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YL/3GhlDr17DOwAA0tVLHw (envelope-from ) for ; Sun, 03 May 2020 22:18:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iEGGGSNDr175WAAA1q6Kng (envelope-from ) for ; Sun, 03 May 2020 22:18:11 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F21D1940B64 for ; Sun, 3 May 2020 22:18:09 +0000 (UTC) Received: from localhost ([::1]:48224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVMw5-0004M2-KL for larch@yhetil.org; Sun, 03 May 2020 18:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVMvy-0004Lu-If for bug-guix@gnu.org; Sun, 03 May 2020 18:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVMvy-0007RV-9Q for bug-guix@gnu.org; Sun, 03 May 2020 18:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVMvy-0003cY-5m for bug-guix@gnu.org; Sun, 03 May 2020 18:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41037: documentation for application developers? Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 03 May 2020 22:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41037 X-GNU-PR-Package: guix X-GNU-PR-Keywords: Cc: 41037@debbugs.gnu.org Received: via spool by 41037-submit@debbugs.gnu.org id=B41037.158854427613899 (code B ref 41037); Sun, 03 May 2020 22:18:02 +0000 Received: (at 41037) by debbugs.gnu.org; 3 May 2020 22:17:56 +0000 Received: from localhost ([127.0.0.1]:58307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVMvs-0003c7-C4 for submit@debbugs.gnu.org; Sun, 03 May 2020 18:17:56 -0400 Received: from tobias.gr ([80.241.217.52]:33004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVMvr-0003bz-7i for 41037@debbugs.gnu.org; Sun, 03 May 2020 18:17:55 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 648e601b for <41037@debbugs.gnu.org>; Sun, 3 May 2020 22:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:cc :subject:message-id:references:in-reply-to:date:mime-version :content-type; s=2018; i=me@tobias.gr; bh=sImCyHGcBy+e5FYQW4AoYG 9GX240d51v1H+bW9pYkRQ=; b=jBmh31vUOKanQfDhzMqANkKaVzJD2AcJDDW4E7 JJSWSwd9wc1vMMon5zYZYArH31RDCFOj4xmOWzUO8cPvSYRdyRims5MahuGOjX66 MAi8dtGoqXkNgpND2C0ybCOhFKxH8n1cSs+hJVpWoaIf2ZOxTFG6/rzJFMI99xNm hugTbzRlsR9Yfmzz6o3w83yiuntIhuv2IkbarmqVDd5eCNcQd44LxwG6e4clQF7r dNzoQ0C/tR6Tlx2rf+whRVp+g1Ndr3NKEex2eOaJqCPLxyulVG2Rb/RnZ6sPxQL7 rrDif3ZcCc2zvezBJmxe1gB7sRKf9Iv5pVsojejko7kXWOdQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 776a72a4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <41037@debbugs.gnu.org>; Sun, 3 May 2020 22:17:53 +0000 (UTC) Message-ID: <87imhcr7jg.fsf@nckx> References: <1614037.PG1mooiXeX@omega> <87pnbkvio0.fsf@gnu.org> <10121112.yT0VcRYgiK@omega> In-reply-to: <10121112.yT0VcRYgiK@omega> Date: Mon, 04 May 2020 00:18:05 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.1 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Scanner: scn0 X-Spam-Score: 1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tobias.gr header.s=2018 header.b=jBmh31vU; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [1.39 / 13.00]; HAS_REPLYTO(0.00)[me@tobias.gr]; GENERIC_REPUTATION(0.00)[-0.49381946926392]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.14), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; TO_DN_NONE(0.00)[]; R_DKIM_REJECT(1.00)[tobias.gr:s=2018]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[tobias.gr:-]; MISSING_TO(2.00)[]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[bug-guix@gnu.org,bug-guix-bounces@gnu.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[41037@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; DMARC_NA(0.00)[gnu.org]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: K559FfuS12No --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Bruno! Bruno Haible =E5=86=99=E9=81=93=EF=BC=9A > Hi Ludo, > >> > I would expect to find these issues discussed, at least: >> > - hard-coded program names like /bin/pwd >>=20 >> These should be avoided; it=E2=80=99s not Guix-specific, but the=20 >> problem is >> obviously more acute here. > > /bin/pwd exists on all other Unix systems; so de facto it _is_=20 > Guix > specific. Perhaps. Well behaved portable programmes use $PATH anyway, so=20 it's a non-issue. A handful hard-code directories at their peril and suffer the=20 consequences =E2=80=94 usually, by being patched to respect $PATH. :-) This is deliberately not supported. Users *could* ask Guix to=20 create a /bin/pwd for them. Nobody does. > So, the consequence is that a Guix user cannot send an=20 > executable > to another Guix user and expect it to be runnable on the other=20 > machine. s|Guix|GNU/Linux|g > This too is Guix specific; maybe it is already documented? It's not Guix-specific at all. It's universal to all unix systems=20 (and beyond): when you send someone a binary that's missing=20 external dependencies, it will not run. If you give them the=20 dependencies (for example, using =E2=80=98guix pack=E2=80=99 which includes= the=20 correct linker, not someone else's random copy with the same=20 name), it runs. Guix is no different. > ldconfig and shared library caches Guix uses neither, since there's nothing to cache: once linked=20 (using rpath and absolute /gnu/store file names), libraries do not=20 move around in space and time. It's not the cause of or the=20 solution to your problem. I hope Ludo's suggestion was! Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXq9DHQAKCRANsP+IT1Vt eXDMAQDtSog1+cTgfqGadxR8uEBFCsofRv3EZZTqRFpn1qwoMQEAzO27/L2k69Gi PfOqPgK1XprO3ZQA+W8k53S2Dm4ItwQ= =wnCG -----END PGP SIGNATURE----- --=-=-=--