From unknown Mon Jun 23 15:02:01 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65125] [PATCH] gnu: ntp: Fix cross-compilation inputs. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Aug 2023 12:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65125 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65125@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169141069727116 (code B ref -1); Mon, 07 Aug 2023 12:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 12:18:17 +0000 Received: from localhost ([127.0.0.1]:60760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzBg-00073I-Tg for submit@debbugs.gnu.org; Mon, 07 Aug 2023 08:18:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzBf-000734-0H for submit@debbugs.gnu.org; Mon, 07 Aug 2023 08:18:15 -0400 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 1qSzBU-0005fM-2p for guix-patches@gnu.org; Mon, 07 Aug 2023 08:18:05 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSzBQ-0004RA-Tx for guix-patches@gnu.org; Mon, 07 Aug 2023 08:18:02 -0400 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe58faa5cfso4720745e87.3 for ; Mon, 07 Aug 2023 05:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1691410677; x=1692015477; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xBknUd45zOsxafwMBvdSPPlYnuCJ1E12YriKpUWjCJw=; b=BTARfYH6fC21vqLwiEhDVtymK74MFkb7EF4UM5Kq1US4P40EJ9dDVlmVuTRbYq4f+L qtpG3Vxk5d0e5fm/VSFTunhNmQJ79cDrgG3JyY47ub/0cd/EI33FArBI+JJcA0u/q4JG 2JD3twDct4iUXFaQirk8frD7632CIpP+520fhWYZNCdC/qmIz7z/gEEcCaKvB+evfM9s 7151aIXAMwO0hrufNm1xEBIrTAHFbZNaQiS40Eb89WgThpdgybH0wY4jjtO9sRSfoVeb TblEQ5UIBh073nTA8ixC5S/9fOEzJXoouqD/R9tA0wozqMhOOupeCybJtU2NaIJYp665 Dk5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691410677; x=1692015477; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xBknUd45zOsxafwMBvdSPPlYnuCJ1E12YriKpUWjCJw=; b=bNGlKQ+pRs/E+cqWQww2ZnZMXmV21vYw3u4ezIo/js2ON5kHJVE6TgO9cVzkxhjH96 aBG/ohQjikX/e0hF6AeuANiMLH1AzoVucOBsh9AVtnw5fLdx9ka4d5k+e8KQwLc8HfLd AU0DDd7BGh4sGjGYSC2o9S8tCEF573s2XHpLenODyljjtMdBUhRcZhswkq94TQnJdTlo zaqbuMrjl3MI9TvHJp7Z/r1QjI5W3oLpk/fimK0qhNRe3mu9OkzKwQ6k3SxqIT7zPnTi RRqtBXYBEOlAb9HAdMClfyg0RLX9VXWrS5RzgLF4lQgmB9RhiqOZo8rRLq5JqHu2FdqD Nrkw== X-Gm-Message-State: AOJu0Yxv9lwgRPEHK+o4HNpnd7feb/dCin77GK/xG6ecKUNfSylpm0ht fO0INFyL34BSy3UxKK0p4rz9y6o/j1+2Y+/UGQgSPA== X-Google-Smtp-Source: AGHT+IFM0Oj08kfMzpj2Mv8Jmf0MsU/mUop4JVlN4QQFnUFBC8dXnULCLCBVxLLSYorbH9vDFk/3pQ== X-Received: by 2002:a05:6512:2822:b0:4fb:8fde:f60d with SMTP id cf34-20020a056512282200b004fb8fdef60dmr6864696lfb.22.1691410677279; Mon, 07 Aug 2023 05:17:57 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id g17-20020a7bc4d1000000b003fe26bf65e7sm10532980wmk.13.2023.08.07.05.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 05:17:56 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ Date: Mon, 7 Aug 2023 14:17:49 +0200 Message-Id: <20230807121749.60346-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=jean@foundationdevices.com; helo=mail-lf1-x12c.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) * gnu/packages/ntp.scm (ntp)[inputs]: Use `target-linux?' instead of the manual string comparison as it would not add the libcap input correctly when cross-compiling as the platform ends in `-linux-gnu' unlike the system string which ends in `-linux'. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/ntp.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 1a72efbc79..4ab8ab6631 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -139,8 +139,7 @@ (define-public ntp libevent ;; Build with POSIX capabilities support on GNU/Linux. This allows ;; 'ntpd' to run as non-root (when invoked with '-u'.) - (if (string-suffix? "-linux" - (or (%current-target-system) (%current-system))) + (if (target-linux?) (list libcap) '()))) (arguments -- 2.34.1 From unknown Mon Jun 23 15:02:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jean-Pierre De Jesus DIAZ Subject: bug#65125: closed (Re: bug#65125: [PATCH] gnu: ntp: Fix cross-compilation inputs.) Message-ID: References: <87y1igdmv7.fsf@gnu.org> <20230807121749.60346-1-jean@foundationdevices.com> X-Gnu-PR-Message: they-closed 65125 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 65125@debbugs.gnu.org Date: Sat, 12 Aug 2023 20:32:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1691872322-9127-1" This is a multi-part message in MIME format... ------------=_1691872322-9127-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65125: [PATCH] gnu: ntp: Fix cross-compilation inputs. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65125@debbugs.gnu.org. --=20 65125: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65125 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1691872322-9127-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65125-done) by debbugs.gnu.org; 12 Aug 2023 20:31:09 +0000 Received: from localhost ([127.0.0.1]:57535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUvGP-0002M5-1R for submit@debbugs.gnu.org; Sat, 12 Aug 2023 16:31:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUvGM-0002Lh-Mw for 65125-done@debbugs.gnu.org; Sat, 12 Aug 2023 16:31:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUvGD-00082Y-1u; Sat, 12 Aug 2023 16:31:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=1wgUGi0VxdH+BKUp5cx7X/yVB6L+UwYj7HhO7qvCpMg=; b=DXHwFqIuJuwI4jXlQ8r7 Ook1bQSX5v0I7quyy5VkbCk80i9NFXM8zH7fGYcWMpACOWmf+L9I75G13/B6jMm2+v3FQwg9Hu/BQ 61KddkvC67VwYAS4cU70fWckFc3v/5sFro6R6LlVFDi4KsWFmFBHrKjLPsJcVpyzfv9RjOEC4ZEt4 jnwVqj375e6sXkBr+fuBLAlmR6PFe8AGZJdZyOIejBPHMaTgHKkI7iWx5+79sUPuN9NjyCNwjMvkb xoa/jpnDxWyCIULDRUIyh3BEoIC7sFTFZfdpn+mHBB1Qq4RdWKG72PcWSCQqGKeMgTKuGnRNUaDCc 8BEY+OLLRh842g==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jean-Pierre De Jesus DIAZ Subject: Re: bug#65125: [PATCH] gnu: ntp: Fix cross-compilation inputs. References: <20230807121749.60346-1-jean@foundationdevices.com> Date: Sat, 12 Aug 2023 22:30:52 +0200 In-Reply-To: <20230807121749.60346-1-jean@foundationdevices.com> (Jean-Pierre De Jesus DIAZ's message of "Mon, 7 Aug 2023 14:17:49 +0200") Message-ID: <87y1igdmv7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65125-done Cc: 65125-done@debbugs.gnu.org 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: -3.3 (---) Hi, Jean-Pierre De Jesus DIAZ skribis: > * gnu/packages/ntp.scm (ntp)[inputs]: Use `target-linux?' instead of > the manual string comparison as it would not add the libcap input > correctly when cross-compiling as the platform ends in `-linux-gnu' > unlike the system string which ends in `-linux'. Applied, thanks! Ludo=E2=80=99. ------------=_1691872322-9127-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 12:18:17 +0000 Received: from localhost ([127.0.0.1]:60760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzBg-00073I-Tg for submit@debbugs.gnu.org; Mon, 07 Aug 2023 08:18:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSzBf-000734-0H for submit@debbugs.gnu.org; Mon, 07 Aug 2023 08:18:15 -0400 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 1qSzBU-0005fM-2p for guix-patches@gnu.org; Mon, 07 Aug 2023 08:18:05 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSzBQ-0004RA-Tx for guix-patches@gnu.org; Mon, 07 Aug 2023 08:18:02 -0400 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe58faa5cfso4720745e87.3 for ; Mon, 07 Aug 2023 05:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1691410677; x=1692015477; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xBknUd45zOsxafwMBvdSPPlYnuCJ1E12YriKpUWjCJw=; b=BTARfYH6fC21vqLwiEhDVtymK74MFkb7EF4UM5Kq1US4P40EJ9dDVlmVuTRbYq4f+L qtpG3Vxk5d0e5fm/VSFTunhNmQJ79cDrgG3JyY47ub/0cd/EI33FArBI+JJcA0u/q4JG 2JD3twDct4iUXFaQirk8frD7632CIpP+520fhWYZNCdC/qmIz7z/gEEcCaKvB+evfM9s 7151aIXAMwO0hrufNm1xEBIrTAHFbZNaQiS40Eb89WgThpdgybH0wY4jjtO9sRSfoVeb TblEQ5UIBh073nTA8ixC5S/9fOEzJXoouqD/R9tA0wozqMhOOupeCybJtU2NaIJYp665 Dk5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691410677; x=1692015477; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xBknUd45zOsxafwMBvdSPPlYnuCJ1E12YriKpUWjCJw=; b=bNGlKQ+pRs/E+cqWQww2ZnZMXmV21vYw3u4ezIo/js2ON5kHJVE6TgO9cVzkxhjH96 aBG/ohQjikX/e0hF6AeuANiMLH1AzoVucOBsh9AVtnw5fLdx9ka4d5k+e8KQwLc8HfLd AU0DDd7BGh4sGjGYSC2o9S8tCEF573s2XHpLenODyljjtMdBUhRcZhswkq94TQnJdTlo zaqbuMrjl3MI9TvHJp7Z/r1QjI5W3oLpk/fimK0qhNRe3mu9OkzKwQ6k3SxqIT7zPnTi RRqtBXYBEOlAb9HAdMClfyg0RLX9VXWrS5RzgLF4lQgmB9RhiqOZo8rRLq5JqHu2FdqD Nrkw== X-Gm-Message-State: AOJu0Yxv9lwgRPEHK+o4HNpnd7feb/dCin77GK/xG6ecKUNfSylpm0ht fO0INFyL34BSy3UxKK0p4rz9y6o/j1+2Y+/UGQgSPA== X-Google-Smtp-Source: AGHT+IFM0Oj08kfMzpj2Mv8Jmf0MsU/mUop4JVlN4QQFnUFBC8dXnULCLCBVxLLSYorbH9vDFk/3pQ== X-Received: by 2002:a05:6512:2822:b0:4fb:8fde:f60d with SMTP id cf34-20020a056512282200b004fb8fdef60dmr6864696lfb.22.1691410677279; Mon, 07 Aug 2023 05:17:57 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id g17-20020a7bc4d1000000b003fe26bf65e7sm10532980wmk.13.2023.08.07.05.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 05:17:56 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ To: guix-patches@gnu.org Subject: [PATCH] gnu: ntp: Fix cross-compilation inputs. Date: Mon, 7 Aug 2023 14:17:49 +0200 Message-Id: <20230807121749.60346-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=jean@foundationdevices.com; helo=mail-lf1-x12c.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Jean-Pierre De Jesus DIAZ 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: -0.0 (/) * gnu/packages/ntp.scm (ntp)[inputs]: Use `target-linux?' instead of the manual string comparison as it would not add the libcap input correctly when cross-compiling as the platform ends in `-linux-gnu' unlike the system string which ends in `-linux'. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/ntp.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 1a72efbc79..4ab8ab6631 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -139,8 +139,7 @@ (define-public ntp libevent ;; Build with POSIX capabilities support on GNU/Linux. This allows ;; 'ntpd' to run as non-root (when invoked with '-u'.) - (if (string-suffix? "-linux" - (or (%current-target-system) (%current-system))) + (if (target-linux?) (list libcap) '()))) (arguments -- 2.34.1 ------------=_1691872322-9127-1--