From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AFFrIFxIcWNtMQAAbAwnHQ (envelope-from ) for ; Sun, 13 Nov 2022 20:41:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UOVeIFxIcWN4XwAA9RJhRA (envelope-from ) for ; Sun, 13 Nov 2022 20:41:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 513A211CF1 for ; Sun, 13 Nov 2022 20:41:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouIqn-0005qx-KL; Sun, 13 Nov 2022 14:41:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouIqk-0005qh-JY for guix-patches@gnu.org; Sun, 13 Nov 2022 14:41:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouIqk-0001c5-B1 for guix-patches@gnu.org; Sun, 13 Nov 2022 14:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouIqk-0008Td-06 for guix-patches@gnu.org; Sun, 13 Nov 2022 14:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] Manifest for coq-mathcomp-analysis Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 13 Nov 2022 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Garek Dyszel , zimoun , 58310@debbugs.gnu.org Cc: pukkamustard Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.166836845832568 (code B ref 58310); Sun, 13 Nov 2022 19:41:01 +0000 Received: (at 58310) by debbugs.gnu.org; 13 Nov 2022 19:40:58 +0000 Received: from localhost ([127.0.0.1]:48421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouIqg-0008TE-5D for submit@debbugs.gnu.org; Sun, 13 Nov 2022 14:40:58 -0500 Received: from lepiller.eu ([89.234.186.109]:33948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouIqd-0008T3-1k for 58310@debbugs.gnu.org; Sun, 13 Nov 2022 14:40:56 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 5556a5c2; Sun, 13 Nov 2022 19:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=nduDm9AfWeQ4 WhBao0PDEiYtbTad7+LDAX8chb9hdnE=; b=WKstCkVijvKf8fPg0tj+m9yYuW+Q VTmU5B7xzz6jUUoeCfF6ocOWd5d/p98NjmA2otpRICQPh66HYQHw5Gyzxt4LjH0e 7ysSMd3rGuMD7tFVvCtFAWHfBMaRi/69cfK6a2UkRcsT1/zqt4iXHtJRn9eIF9np VhKGBF8Bel+NcFl4VA/g5RBINXaHgfYSrXr/MMK48fGP942tr/VYGDWWLu4jQeM/ 1NPvkTCN8TGfh+9xan6Z4rqxa3FSlPXvleyYr/RKGu7CVxx6nRIgAYjTdO+e3hcD W/+49eQcqi6M7l4tT5zEisUyquZknAGeiL3EPlh+LrRI/HDFoaRftpgLKw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id b6b0e006 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 13 Nov 2022 19:40:52 +0000 (UTC) Date: Sun, 13 Nov 2022 20:40:49 +0100 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <87tu32eldg.fsf@disroot.org> References: <87h70iqji2.fsf@disroot.org> <87v8njspi5.fsf@disroot.org> <20221113115303.66ccb071@sybil.lepiller.eu> <87tu32eldg.fsf@disroot.org> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----27JWS613VBHN1AAVWMBUZXEG6PY4A4 Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668368476; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6L/fedSOuYODbZCT6JMP4YA14kIZHQjhC+aOjIwc5UQ=; b=hWBmtqhgoCOp07yGNosBRvK5Q60PDrRukN1cr2TJ+NB6eEkiSRRQloUgpLgcFdeSS6DTPh 4vx7QLtNAAsAKo7sP6OC/+QL8fy2g4TYMSEzAJxQX3j+MO/ukLB+vMxvyyCZoVbO35i1L7 zEHtzbG/4PoWyNNetgoSIZdfMTLWHH6VHyQF+WXX2HOgmqOBUQj2Nm3ANJ+WkBeM+d2nlF phyFTQ3V/BydeM7QheNEwKcvIENiQ8Onm4B7CVsQI5jXGShQMTz0r75j5MleSRXIniLSUz T5Xax7M4OryiKG3i45PgvJCGIzVTDo/rwz47KeDE8Rd3EdaE3azpvd6pfrkmjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668368476; a=rsa-sha256; cv=none; b=hs0KXV440FakbGyO4w82Ky7LG+BdvCW6yhV0SN3h0jjO1Ejz42W5qSoDuyfkEigFwnGR6H 1Fx9XrU1Ep2edtevInbFvVbjy1RTPrLXCxjBMJZo8VMox8+YobLE2XCrCWG+OrfQyumhWW /XkSUIT59pPmhfS0ZdQs8n6pPjNWmxudXjxVffjnb7grUDPDyFDoeJ69Kr+ye6JqiRceXR wJ8NPD8FC8YJja3nKrR4G6LRVrc0ddbPaDTr+6llurq1JiJucwq9ZxECVSlG5fTjnEJJg+ TWIIJSLwmddR7yDGr8suA/W2g70SbO66alR7kVOA0Mk/nLhvD9NaLXDDScew4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=WKstCkVi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.96 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=WKstCkVi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 513A211CF1 X-Spam-Score: 8.96 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: ykpxi+fonyNo ------27JWS613VBHN1AAVWMBUZXEG6PY4A4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable There's a trick for patches: they are loaded from the search path, so you c= an add the file to any empty directory and add that directory to the load p= ath=2E For instance, if you have ~/guix-patches/my=2Epatch, then you can build a = package that looks for my=2Epatch with: guix build -L ~/guix-patches Le 13 novembre 2022 19:54:03 GMT+01:00, Garek Dyszel a =C3=A9crit=C2=A0: >I'm in UTC-0400, so your first email arrived in my inbox at around >04:00=2E Sorry I didn't see these! > >At 10:17 2022-11-13 UTC+0100, Julien Lepiller wrote: >>> I tried building your file (it's technically not a manifest) and >>> indeed it's failing in the chack-findlib-path=2E > >You're right that it's not a manifest=2E I had put a (packages->manifest) >invocation at the end of the file to see why coq-elpi wasn't building=2E >Later I just threw a package at the end when testing it later, and >forgot that the file then became a package file=2E > >>> Why do you want to run it? > >I knew that ocamlfind wasn't able to find the file coq-elpi=2Eelpi when >building coq-mathcomp-hierarchy-builder=2E I was trying to test for the >presence of that file=2E=2E=2E > >>> There's no way it could work at this point, right after the check >>> phase, since the package is not even installed yet=2E > >=2E=2E=2Eand I thought that the phase 'check' came after the phase 'insta= ll' >for some reason :/ > >>> Also, the OCAMLPATH that would allow findlib to find it is not set to >>> the outputs, only to the inputs=2E > >Looks like I'll need to take a closer look at ocaml-build-system! > >At 11:53 2022-11-13 UTC+0100, Julien Lepiller wrote: >> So, I've had a further look at the sources for the failing packages >> and figured that some variables were missing in the make-flags=2E > >Tweaking the make-flags is exactly what's been occupying my time for the >last few months off and on, yep :) > >> Attached is the fixed version of your file that builds >> coq-mathcomp-analysis=2E > >Wow! Thanks so much! I can finally move to using it instead of building >it, although trying to get it to build was still a lot of fun :) > >> Note that the build of mathcomp-analysis is >> very quiet and takes a long time, but it works eventually=2E > >For anybody else who might be reading this thread, it took about 12 >minutes to build on my system=2E I ran 'guix gc' beforehand to get an >accurate number: >$ until guix gc && time guix build -Kf coq-mathcomp-analysis=2Escm;\ >$ do sleep 0=2E1; done >=2E=2E=2E > >real 11m18=2E769s >user 0m7=2E332s >sys 0m0=2E490s > >Out of curiosity, where did you put the patch file so that (patches >(search-patches "ocaml-elpi-fix-yojson=2Epatch")) worked? My system throw= s >this error, so I had to switch the patch's path back: "guix build: >error: ocaml-elpi-fix-yojson=2Epatch: patch not found"=2E > ------27JWS613VBHN1AAVWMBUZXEG6PY4A4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable There's a trick for patches: they are loaded from = the search path, so you can add the file to any empty directory and add tha= t directory to the load path=2E

For instance, if you have ~/guix-pat= ches/my=2Epatch, then you can build a package that looks for my=2Epatch wit= h:

guix build -L ~/guix-patches

Le= 13 novembre 2022 19:54:03 GMT+01:00, Garek Dyszel <garekdyszel@disroot= =2Eorg> a =C3=A9crit=C2=A0:
I'm in UTC-0400, so your first email ar=
rived in my inbox at around
04:00=2E Sorry I didn't see these!

At= 10:17 2022-11-13 UTC+0100, Julien Lepiller wrote:
Why do you want to run it?

I kne= w that ocamlfind wasn't able to find the file coq-elpi=2Eelpi when
build= ing coq-mathcomp-hierarchy-builder=2E I was trying to test for the
prese= nce of that file=2E=2E=2E

There's no way it c= ould work at this point, right after the check
phase, since the package = is not even installed yet=2E

=2E=2E=2Eand = I thought that the phase 'check' came after the phase 'install'
for some= reason :/

Also, the OCAMLPATH that would all= ow findlib to find it is not set to
the outputs, only to the inputs=2E

Looks like I'll need to take a closer look = at ocaml-build-system!

At 11:53 2022-11-13 UTC+0100, Julien Lepiller= wrote:
So, I've had a = further look at the sources for the failing packages
and figured that so= me variables were missing in the make-flags=2E

Tweaking= the make-flags is exactly what's been occupying my time for the
last fe= w months off and on, yep :)

Attached is the fixed version of your file that builds
coq-mat= hcomp-analysis=2E

Wow! Thanks so much! I can finally mo= ve to using it instead of building
it, although trying to get it to buil= d was still a lot of fun :)

Note that the build of mathcomp-analysis is
very quiet and tak= es a long time, but it works eventually=2E

For anybody = else who might be reading this thread, it took about 12
minutes to build= on my system=2E I ran 'guix gc' beforehand to get an
accurate number:$ until guix gc && time guix build -Kf coq-mathcomp-analysis=2Esc= m;\
$ do sleep 0=2E1; done
=2E=2E=2E

real 11m18=2E769s
user= 0m7=2E332s
sys 0m0=2E490s

Out of curiosity, where did you put th= e patch file so that (patches
(search-patches "ocaml-elpi-fix-yojson=2Ep= atch")) worked? My system throws
this error, so I had to switch the patc= h's path back: "guix build:
error: ocaml-elpi-fix-yojson=2Epatch: patch = not found"=2E

------27JWS613VBHN1AAVWMBUZXEG6PY4A4--