From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 0/1] Fix opam on gnome-team Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69677@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17099867475919 (code B ref -1); Sat, 09 Mar 2024 12:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2024 12:19:07 +0000 Received: from localhost ([127.0.0.1]:60893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rivfO-0001XO-L5 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 07:19:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:36014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rivfK-0001XC-QG for submit@debbugs.gnu.org; Sat, 09 Mar 2024 07:19:04 -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 1rivem-0000l4-Ky for guix-patches@gnu.org; Sat, 09 Mar 2024 07:18:28 -0500 Received: from planete-kraus.eu ([89.234.140.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rivek-0006Di-UI for guix-patches@gnu.org; Sat, 09 Mar 2024 07:18:28 -0500 Received: from planete-kraus.eu (localhost [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id e6766430 for ; Sat, 9 Mar 2024 12:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:from:date:subject:to:mime-version; s=albinoniA; bh=Kt 25arwAM/yBxPtdKeqJ4D52ylI=; b=flHRgV6+gNLLpO5lYzvEKt6Z0qmoZWl0JK RAVEHMg9DAsEWHEs3vUiqQ4PcA0h9bFh6ZeJiliD1PCPKNQ2QZDy26QXTq9T0tH6 MMZOUBKLNmVjBUROStHSrEP0QM3oZp7xwO46tgTdDIsCb8SVqipdS+Spia9w6P1G sjBqep+OxXD2cqLnxbehCNboXxZc9kPHY1SLxySAtodwqiemfdhvL2R9DLNXa8oA 1v72zxihN9qFRzVekz5VzE+wPAZ4aHmrQLO4yclHvp9/IvWRFsYd7X4ovO+eXyHP 1bpIDbl/QsT5UuWlPe5sfqal4NQoP1rlUNepWpZkA3mQU6CF79eg== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 62c7c22a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Sat, 9 Mar 2024 12:18:23 +0000 (UTC) Message-ID: From: Vivien Kraus Date: Sat, 9 Mar 2024 13:08:45 +0100 X-DebbugsCc: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name,vivien@planete-kraus.eu MIME-Version: 1.0 User-Agent: Evolution 3.48.4 Received-SPF: pass client-ip=89.234.140.182; envelope-from=vivien@planete-kraus.eu; helo=planete-kraus.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PP_MIME_FAKE_ASCII_TEXT=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) Dear Guix, For some unknown reason, opam on master decides that the ocaml base64 library is not installed well enough to use it, but on gnome-team, it seems that it does. Opam can adapt to both cases, by using a different compatibility layer in each. On master, it uses the compatibility layer version 5, and on gnome-team, the compatibility layer version 6. However, the compatibility layer version 6 does not work. An easy fix is to force opam to use compatibility layer version 5 every time. I am not proud of my regular expressions, but I couldn’t find a way to factorize the optional `i` so that it matches either .ml or .mli. Best regards, Vivien Vivien Kraus (1): gnu: opam: Fix build. gnu/packages/ocaml.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) base-commit: 25c14c893f05019d746321285acf55d1aa65b943 -- 2.41.0 From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69677@debbugs.gnu.org Cc: rg@raghavgururajan.name, vivien@planete-kraus.eu, liliana.prikler@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.17099870336422 (code B ref 69677); Sat, 09 Mar 2024 12:24:02 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 12:23:53 +0000 Received: from localhost ([127.0.0.1]:60899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rivk1-0001fV-E4 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 07:23:53 -0500 Received: from planete-kraus.eu ([89.234.140.182]:35060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rivjz-0001fE-T4 for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 07:23:52 -0500 Received: from planete-kraus.eu (localhost [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id e339bad4; Sat, 9 Mar 2024 12:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniA; bh=qp7ShPXa7G/H4rdTV1YODVYp6jw=; b=e K5D0IHM5q6pp+Zviz8m2cPwZ+XEPJFWxBjg9M+HaWF8d3F3W0ooGDt/GBgFVZkl1 2eJ7HRw2a8x8G6rDi1ktTzDEvWK84ivaOj2MIDsylWmgLkEryTpOQr7cukky/94e OHZNnaWgHYDjrgmTdX4e5F+wSCrgglvZDdvUIhOOYaTTzJjZU6gw7wFQxebU1LOU 0vp2ecZzZQ5ay5tplSYhJnovHPo7FpgAyzseMHKpej3ApvPysiNUT1C8AMvKG2bA vwYP0gD0nbFJIZwNDHy37ICnewZDv4JqKjQVvnPzMQFmB4H/OZ6xQ8ImSeuEcfr2 P/dr/NE0r6f+8cQQPQ0/A== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 3d4bee13 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 9 Mar 2024 12:23:13 +0000 (UTC) Message-ID: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> In-Reply-To: References: From: Vivien Kraus Date: Sat, 9 Mar 2024 10:46:18 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.48.4 X-Spam-Score: -0.0 (/) 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.0 (-) * gnu/packages/ocaml.scm (ocaml-opam-core) [#:phases]: Add 'always-use-base64-compat-5'. Change-Id: I8d9aec14ca2af92b9a4ac346ac57c22e6b76c716 --- Sorry, I messed up my cover letter, so it was not delivered to you. Here it is: Dear Guix, For some unknown reason, opam on master decides that the ocaml base64 library is not installed well enough to use it, but on gnome-team, it seems that it does. Opam can adapt to both cases, by using a different compatibility layer in each. On master, it uses the compatibility layer version 5, and on gnome-team, the compatibility layer version 6. However, the compatibility layer version 6 does not work. An easy fix is to force opam to use compatibility layer version 5 every time. I am not proud of my regular expressions, but I couldn’t find a way to factorize the optional `i` so that it matches either .ml or .mli. Best regards, Vivien gnu/packages/ocaml.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 0f4c351141..5051524a53 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -854,6 +854,26 @@ (define ocaml-opam-core #:tests? #f #:phases (modify-phases %standard-phases + (add-after 'unpack 'always-use-base64-compat-5 + (lambda _ + (call-with-input-file "src/client/dune" + (lambda (port) + (display "ok") + (newline))) + ;; By default, the opamBase64Compat module will be + ;; compatibility version 6, which is just an empty + ;; file. Opam-client cannot build with an empty file. + (substitute* "src/client/dune" + (("opamBase64Compat\\.ml\\.6") + "opamBase64Compat.ml.5") + (("opamBase64Compat\\.mli\\.6") + "opamBase64Compat.mli.5") + ;; Undo the change in the rule to generate the .6 + ;; files + (("with-stdout-to opamBase64Compat\\.ml\\.5") + "with-stdout-to opamBase64Compat.ml.6") + (("with-stdout-to opamBase64Compat\\.mli\\.5") + "with-stdout-to opamBase64Compat.mli.6")))) (add-before 'build 'pre-build (lambda* (#:key inputs make-flags #:allow-other-keys) (let ((bash (assoc-ref inputs "bash")) -- 2.41.0 From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vivien Kraus Cc: rg@raghavgururajan.name, liliana.prikler@gmail.com, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.171000843822632 (code B ref 69677); Sat, 09 Mar 2024 18:21:01 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 18:20:38 +0000 Received: from localhost ([127.0.0.1]:34759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj1JF-0005sx-D8 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 13:20:37 -0500 Received: from mail-qk1-f176.google.com ([209.85.222.176]:42318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj1JD-0005sk-O1 for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 13:20:36 -0500 Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-7882dd2b1c9so244044085a.1 for <69677@debbugs.gnu.org>; Sat, 09 Mar 2024 10:20:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710008337; x=1710613137; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=g0HmQXO1MGz1C7ovUncqexsjl1uQwRYYl8HjzH8/M6E=; b=ma6TQguZE28Te5CJLHXXP/ykdU6H6E5wpxxx5tQyf4MNPwuGfWin9dITJSy7C7ce2C XoHj2sAUaJWfbhSPuWNx+0rv1/50HemxIA5Qh/da1xrSsIMm0tA3fKmf3LWrfoSdX6Xo CoIcPc9uINf45Ih5LO8PcC6UOOM8mO5+kaVNtCPHEVx3SpthpXmCOOPpbjde+qhQEGjU ZwJ1qFZyeYuF6Qhma4B60b0nMjTMEB4UvBB43h8l0dQeADA1MLjadmDly4llevasLSl/ +i7HUM07KwKlacc2QijP//9685ieVw/o7tZPuq8VIchKWX4v9qVtlBvFZiIH2IjSnlEY 5mVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710008337; x=1710613137; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=g0HmQXO1MGz1C7ovUncqexsjl1uQwRYYl8HjzH8/M6E=; b=fDJeiEt8n8HqkRqda8sK0cNZTtr8h0YDJ4SI7fSkXKsjp3g19nPxGW8onS+H1uwwN6 3Y6qam4g2Y0N53f+dkoHWCGk5V+ALDE5eOyQN6BBcmATEljrg71KhH9V1PX9XDgCoJZK KH/L2Ee9rTvT40zHPu/f+U2cNhwQAYjHEqd3EOE5evf/bunRzUf7yEXPZ0sdUN5ZRZNH L8E2sEAvo3fUYP+vvhQ6ChJT0ujfYYMgdckFcLq3VaXWWSPT9TQQQVrFi+wwssmgkWZq CFM6LZVeNoTflGtLgjkmnTgd9w9karR6Cg3Bp4HbEgRgi2tDm5l5FAB6RvgqvwUILdLQ 2UaA== X-Gm-Message-State: AOJu0Yy/6K9XMqIEfW9VhnNnrgGhaPAG3fX95ADJmfz9V2aDq/bHphOd 9DDU3ctSgoOcNy/RMW7KtU5tac1fVImpZPvCQDPfKf0SbmDWqFD33cfKiTzPago= X-Google-Smtp-Source: AGHT+IH9JQ1NTQw2VWi8UAHSB8mK9LHL8d0i4PcgXrm+lb3e2FLuhp1AQY7qC3SbiZzYRX4iw8reAA== X-Received: by 2002:a05:620a:40c5:b0:787:ad37:4a0 with SMTP id g5-20020a05620a40c500b00787ad3704a0mr6170361qko.22.1710008337397; Sat, 09 Mar 2024 10:18:57 -0800 (PST) Received: from hurd (dsl-150-134.b2b2c.ca. [66.158.150.134]) by smtp.gmail.com with ESMTPSA id v26-20020a05620a123a00b007883a071e67sm1135088qkj.63.2024.03.09.10.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 10:18:56 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> (Vivien Kraus's message of "Sat, 9 Mar 2024 10:46:18 +0100") References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> Date: Sat, 09 Mar 2024 13:18:55 -0500 Message-ID: <87y1are0a8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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.0 (-) Hi Vivien, Vivien Kraus writes: > * gnu/packages/ocaml.scm (ocaml-opam-core) [#:phases]: Add 'always-use-base64-compat-5'. [...] > gnu/packages/ocaml.scm | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm > index 0f4c351141..5051524a53 100644 > --- a/gnu/packages/ocaml.scm > +++ b/gnu/packages/ocaml.scm > @@ -854,6 +854,26 @@ (define ocaml-opam-core > #:tests? #f > #:phases > (modify-phases %standard-phases > + (add-after 'unpack 'always-use-base64-compat-5 > + (lambda _ > + (call-with-input-file "src/client/dune" > + (lambda (port) > + (display "ok") > + (newline))) Shouldn't this be 'call-with-output-file' ? It seems you want to *write* a file containing "ok\n". > + ;; By default, the opamBase64Compat module will be > + ;; compatibility version 6, which is just an empty > + ;; file. Opam-client cannot build with an > empty file. What does upstream say about this? Is this a bug? Or some understood limitation they don't foresee fixing? > + (substitute* "src/client/dune" > + (("opamBase64Compat\\.ml\\.6") > + "opamBase64Compat.ml.5") > + (("opamBase64Compat\\.mli\\.6") > + "opamBase64Compat.mli.5") > + ;; Undo the change in the rule to generate the .6 > + ;; files > + (("with-stdout-to opamBase64Compat\\.ml\\.5") > + "with-stdout-to opamBase64Compat.ml.6") > + (("with-stdout-to opamBase64Compat\\.mli\\.5") > + "with-stdout-to opamBase64Compat.mli.6")))) I'd like to hear about upstream. Perhaps our package is simply buggy? It'd be nice to have an upstream issue to link to. -- Thanks, Maxim From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: rg@raghavgururajan.name, liliana.prikler@gmail.com, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.171000855422832 (code B ref 69677); Sat, 09 Mar 2024 18:23:02 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 18:22:34 +0000 Received: from localhost ([127.0.0.1]:34763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj1L8-0005wC-15 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 13:22:34 -0500 Received: from planete-kraus.eu ([89.234.140.182]:54796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj1L5-0005vz-Ru for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 13:22:32 -0500 Received: from planete-kraus.eu (localhost [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 3d1fb64d; Sat, 9 Mar 2024 18:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; s= albinoniA; bh=Phq6P8uTexqn9QqGxRp2N2/lc4Y=; b=T5WWV8E7sEF/e0+jv7 gDHtCA5QT1DeLAnJUFtFSn3GOz4oC7FscKyspxqU4+MOuI5cl3uJ9s5p2lHP3zQD EI9RCHeoPA1q3InA+OSOCa9QJqdWjMyArB9U9PGzsNBG9mNoP03wEhq6W2gOyKiR r0pWX/58DPJIm6ySGvJR0dkjb4VEYFu6Yi9E9uGBiqu/BLt/dRUjwVSWszxWICK2 dXnfb+RH1s5nQFyvT83n3SzIpCYV3Ufoa8XYPbDioEQXFWJsyHOayBX0h59PBwRo 8zmW5+hixgydKHobKEywA6Q0Tlp5KwZAhKUOVkcxkUnZWx50e2dkQmkJZDbFL01d P0Dw== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 162cb41c (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 9 Mar 2024 18:21:52 +0000 (UTC) Message-ID: <878300fe0b9a90985e65ebc49e65eae7809d6944.camel@planete-kraus.eu> From: Vivien Kraus Date: Sat, 09 Mar 2024 19:21:50 +0100 In-Reply-To: <87y1are0a8.fsf@gmail.com> References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> <87y1are0a8.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) 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.0 (-) Le samedi 09 mars 2024 =C3=A0 13:18 -0500, Maxim Cournoyer a =C3=A9crit=C2= =A0: > Shouldn't this be 'call-with-output-file' ?=C2=A0 It seems you want to > *write* a file containing "ok\n". Oops, I forgot to remove that, how embarrassing. Sorry. From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: rg@raghavgururajan.name, liliana.prikler@gmail.com, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.171001323030203 (code B ref 69677); Sat, 09 Mar 2024 19:41:01 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 19:40:30 +0000 Received: from localhost ([127.0.0.1]:34876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2YY-0007r5-87 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 14:40:30 -0500 Received: from planete-kraus.eu ([89.234.140.182]:46146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj2YV-0007qn-L7 for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 14:40:29 -0500 Received: from planete-kraus.eu (localhost [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id ee7e2339; Sat, 9 Mar 2024 19:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; s= albinoniA; bh=dDWUiyl2kGWr1l+mSf3ubNneuxU=; b=S9Ly7/sCnoTpgqk2vk qQOxkwZHB1CkwD0dlFK7E4FABI/S//CaWWO1VNhA2LXQXEDa1PLtxbcAyZYeHPUA JOyyWZbs1DqM6YLFw2p4eqVu37RGZhNg7omr29CqrvICizF2u36HvYLHrVLVcUY7 3/T5mpSRvEwP9OBr+LdabT4RARh8I/77/yZU69J8Bp4tpfQI6mu/fZJ2B2BCquU2 f7eHPWQd/GHvjlQsSKww9qmq/bxapIsCYTKPjtTkV0JzgVoMzeyFQyL4RZkpzXVj p346T9mW5haXIlNzWpbI5/6SkdzIptQNpBKxJgxgEvbohtR/txY534D4+fiHid9e VcXA== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id f8030de0 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 9 Mar 2024 19:39:47 +0000 (UTC) Message-ID: <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> From: Vivien Kraus Date: Sat, 09 Mar 2024 20:39:45 +0100 In-Reply-To: <87y1are0a8.fsf@gmail.com> References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> <87y1are0a8.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) 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.0 (-) Le samedi 09 mars 2024 =C3=A0 13:18 -0500, Maxim Cournoyer a =C3=A9crit=C2= =A0: >=20 > I'd like to hear about upstream.=C2=A0 Perhaps our package is simply > buggy? > It'd be nice to have an upstream issue to link to. With a closer investigation, it looks lik we are doing things wrong indeed. >From within the failed build directory, if I set up the environment variable, run ocaml -I , and in the prompt, run: #load "base64.cma";; Base64.decode_exn;; I get an error message: Error: The files /gnu/store/wh2ipi0bjywcf5pyis6z1s52adf5cqyd-ocaml- base64-3.5.1/lib/ocaml/site-lib/base64/base64.cma and /gnu/store/i01v0c5yzhw62qmvrlv3y436igwhcafh-ocaml-extlib- 1.7.9/lib/ocaml/site-lib/extlib/base64.cmi make inconsistent assumptions over interface Base64 My guess is that we have 2 ocaml libraries implementing Base64 (ocaml- base64 and ocaml-extlib, propagated from ocaml-dose3). Dune sees that we have a powerful ocaml-base64 installed, so it lays out the compatibility version 6 for us, but when it comes to actually building the project, ocamlfind prioritizes the ocaml-extlib path by adding it first, and it shadows our powerful ocaml-base64 implementation. With this new extlib actor in the plot, I could search better. It seems like Opam is aware of the issue: https://github.com/ocaml/opam/issues/5694 The solution seems to be for extlib to ship a minimal version. But maybe this should primarily concern the ocaml team, not gnome-team, as it looks to me like a recipe for breaking at least half of the ocaml ecosystem. Best regards, Vivien From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 20:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vivien Kraus , Maxim Cournoyer Cc: rg@raghavgururajan.name, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.17100166483787 (code B ref 69677); Sat, 09 Mar 2024 20:38:02 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 20:37:28 +0000 Received: from localhost ([127.0.0.1]:34886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj3Rf-0000z1-O1 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 15:37:28 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:46186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj3Rd-0000yn-FZ for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 15:37:27 -0500 Received: by mail-lf1-f68.google.com with SMTP id 2adb3069b0e04-512e39226efso3234371e87.0 for <69677@debbugs.gnu.org>; Sat, 09 Mar 2024 12:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710016546; x=1710621346; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=TjM+pUh0sAtMirISDLl2BYe4bIXywE0ODtLlZfA8POE=; b=D4ujZttotKjk3O0rhpLcFqjT1OAeoZDKk2mQRsL1xtSbGmJjHcqHnxamjEYmDrwLvy SUWVnyuX29+exanNh/KYD01SBM2AoaJvV9rOVz+v7er1Fm0NW6mAWGW6AL2wT9nXvZk9 f1ZzBbC+WIhFcAdRRiPHfu3oeMIu+xd5rRFY3JKdXXfUsJw0Bkjt8r3hwLcl7pvvjYIT FwZwon0umO6/Mv7prZC746Xs9VWWLvqkw9q9fng/VgN3kpo8qJr8JK+aPessTjTx/NYV HdKbfmESsOAiWfBcMsnhjLdHyOnbD65gsOke6Z5zoUV8+EO9I7wk4S3afkE3MYycmGpL yD9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710016546; x=1710621346; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TjM+pUh0sAtMirISDLl2BYe4bIXywE0ODtLlZfA8POE=; b=Gz5zfzbfEzfO9SjNEy7oNNeCKHPYPDCa/vffgmb1fVTxQPVR0Gkf2ndcuEcZr27VbE z51oo5vPBJ3MDgxkh3WucdpaPfXTMibuXOcs5vbfk+vUQocZbt65AQaZWJxyjFHWX6i5 ge2VhM/bxcqy4k6vOjgqejiS0f25Pf9DnKw5v22UgAjfDwGin2cSJtGl0J7mrF0gSUnB WOe3ZzDGQoxqLTLN5Kwq+UbkZAHfNUCIRC1u1V2efW4HE5hLy5UHCnfrgk4xxCpiAj9H xw3upJ3nTFp221zKk3hE8CwJBbyUyF+zh3nEH2i5cS2P2IUsIG8VjyRg4doLHtbEyt0D rrgw== X-Gm-Message-State: AOJu0Yx7ALvo9LfwZ9HKrVyFcHjbVO/AQmpgpWZoGQpxwZ2zelZyxu9c N9vsvBysnF/HeEuL7lJNuROy9ynOieOydN6eT98SygZ1hAqw6skx X-Google-Smtp-Source: AGHT+IGzv1zULCtIIKS4kB4y6PLMB+Fxbllwb2At9ck4nl9UqgvVg+T73Igbcf21794XjYigEh5HGw== X-Received: by 2002:ac2:4283:0:b0:513:3b64:978b with SMTP id m3-20020ac24283000000b005133b64978bmr1463970lfh.23.1710016546352; Sat, 09 Mar 2024 12:35:46 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id o13-20020a17090611cd00b00a45ff1fe8dasm1159076eja.115.2024.03.09.12.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 12:35:45 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sat, 09 Mar 2024 21:35:43 +0100 In-Reply-To: <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> <87y1are0a8.fsf@gmail.com> <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) 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.0 (-) Hi Vivien, Am Samstag, dem 09.03.2024 um 20:39 +0100 schrieb Vivien Kraus: > My guess is that we have 2 ocaml libraries implementing Base64 > (ocaml-base64 and ocaml-extlib, propagated from ocaml-dose3). Dune > sees that we have a powerful ocaml-base64 installed, so it lays out > the compatibility version 6 for us, but when it comes to actually > building the project, ocamlfind prioritizes the ocaml-extlib path by > adding it first, and it shadows our powerful ocaml-base64 > implementation. >=20 > With this new extlib actor in the plot, I could search better.=C2=A0 It > seems like Opam is aware of the issue: >=20 > https://github.com/ocaml/opam/issues/5694 >=20 > The solution seems to be for extlib to ship a minimal version. But > maybe this should primarily concern the ocaml team, not gnome-team, > as it looks to me like a recipe for breaking at least half of the > ocaml ecosystem. How much of it is broken with gnome-team already (vs. broken on other branches)? It wouldn't be nice of us to say "here, we broke it, you fix it please". It also appears as though opam only has two dependants =E2=80=93 are we not tracking this correctly or is a minimal version in use anyway? Cheers From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 21:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , Maxim Cournoyer Cc: rg@raghavgururajan.name, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.17100198099798 (code B ref 69677); Sat, 09 Mar 2024 21:31:01 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 21:30:09 +0000 Received: from localhost ([127.0.0.1]:34908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Ge-0002Xx-Vp for submit@debbugs.gnu.org; Sat, 09 Mar 2024 16:30:09 -0500 Received: from planete-kraus.eu ([89.234.140.182]:51542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Gd-0002WC-B7 for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 16:30:07 -0500 Received: from planete-kraus.eu (localhost [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id bb7378c4; Sat, 9 Mar 2024 21:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; s= albinoniA; bh=zl/LVmVGU+fDiArmAjouq5RgDkE=; b=YKllAo+NJ1mf/HBDzj sS4ptef2SZr2jC1ggcqgJoE2/SD+r59EAJrWWAZl08/aj/9Jin9C7bFqDAsMhkpD FbTQZsJCzinm480lSbYwQ+qxmNoV8RzUByeh4yFqSDfhVDOb0sB6sdz5fMCJSTu+ 9gVjBaVMuQIZQmC00piZ3yTU+UJt/Wt+R+nB0m0tFVh0ks+XkOV3Uqw0/TCeTAuE Oog/dxoLm8H+D0o8LVhszkymwl3Qyb45nDqdQeUcKDPM/MUofGmF2u3bPhEBpFw6 ZKXQVmXPAYEfVbWAOGIkJzhkcveuvjsbKpqHamF2KyKYh0g5EVWnlZubLtLue5ul ymvA== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 63a262fd (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 9 Mar 2024 21:29:28 +0000 (UTC) Message-ID: From: Vivien Kraus Date: Sat, 09 Mar 2024 22:29:26 +0100 In-Reply-To: References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> <87y1are0a8.fsf@gmail.com> <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: -0.0 (/) 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.0 (-) Le samedi 09 mars 2024 =C3=A0 21:35 +0100, Liliana Marie Prikler a =C3=A9cr= it=C2=A0: > > The solution seems to be for extlib to ship a minimal version. But > > maybe this should primarily concern the ocaml team, not gnome-team, > > as it looks to me like a recipe for breaking at least half of the > > ocaml ecosystem. > How much of it is broken with gnome-team already (vs. broken on other > branches)?=C2=A0 It wouldn't be nice of us to say "here, we broke it, you > fix it please".=C2=A0 It also appears as though opam only has two > dependants > =E2=80=93 are we not tracking this correctly or is a minimal version in u= se > anyway? I meant that the fix should maybe be proposed to the OCaml team, not the GNOME team. I also over-estimated the number of packages that depend on ocaml-extlib, so it is probably safe. I opened #69682 for this. Best regards, Vivien From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69677] [PATCH gnome-team 1/1] gnu: opam: Fix build. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Mar 2024 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69677@debbugs.gnu.org, liliana.prikler@gmail.com, vivien@planete-kraus.eu, maxim.cournoyer@gmail.com Cc: rg@raghavgururajan.name X-Debbugs-Original-To: guix-patches@gnu.org, Liliana Marie Prikler , Vivien Kraus , Maxim Cournoyer X-Debbugs-Original-Cc: rg@raghavgururajan.name, 69677@debbugs.gnu.org Received: via spool by 69677-submit@debbugs.gnu.org id=B69677.171002015610333 (code B ref 69677); Sat, 09 Mar 2024 21:36:02 +0000 Received: (at 69677) by debbugs.gnu.org; 9 Mar 2024 21:35:56 +0000 Received: from localhost ([127.0.0.1]:34920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4MF-0002gb-LI for submit@debbugs.gnu.org; Sat, 09 Mar 2024 16:35:55 -0500 Received: from lepiller.eu ([89.234.186.109]:59700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4MA-0002gO-V7 for 69677@debbugs.gnu.org; Sat, 09 Mar 2024 16:35:54 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id ff37980c; Sat, 9 Mar 2024 21:35:15 +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=N+cPtO2tWxtH E1FD5kdUBPUFjWPYNrJkSzotbI5cqzg=; b=b3c6UebQ0IQ/b7pNp5d1c8rvLqkf LETdVeWuvEJOlrCS7kSnwzDhb4JA3zzLAd3t8m6aM8lE22OaZ8IwCjOEnVW5LRlP 9C7GfEQYzJGSKp31aQsiXDHUaVbK3zT+6C2MfuwtmxeC5EUCxlViQNwAiitOTD/s iIjWhog+aRdIzXlTKR5k0MD9pzN4uc3SzTzwjRZVENOAVGUiar53NKKQkQ7425Gf b1bf8BMKCFx2j84N/q3q7Rdkyuogd2OA4gxAaxuQToFgI13/CFo7ZKyYaSY1CjAS BirHajrVpXlZcHFcCUuXuQrljolvAjhhPdpk0AAn8MOc44gAKTU3e4K7jA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 6d3e98c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 9 Mar 2024 21:35:14 +0000 (UTC) Date: Sat, 09 Mar 2024 22:35:12 +0100 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: References: <3a4e1befc3e3da925fccec1d88f53fff1ffff83b.1709986125.git.vivien@planete-kraus.eu> <87y1are0a8.fsf@gmail.com> <6052b863f74d183b2088db53ce85f41c6e1a247f.camel@planete-kraus.eu> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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.0 (-) Le 9 mars 2024 21:35:43 GMT+01:00, Liliana Marie Prikler a =C3=A9crit=C2=A0: >Hi Vivien, > >Am Samstag, dem 09=2E03=2E2024 um 20:39 +0100 schrieb Vivien Kraus: >> My guess is that we have 2 ocaml libraries implementing Base64 >> (ocaml-base64 and ocaml-extlib, propagated from ocaml-dose3)=2E Dune >> sees that we have a powerful ocaml-base64 installed, so it lays out >> the compatibility version 6 for us, but when it comes to actually >> building the project, ocamlfind prioritizes the ocaml-extlib path by >> adding it first, and it shadows our powerful ocaml-base64 >> implementation=2E >>=20 >> With this new extlib actor in the plot, I could search better=2E=C2=A0 = It >> seems like Opam is aware of the issue: >>=20 >> https://github=2Ecom/ocaml/opam/issues/5694 >>=20 >> The solution seems to be for extlib to ship a minimal version=2E But >> maybe this should primarily concern the ocaml team, not gnome-team, >> as it looks to me like a recipe for breaking at least half of the >> ocaml ecosystem=2E Sounds like we could switch extlib to the dune build-system, possibly addi= ng a #:package argument to make sure it doesn't build the compat version=2E >How much of it is broken with gnome-team already (vs=2E broken on other >branches)? It wouldn't be nice of us to say "here, we broke it, you >fix it please"=2E It also appears as though opam only has two dependants >=E2=80=93 are we not tracking this correctly or is a minimal version in u= se >anyway? opam is not used to build ocaml packages, so it's not a surprise to me it = has so few dependents=2E Would be nice not to break it though, it's still a= useful program by itself :) > >Cheers > > >