GNU logs - #41037, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Bruno Haible <bruno@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 02 May 2020 23:38:01 +0000
Resent-Message-ID: <handler.41037.B.15884626258542 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 41037 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15884626258542
          (code B ref -1); Sat, 02 May 2020 23:38:01 +0000
Received: (at submit) by debbugs.gnu.org; 2 May 2020 23:37:05 +0000
Received: from localhost ([127.0.0.1]:54151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jV1gu-0002Dh-UD
	for submit <at> debbugs.gnu.org; Sat, 02 May 2020 19:37:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:33340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bruno@HIDDEN>) id 1jV1gs-0002Da-Ss
 for submit <at> debbugs.gnu.org; Sat, 02 May 2020 19:37:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38920)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bruno@HIDDEN>) id 1jV1gs-0002w1-CM
 for bug-guix@HIDDEN; Sat, 02 May 2020 19:37:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,
 SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no
 version=3.4.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1)
 (envelope-from <bruno@HIDDEN>) id 1jV1gq-0002qC-Vr
 for bug-guix@HIDDEN; Sat, 02 May 2020 19:37:02 -0400
Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::10]:12190)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bruno@HIDDEN>) id 1jV1gp-0002px-VQ
 for bug-guix@HIDDEN; Sat, 02 May 2020 19:37:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1588462616;
 s=strato-dkim-0002; d=clisp.org;
 h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From:
 Subject:Sender;
 bh=jngmIQxbgjb9x3bb4iTesvTp428oMohPHdJRgo/WX28=;
 b=d5ApDX0tWnDHwFTj6d2Qm7daFu2o0yk1kbj7+xzwBZs7vI+by/nr2NSShIe/NlIPN9
 Jgbt4HORtGejleafDnQzpp+zw3zZlVq6DS1WspR8uJILCGrMPEANDdKEN8Y+okR+28j5
 1uhycwWnw7dYRrvtqIvhWQlNICN41oO4KBcTR9tmtOujTEYyUiwxm2WQaW4z+hGqd8Z6
 VJsfbX1tYKN8H4CUS4r/aShJpEgf0wj5i58RDU9aEqpzhTGTCV24TSL7Xc7Blu3IAfvy
 byWpkTz9+7ELcRmYm2ORfk/Qq3k/rA762SGtk+Z0dOBrMCY+dL5q5fbgsk05ZJIoJLjO
 nFXA==
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs="
X-RZG-CLASS-ID: mo00
Received: from bruno.haible.de by smtp.strato.de (RZmta 46.6.2 DYNA|AUTH)
 with ESMTPSA id j093d3w42NauoCe
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256
 ECDH bits, eq. 3072 bits RSA))
 (Client did not present a certificate);
 Sun, 3 May 2020 01:36:56 +0200 (CEST)
From: Bruno Haible <bruno@HIDDEN>
Date: Sun, 03 May 2020 01:36:55 +0200
Message-ID: <1614037.PG1mooiXeX@omega>
User-Agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Received-SPF: none client-ip=2a01:238:20a:202:5300::10;
 envelope-from=bruno@HIDDEN; helo=mo6-p00-ob.smtp.rzone.de
X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT :
 Malformed IPv6 address (bad octet value).
 Location : parse_addr6(), p0f-client.c:67
X-Received-From: 2a01:238:20a:202:5300::10
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

I'm searching for documentation for application developers, regarding
tips for porting from ordinary Linux distros to GNU guix.

I would expect to find these issues discussed, at least:
  - hard-coded program names like /bin/pwd
  - where is /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ?
  - libtool, ldconfig issues

Haven't seen it in
  https://guix.gnu.org/
nor
  https://guix.gnu.org/manual/en/guix.html

Bruno





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Bruno Haible <bruno@HIDDEN>
Subject: bug#41037: Acknowledgement (documentation for application
 developers?)
Message-ID: <handler.41037.B.15884626258542.ack <at> debbugs.gnu.org>
References: <1614037.PG1mooiXeX@omega>
X-Gnu-PR-Message: ack 41037
X-Gnu-PR-Package: guix
Reply-To: 41037 <at> debbugs.gnu.org
Date: Sat, 02 May 2020 23:38:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 41037 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
41037: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41037
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 03 May 2020 21:00:03 +0000
Resent-Message-ID: <handler.41037.B41037.15885395946338 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Bruno Haible <bruno@HIDDEN>
Cc: 41037 <at> debbugs.gnu.org
Received: via spool by 41037-submit <at> debbugs.gnu.org id=B41037.15885395946338
          (code B ref 41037); Sun, 03 May 2020 21:00:03 +0000
