From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2CRHB2yh4GUR0AAAe85BDQ:P1 (envelope-from ) for ; Thu, 29 Feb 2024 16:23:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2CRHB2yh4GUR0AAAe85BDQ (envelope-from ) for ; Thu, 29 Feb 2024 16:23:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=hIERCpud; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709220204; h=from:from:sender:sender:reply-to: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=VcsLsUEMLbzBBDR/6N28RfDfj9lUT2fndMOiowrKUDc=; b=g/xaLCAMe6Ev5nj/W0tE12Q6Y67OTSy2fxeZm9s+sticwTXZGxrL9iPAnA1Xwohhqwe64S /Kk8IjvhcH0aDT6iIuSa8tgW4ybO4I4+b/N9W3BMdenAdO4HU8YhbSQhlcbFSrfxj8yx0D 9M3HFzEziuiICOvP2at3SAm2BDN1fn8txKRs4ULzqSKSFaowMllKFCtw3JBCU0J80wgXPx 2DkbbZ+nRC4cNKWbm5k4w61t5UyZtggthRxZ9Gg9AMzZ/2Nx82wl6878UmYun91fdct90f qSTqSWyg2nPs8HhYrj1lVwilxlViwIYDE6RwRb1PGjCVHNqMlpxef/f+mLSmKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=hIERCpud; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709220204; a=rsa-sha256; cv=none; b=sA5baDfXZ+U7KaQBlobclJsu/C8+EkmXEDXXP1YWj8aafF/zASxIjN2UVPrVB8Mb0hiQ+8 mHQ3Z/6DnAlx9kHOYNV5BngC19GcdbbhJhF6Y9E2r8wDQYG1sBRxJAf8T+NCRt0WDGwKiu YfsvMDV0S3QuhOSzR/gyPsFActP9oImKkmdGe2L6AZbTlN3H3ZPIUHcqrkCLqn2t7eu+GK o1hUV44SxG1ZdH+ViDc14K1l4tTSjgpdKx4eL+IDfKbpWhhvq4Hjja7tU34JjyKdbQWOW7 aXOooc4Q5T47ZBxLRt8ya54ZXvVnhSS75XtfDYjBOEDm6PVXrIMHTXK+RkDK2g== 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 B1B0E5752B for ; Thu, 29 Feb 2024 16:23:23 +0100 (CET) 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 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches From: Jean-Pierre De Jesus DIAZ via Guix-patches via 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 X-Migadu-Spam-Score: -6.27 X-Spam-Score: -6.27 X-Migadu-Queue-Id: B1B0E5752B X-Migadu-Scanner: mx13.migadu.com X-TUID: +0PtHdAWgwLo * 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) -- 2.41.0