From patchwork Thu Feb 29 15:20:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 61246 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4EC8327BBE9; Thu, 29 Feb 2024 15:23:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 99EC827BBEB for ; Thu, 29 Feb 2024 15:23:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfiF6-00071y-HC; Thu, 29 Feb 2024 10:22:40 -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 1rfiF3-0006yh-Vm for guix-patches@gnu.org; Thu, 29 Feb 2024 10:22:38 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfiF3-0004Wb-Nh for guix-patches@gnu.org; Thu, 29 Feb 2024 10:22:37 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfiFU-0004ha-T1 for guix-patches@gnu.org; Thu, 29 Feb 2024 10:23:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Feb 2024 15:23:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69476 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69476@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 69476-submit@debbugs.gnu.org id=B69476.170922016717992 (code B ref 69476); Thu, 29 Feb 2024 15:23:04 +0000 Received: (at 69476) by debbugs.gnu.org; 29 Feb 2024 15:22:47 +0000 Received: from localhost ([127.0.0.1]:35035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiFC-0004g2-Se for submit@debbugs.gnu.org; Thu, 29 Feb 2024 10:22:47 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:42145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiF4-0004em-2q for 69476@debbugs.gnu.org; Thu, 29 Feb 2024 10:22:38 -0500 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-412bfacd146so3892465e9.0 for <69476@debbugs.gnu.org>; Thu, 29 Feb 2024 07:22:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1709220065; x=1709824865; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VcsLsUEMLbzBBDR/6N28RfDfj9lUT2fndMOiowrKUDc=; b=hIERCpuditUMvyz+F6eldjQ51FGu3BcWNHPGUqCZLuWKpPvH2BH8/4/D1oqEPqpw+6 cWB9iB0MggApcXgYphV8sSzh3/pfLhtGIdcI1NsySzMHK5igfOy102mXALJiHUgx9c7C e1IyUCwo6IEELysnGjZB+J/zFKQDYgfpg+alB5qcSmouzAokDl4pWJdGfwsOJ2u9Ly4A o/qM7GatxOEGUVXeqQaYwMKCegbJ91QcYuzN43SJLbAoj3LGmtijN+5BTxxa4MRcfRT6 KWnENEjVOwDWhG3ZRAdJZZ0tFD7VYs/0EQr8NANs1GfhBZ9GnV67OmUXvmW8kXvyp/LP Qh0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709220065; x=1709824865; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VcsLsUEMLbzBBDR/6N28RfDfj9lUT2fndMOiowrKUDc=; b=oBYpSMOzP2Wip9ptkN0NWWCkdW3q9sZpgBbIe3GcmZj+54X3RgkYxhEOCsQlyvo1Ab uAeAHF/LVrJ2OrBFzfXGxWajXZ7PMCFRzZHrA7LH/DMsYA5ZdvdGQcHb4KxVENIyLZBE +sCTyJIAB28ZinYjBRIKfMp3jPMd7Qf8LT7JWi1EU52kMGhjeliTp5JtC49Pn6T+CNPT 5sk7S92MIAo0DOPDN2yc/iFtTGIMD/2r+i7axH+Sd+il5LfF4keoMnTQfYgivq3lnz7T 0Qt3zOZGYAMDjPY0TlOX5KaKlX2fbAP0RWU/9c19nhBnMZYUJ614NABt/mx31pCth/uj hSoA== X-Gm-Message-State: AOJu0Yxs2v6Wjx9YZxPuds1nc4HUdfLSO2E4HGwK8OhpEGfBR0IN/QIG pMlmuALnehRmhwywL8p7PiQxkcWVejfsngDILsbDIbDegbksOCPPmWQbWqcirwsWRgWyDOxJ76Y gBxw= X-Google-Smtp-Source: AGHT+IGxTgn9SBIDs0EKxITlrnF7puD8PRFqqnU4vwXqlL0q9JvoWeyaThl4EtSo2+MgI2HuQjk4cA== X-Received: by 2002:a05:600c:1548:b0:412:aec6:484f with SMTP id f8-20020a05600c154800b00412aec6484fmr2501501wmg.15.1709220065048; Thu, 29 Feb 2024 07:21:05 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id n6-20020a05600c4f8600b0041273fc463csm5584786wmq.17.2024.02.29.07.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:21:04 -0800 (PST) Date: Thu, 29 Feb 2024 16:20:49 +0100 Message-ID: <4d426a20ba51e666b481324ff6300ad2af98a5f3.1709219325.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/build/cmake-build-system.scm (configure): Use Generic as the system name if the system is unknown. Change-Id: Ifd4a618ef67eb420b02d48f05291571aea44e46e --- guix/build/cmake-build-system.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm index d1ff5071be..0774124c95 100644 --- a/guix/build/cmake-build-system.scm +++ b/guix/build/cmake-build-system.scm @@ -69,9 +69,13 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t) target "-gcc") (string-append "-DCMAKE_CXX_COMPILER=" target "-g++") - (if (string-contains target "mingw") - "-DCMAKE_SYSTEM_NAME=Windows" - "-DCMAKE_SYSTEM_NAME=Linux")) + (cond + ((string-contains target "mingw") + "-DCMAKE_SYSTEM_NAME=Windows") + ((string-contains target "linux") + "-DCMAKE_SYSTEM_NAME=Linux") + (else + "-DCMAKE_SYSTEM_NAME=Generic"))) '()) ,@configure-flags))) (format #t "running 'cmake' with arguments ~s~%" args)