Received: (at 41037) by debbugs.gnu.org; 3 May 2020 20:59:54 +0000
Received: from localhost ([127.0.0.1]:58171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jVLiM-0001e9-2u
	for submit <at> debbugs.gnu.org; Sun, 03 May 2020 16:59:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1jVLiK-0001dw-9t
 for 41037 <at> debbugs.gnu.org; Sun, 03 May 2020 16:59:52 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60049)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1jVLiE-0007db-NM; Sun, 03 May 2020 16:59:46 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49876 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1jVLiD-00023V-GI; Sun, 03 May 2020 16:59:46 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <1614037.PG1mooiXeX@omega>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 15 =?UTF-8?Q?Flor=C3=A9al?= an 228 de la =?UTF-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sun, 03 May 2020 22:59:43 +0200
In-Reply-To: <1614037.PG1mooiXeX@omega> (Bruno Haible's message of "Sun, 03
 May 2020 01:36:55 +0200")
Message-ID: <87pnbkvio0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

HI Bruno,

Bruno Haible <bruno@HIDDEN> skribis:

> I'm searching for documentation for application developers, regarding
> tips for porting from ordinary Linux distros to GNU guix.

There=E2=80=99s no such documentation.  However, for applications that foll=
ow
=E2=80=9Cgood practices=E2=80=9D, there really isn=E2=80=99t any porting to=
 do.

> I would expect to find these issues discussed, at least:
>   - hard-coded program names like /bin/pwd

These should be avoided; it=E2=80=99s not Guix-specific, but the problem is
obviously more acute here.  What Guix packages do is patch them.

>   - where is /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ?

It=E2=80=99s in the glibc package:

  ls $(guix build glibc | grep '[0-9]$')/lib

What=E2=80=99s your use case?

>   - libtool, ldconfig issues

=E2=80=98ldconfig=E2=80=99 is not used.  Nothing special for Libtool.
Do you have something in mind?

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Bruno Haible <bruno@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 03 May 2020 21:14:02 +0000
Resent-Message-ID: <handler.41037.B41037.15885404367698 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 41037 <at> debbugs.gnu.org
Received: via spool by 41037-submit <at> debbugs.gnu.org id=B41037.15885404367698
          (code B ref 41037); Sun, 03 May 2020 21:14:02 +0000
Received: (at 41037) by debbugs.gnu.org; 3 May 2020 21:13:56 +0000
Received: from localhost ([127.0.0.1]:58190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jVLvs-000201-Rd
	for submit <at> debbugs.gnu.org; Sun, 03 May 2020 17:13:56 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.163]:19398)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bruno@HIDDEN>) id 1jVLvq-0001zr-7k
 for 41037 <at> debbugs.gnu.org; Sun, 03 May 2020 17:13:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1588540428;
 s=strato-dkim-0002; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:
 X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender;
 bh=a19y3CIpRmyStIiVbLwqBaON5dBGZXcUulAKNG4lZLY=;
 b=qyWWo5JM9BnGf8Wcy4CIplXt44rZkhDQtoWoC85CKM4RN4egiItLqaeliWT/fzsnbI
 NXrnFsioua5jhgS8p4Ymdm/m+E5WAd8cd7DF07VxA8MrM1dL46xboKeG7SZvnE+IYEQ9
 smBa0VmfF8AjAmVKkXGDQVegibokaZwzcivfoeJ3h9DPmATmSKOrF80kQk5ZD4AbTapW
 ELCuD/hLS6JKuF9Bgf2reR1vuvV2JmaTV4Jnt/MEAKZb0O1gV9Xn9s+vbhrwnPYZLagK
 eAcu5sY2vI01d6dwzkJdxLeDkf60hxCifTLgTrJKz9pn49zBA8y8ZcOFSr4pGOm5ywzZ
 YYpg==
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs="
X-RZG-CLASS-ID: mo00
Received: from bruno.haible.de by smtp.strato.de (RZmta 46.6.2 DYNA|AUTH)
 with ESMTPSA id j093d3w43LDlqYW
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256
 ECDH bits, eq. 3072 bits RSA))
 (Client did not present a certificate);
 Sun, 3 May 2020 23:13:47 +0200 (CEST)
From: Bruno Haible <bruno@HIDDEN>
Date: Sun, 03 May 2020 23:13:46 +0200
Message-ID: <10121112.yT0VcRYgiK@omega>
User-Agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )
In-Reply-To: <87pnbkvio0.fsf@HIDDEN>
References: <1614037.PG1mooiXeX@omega> <87pnbkvio0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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 problem =
is
> obviously more acute here.

/bin/pwd exists on all other Unix systems; so de facto it _is_ Guix
specific.

