From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wC/1EIN2cWLlDwEAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 20:37:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CK3zEIN2cWJTPAAA9RJhRA (envelope-from ) for ; Tue, 03 May 2022 20:37:55 +0200 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 E6E3F2DD8F for ; Tue, 3 May 2022 20:37:54 +0200 (CEST) Received: from localhost ([::1]:37936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlxPG-00025g-1n for larch@yhetil.org; Tue, 03 May 2022 14:37:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlxMW-0000DO-Dx for guix-patches@gnu.org; Tue, 03 May 2022 14:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlxMW-0007Bv-4I for guix-patches@gnu.org; Tue, 03 May 2022 14:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlxMW-0002nl-2E for guix-patches@gnu.org; Tue, 03 May 2022 14:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55248] [PATCH 6/7] gnu: stex: Get machine type dynamically. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 May 2022 18:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55248 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55248@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 55248-submit@debbugs.gnu.org id=B55248.165160289010696 (code B ref 55248); Tue, 03 May 2022 18:35:04 +0000 Received: (at 55248) by debbugs.gnu.org; 3 May 2022 18:34:50 +0000 Received: from localhost ([127.0.0.1]:41053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlxMI-0002mS-GY for submit@debbugs.gnu.org; Tue, 03 May 2022 14:34:50 -0400 Received: from mail-vs1-f45.google.com ([209.85.217.45]:42722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlxMH-0002ls-6Y for 55248@debbugs.gnu.org; Tue, 03 May 2022 14:34:49 -0400 Received: by mail-vs1-f45.google.com with SMTP id i186so17282141vsc.9 for <55248@debbugs.gnu.org>; Tue, 03 May 2022 11:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qjy7GoVY+8fdHFIxYvj8l085ymqiF47iTCDIlBChsm0=; b=QcX0MI2RjEYBZqe11mhaaeYKABS+nVlRBRtGzOY0CkFfk/eHxiPlCeenOcbvhuNFvw C7vpH4Bga2XheD4K0FxPbIkq9XrafIhRM5CwpYEm1tyyKKDJp91bTmiz7Aey3bAkcrJ5 kZ/zrnLsxNuXkRIcIsz+TRATsD78dJsJ9O9G95IcdiKz8nujYnY18lxXlwLzkbDjyext Mih2T1kh6opeHaDcqmEO8r3JvI88W3mn7bpinhDqsb8XH4MiTfWroRNgly86woluNSWn V1OrJBohSKPQxXSFnZdrkXquyjkK94s/G4onK7KK+4Ks+xiWDTGXJ0mpXnaeeOMQdrP4 zXuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qjy7GoVY+8fdHFIxYvj8l085ymqiF47iTCDIlBChsm0=; b=ORNpH7eT2KQPwf+CYIEYYA5rSuAZ9VyrTjkVqObwTSXRC1fM+XW/GoPJdq2M+QeaWE Lhiyu3Kis+3jn4ioXXQ+tzZDdXH30rnHc05yYih9XDp7BdbNczTEN2J5ByztUDxiyGhU kRCMKtkXvTnyx98a/VUYstW6Qe1y/f7ecH69Iqn+e6LSFtD8zjPkDqaYVYG/TPezJmS8 atL27vX1/tSPIa4AYIZgGmjkn7oUEQ7DbYsBJaJvd85vqRdAPMqg5WlljlOXp8H/V+KZ /xONAuAx8H+gPbfFtz7JUJsgBbNCyW5z72j9lDrhqUwQo3yHitUU2xGP33LJ5C5SMnNY cVWQ== X-Gm-Message-State: AOAM531/FivDC7Y4kob8pPOfTCpKXiTnWiiuZcuo+GeCfduWV3ravJtZ PDF2brNKPO5meY4suBrh/4zwN6yGY54Lrr7a X-Google-Smtp-Source: ABdhPJwnrDEuZKnd5BBsBApAFt4X8px7CHqd3x7yL6ZdMvuAohDV/FIxaRH7wnb/uVXxMNoJEykHrg== X-Received: by 2002:a67:e217:0:b0:32c:c30f:e9b0 with SMTP id g23-20020a67e217000000b0032cc30fe9b0mr4984834vsa.26.1651602883684; Tue, 03 May 2022 11:34:43 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id w1-20020ab07281000000b003626f894dfasm3823144uao.40.2022.05.03.11.34.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 11:34:43 -0700 (PDT) From: Philip McGrath Date: Tue, 3 May 2022 14:33:45 -0400 Message-Id: <5375de56eda0ee7c218ddf48da61ea600c0d2589.1651594312.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651603074; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=Qjy7GoVY+8fdHFIxYvj8l085ymqiF47iTCDIlBChsm0=; b=jheVUQVbj/kNUfahN6F3nv96Gt8Kx8/Xr04MM20kxqQwTQgGTFsa8BYEtxiTasDYIkb+UC fKx4kCGVuws2AzS2lLT80VG8EhrN8RkwDZFtSfhuHVRUSh8Auc4gWo04yjqTf/loNmvZFW 02zbdI3Lf5MYbIWh2Mmbvc1X5Kr5STUSMkbhpFWxa6bpszG+4YiSw1hmgW8npXDXOI8yHv NrspBAvvBB200LqHkUzqCbzPp025KiIt+St/lTgDTKz6P8vQKIDFGcwjeQy2Sf4g+bZVu5 keukKHYqTxxU+wJd/POl+S/EpHOhxzliBSSogSnnp7OQo9j3GpFXPgec2RpQ4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651603074; a=rsa-sha256; cv=none; b=VPET9OgCrxJ/83ZPNxkZddTsu9HBeezYzUmdICaE+RdkjU1JUKbmxwlrb5uwjbPE/gnPuM IzTHGthhWa3rAfVm07lTp6Nv8iIki8rCuvlmZBbyy9q6PeKSRwKvWXeEkAWkBlib3SJ5Qj 5K2KS31c1Bg3JkGLCk4YFXVHuG7iSTioAhZeuES9YheN+PslkMGEqIzPtOSLh6d+6Vb9DL Zj2jAukiltWeqKicbHBzMsha7pN8Ok6HyE4cUvV+7m0Wm2U7HkEUdwCvMwNFdCJiM3X4QF J/IaB5w8dDtc20zKPOa4cfzg+4cpXX+SAZY/DveTGdh4T3tyBmydaNLizk4gyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=QcX0MI2R; dmarc=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: 1.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=QcX0MI2R; dmarc=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: E6E3F2DD8F X-Spam-Score: 1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: IQv389a0NNrM * gnu/packages/chez.scm (stex)[arguments]: Run 'scheme' to determine the machine type. --- gnu/packages/chez.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index 785b6837c1..ea53cf5774 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -602,6 +602,10 @@ (define-public stex-bootstrap ("src" "lib/stex/") ("Mf-stex" "lib/stex/") ("Makefile.template" "lib/stex/")) + #:modules + '((guix build copy-build-system) + (guix build utils) + (ice-9 popen)) #:phases #~(modify-phases %standard-phases (add-before 'install 'patch-sources @@ -633,8 +637,12 @@ (define-public stex-bootstrap (define makefile (string-append (getcwd) "/Makefile")) (define machine - #$(and=> (nix-system->chez-machine) - chez-machine->threaded)) + (let ((pipe (open-pipe* OPEN_BOTH scheme "-q"))) + (write '(machine-type) pipe) + (force-output pipe) + (let ((sym (read pipe))) + (close-pipe pipe) + (symbol->string sym)))) (with-directory-excursion (search-input-directory outputs "/lib/stex") (invoke "make" -- 2.32.0