From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Building and installing packages with modifications Date: Sun, 24 Feb 2019 21:01:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxzyS-0005QR-Di for help-guix@gnu.org; Sun, 24 Feb 2019 15:02:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxzyQ-0004FN-HT for help-guix@gnu.org; Sun, 24 Feb 2019 15:02:08 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:34504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxzyQ-0003Ly-4Q for help-guix@gnu.org; Sun, 24 Feb 2019 15:02:06 -0500 Received: by mail-ed1-x52c.google.com with SMTP id a16so5880643edn.1 for ; Sun, 24 Feb 2019 12:01:33 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?B?55m944GE54aK?= Cc: help-guix Hello, =E7=99=BD=E3=81=84=E7=86=8A ezt =C3=ADrta (id= =C5=91pont: 2019. febr. 16., Szo, 16:12): > > Hi Guix: > > This is a question derived from my current trouble with running Guix on A= ndroid, as seen in: http://lists.gnu.org/archive/html/help-guix/2019-02/msg= 00151.html > > Basically: > =E2=80=94 I have Guix running on an armhf Android phone > =E2=80=94 =E2=80=9Cguix pull=E2=80=9D won't complete as it needs to build= curl locally, since a substitute is unavailable > =E2=80=94 curl local build fails on checking internet connection in one o= f its tests, as is common, as I found out on the web There is one thing I can't understand. How is that this test does not fail otherwise? Is it only done on Android? I ask this, as none of the guix builds have internet access. If there is any such test in a package, then the most usual way is to disable the test in our package, as it won't be able to suc= ceed. > =E2=80=94 Thus =E2=80=9Cguix pull=E2=80=9D never finishes, and I can't in= stall any packages etc, since even without pulling a new version, they also= fall into building curl > > I'd like to overcome this, am not sufficiently advanced in Guix, so would= like to receive ideas / tips on how to best / easiest do this. > > Currently, I'm thinking of two options. > > =E2=91=A0 Build curl locally, without the failing tests. > =E2=91=A1 Install an older substitute version of curl already built. > > Ad =E2=91=A0: > =E2=80=94 I've found there is an environment variable (INTERNET_TEST or s= omething) you can set so the test is not run during auto build run. It's ig= nored if =E2=80=9Cguix build curl=E2=80=9D is run with it. > =E2=80=94 Can environment variables be passed to =E2=80=9Cguix build=E2= =80=9D so they are then honored during build? > =E2=80=94 If not, can I instruct =E2=80=9Cguix build=E2=80=9D to not run = =E2=80=9Cmake test=E2=80=9D? These would involve modifying the package, I believe using this environment variable would be the best way, maybe adding it to configure-flags/make-flags... > =E2=80=94 If both not, can I then carry out the individual stages of a pa= ckage build in Guix, so I can skip the test phase? > =E2=80=94 If I build it in any of these ways, will =E2=80=9Cguix package = -i curl=E2=80=9D then install this version in the profile? It will install the latest version known by the guix called. One way to solve this is build guix from a checkout, modify the package, bump the version to make sure it gets updated, and the pre-inst-env guix package -i it. > =E2=80=94 If not, can I install it any other way then, so I can commence = with =E2=80=9Cguix pull=E2=80=9D without it being rebuilt? Guix pull might need some tweaking, as you can't build to the same hash, so it won't be picked up anyways. You can pull from another version of guix, for example the one build from the chekout, even using pre-inst-env guix pull... Then the modified package will be picked up. > > Ad =E2=91=A1: > =E2=80=94 Is there any way I can search the substitute servers for the la= test built substitute of a package? > =E2=80=94 How can I then install it? > > If none of these, is there another way to overcome my problem? > > Many thanks for any advice! :@) > -- > =E7=99=BD=E3=81=84=E7=86=8A > Best regards, g_bor