> >   - where is /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ?
>=20
> It=E2=80=99s in the glibc package:
>=20
>   ls $(guix build glibc | grep '[0-9]$')/lib
>=20
> What=E2=80=99s your use case?

So, the consequence is that a Guix user cannot send an executable
to another Guix user and expect it to be runnable on the other machine.
This too is Guix specific; maybe it is already documented?

> >   - libtool, ldconfig issues
>=20
> =E2=80=98ldconfig=E2=80=99 is not used.  Nothing special for Libtool.
> Do you have something in mind?

I wanted to have background information regarding ldconfig and shared
library caches, in order to investigate bug#41038
<https://lists.gnu.org/archive/html/bug-guix/2020-05/msg00036.html>.

Bruno





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 03 May 2020 21:49:01 +0000
Resent-Message-ID: <handler.41037.B41037.158854252111089 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Bruno Haible <bruno@HIDDEN>
Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 41037 <at> debbugs.gnu.org
Received: via spool by 41037-submit <at> debbugs.gnu.org id=B41037.158854252111089
          (code B ref 41037); Sun, 03 May 2020 21:49:01 +0000
Received: (at 41037) by debbugs.gnu.org; 3 May 2020 21:48:41 +0000
Received: from localhost ([127.0.0.1]:58252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jVMTZ-0002sm-7g
	for submit <at> debbugs.gnu.org; Sun, 03 May 2020 17:48:41 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:59964)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1jVMTX-0002se-8x
 for 41037 <at> debbugs.gnu.org; Sun, 03 May 2020 17:48:39 -0400
Received: from localhost (80-110-127-207.cgn.dynamic.surfer.at
 [80.110.127.207])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id AB4753365224;
 Sun,  3 May 2020 23:48:37 +0200 (CEST)
Date: Sun, 3 May 2020 23:48:33 +0200
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20200503234833.3f078d0e@HIDDEN>
In-Reply-To: <10121112.yT0VcRYgiK@omega>
References: <1614037.PG1mooiXeX@omega> <87pnbkvio0.fsf@HIDDEN>
 <10121112.yT0VcRYgiK@omega>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="Sig_/FH7Ml0.lSVIKAenPE6NfJ32";
 protocol="application/pgp-signature"; micalg=pgp-sha256
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--Sig_/FH7Ml0.lSVIKAenPE6NfJ32
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi Bruno,

On Sun, 03 May 2020 23:13:46 +0200
Bruno Haible <bruno@HIDDEN> wrote:

> So, the consequence is that a Guix user cannot send an executable
> to another Guix user and expect it to be runnable on the other machine.

Do you mean only one file, the executable?  That doesn't work well with any
other distribution either.

What guix can do is pack everything a package needs into a tarball
(including dependencies too) and then put that on another machine.
The command is "guix pack" (it can also create Docker containers
and Singularity images--but regular tarballs work just fine).
That does work reliably, and automatically does deduplication.

> I wanted to have background information regarding ldconfig and shared
> library caches, in order to investigate bug#41038
> <https://lists.gnu.org/archive/html/bug-guix/2020-05/msg00036.html>.

ldconfig is not used in Guix.  Guix uses rpath in order to embed the
entire path to each of the shared libraries that are used into the
executable.
ldconfig's name resolution is disabled.

--Sig_/FH7Ml0.lSVIKAenPE6NfJ32
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl6vPDEACgkQ5xo1VCww
uqUingf9H73NdiAHH67aM1bnjqlrq00hrA0KrC0PZPtxafO/FMDgWiTqDT2JXS8S
Ywg7fL6fwOeeKnPAQ5Bpg4g7QgJJfnbaHTTxqCPL5pACr062qOGNLpALuG1ivv/+
asKdXHrphY1cZUj8zcw+Q0WR0dY2E5nkHb2rhlTm7kpwE+KoQ5tyPvnr6dfO8JrS
eFdPsh96Dc/NEUKDPoDHEaPW/IBrHUMYDgEO87XLOOHiJ2S8KJslGzSVk3oZ2372
QwSRslDj8kxV3Uzl60ko5hKBZN22RZPGGgDNZrgdnHd/6N00KPkahtDQgjG2ZIVZ
xUX/LNoRtOQHly3CSPKWvOt+7Nr2Rg==
=je1C
-----END PGP SIGNATURE-----

--Sig_/FH7Ml0.lSVIKAenPE6NfJ32--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Tobias Geerinckx-Rice <me@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 03 May 2020 22:18:02 +0000
Resent-Message-ID: <handler.41037.B41037.158854427613899 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
Cc: 41037 <at> debbugs.gnu.org
Received: via spool by 41037-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jVMvs-0003c7-C4
	for submit <at> 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 <me@HIDDEN>) id 1jVMvr-0003bz-7i
 for 41037 <at> debbugs.gnu.org; Sun, 03 May 2020 18:17:55 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id 648e601b
 for <41037 <at> 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@HIDDEN; 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 <at> debbugs.gnu.org>; Sun, 3 May 2020 22:17:53 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
Message-ID: <87imhcr7jg.fsf@nckx>
References: <1614037.PG1mooiXeX@omega> <87pnbkvio0.fsf@HIDDEN>
 <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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--=-=-=
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-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#41037: documentation for application developers?
Resent-From: Bruno Haible <bruno@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 03 May 2020 22:58:02 +0000
Resent-Message-ID: <handler.41037.B41037.158854667817901 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 41037
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Danny Milosavljevic <dannym@HIDDEN>
Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 41037 <at> debbugs.gnu.org
Received: via spool by 41037-submit <at> debbugs.gnu.org id=B41037.158854667817901
          (code B ref 41037); Sun, 03 May 2020 22:58:02 +0000
Received: (at 41037) by debbugs.gnu.org; 3 May 2020 22:57:58 +0000
Received: from localhost ([127.0.0.1]:58388 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jVNYY-0004ec-Le
	for submit <at> debbugs.gnu.org; Sun, 03 May 2020 18:57:58 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.220]:23226)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bruno@HIDDEN>) id 1jVNYV-0004eN-6i
 for 41037 <at> debbugs.gnu.org; Sun, 03 May 2020 18:57:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1588546669;
 s=strato-dkim-0002; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:
 X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender;
 bh=/sdkag6tDAmn87CsYARlhGZiSxtxZNb1qLaufeR3msQ=;
 b=a0X2cPCyte5c4Tl1O5WR9sI2OiT9+fh2DXRUP28+nz+lz0fdGRjxo7Femhpiy4NkTF
 eNqIF4MEZQJvVGD23mQIZhsrgA/nAFHeP0HkyTqyYyUPjoi4meL4Qw7dNmRBThXPqB+/
 IFFQg7bUWl0mV2ywK/XlW5WsLVBU05H5EHZB5Athw7levq0r43GGvKRYyjo4B0Y+YkPZ
 APLP+ifkI9+CvpFRPIhJ/vXLGQ+Wiq5XwG5Asit7VgshsNtwOZ6O6pJmbm/x9S4t33Tn
 VjkcYR5dWTx2LRYMGzYFzx3psH3lAdZzFWcPvr6/MUj2bc7OnSkCtTACZbiGennJJ1/Y
 nrwQ==
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs="
X-RZG-CLASS-ID: mo00
Received: from bruno.haible.de by smtp.strato.de (RZmta 46.6.2 DYNA|AUTH)
 with ESMTPSA id j093d3w43Mvmqgu
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256
 ECDH bits, eq. 3072 bits RSA))
 (Client did not present a certificate);
 Mon, 4 May 2020 00:57:48 +0200 (CEST)
From: Bruno Haible <bruno@HIDDEN>
Date: Mon, 04 May 2020 00:57:46 +0200
Message-ID: <2285415.SFTs44rKTU@omega>
User-Agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )
In-Reply-To: <20200503234833.3f078d0e@HIDDEN>
References: <1614037.PG1mooiXeX@omega> <10121112.yT0VcRYgiK@omega>
 <20200503234833.3f078d0e@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Danny,

> > So, the consequence is that a Guix user cannot send an executable
> > to another Guix user and expect it to be runnable on the other machine.
> 
> Do you mean only one file, the executable?  That doesn't work well with any
> other distribution either.

Huh? I thought the purpose of the LSB specification is precisely that you
can take an executable from any modern Linux distro and run it on any other
modern Linux distro, with high success probability (not 100%, but close).

But when the different systems have the ld.so at different absolute locations,
it doesn't work.

> What guix can do is pack everything a package needs into a tarball
> (including dependencies too) and then put that on another machine.
> The command is "guix pack" (it can also create Docker containers
> and Singularity images--but regular tarballs work just fine).
> That does work reliably, and automatically does deduplication.

This is well documented in the manual. It's the other part, about
the "naked" executables, that I would have expected to find in the
documentation.

> > I wanted to have background information regarding ldconfig and shared
> > library caches, in order to investigate bug#41038
> > <https://lists.gnu.org/archive/html/bug-guix/2020-05/msg00036.html>.
> 
> ldconfig is not used in Guix.  Guix uses rpath in order to embed the
> entire path to each of the shared libraries that are used into the
> executable.
> ldconfig's name resolution is disabled.

This is valuable info! Can you just add this paragraph to the doc, please?

Bruno






Last modified: Sun, 3 May 2020 23:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.