From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41150@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15890373349813 (code B ref -1); Sat, 09 May 2020 15:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 15:15:34 +0000 Received: from localhost ([127.0.0.1]:48237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXRCQ-0002Y9-76 for submit@debbugs.gnu.org; Sat, 09 May 2020 11:15:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:60278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXRCJ-0002Xm-QA for submit@debbugs.gnu.org; Sat, 09 May 2020 11:15:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXRCJ-0008DX-Kj for guix-patches@gnu.org; Sat, 09 May 2020 11:15:27 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:45628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXRCG-0000mV-L1 for guix-patches@gnu.org; Sat, 09 May 2020 11:15:27 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 672a24ca for ; Sat, 9 May 2020 15:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=ibtkyz4UNg2p9UKC7fGD8/0Fkh1/AfGLG1nM vA5GXH0=; b=EhMLRAYjw1jVpAfS6mACJKZogjRvQSnQn0+yWK1Ivlf3MzjfqQnD cbgT7bq6i/AbkZHcBfVUPwQDcN/ok2oBeScejcWLJ72wiYYyaz8IDxSGMz+bbpq5 WRdqVrDYEEn/Yu69HvUmHhmZAXAwH5yB553RQafD+C31siF4U6vbRqtvcjKXBDAh AgmHAhleVIVqoju4dxjRz6zS2OtyI+y4rlhSb2zK0pZxplfVRPewPn94c9htXr/n RJHs2agCZ7/3UU9wP3lo5sKTqaT7BDnFxgDdaWoFcPPRG0NWLzvkcKKHWAjpy78Z HSEGtIhwOCaGBJbSdIxaVDnEPwoQRPC2sg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 916d75ec (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 9 May 2020 15:15:20 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Sat, 9 May 2020 17:15:09 +0200 Message-Id: <20200509151509.11424-1-me@tobias.gr> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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 (--) * gnu/packages/linux.scm (powerstat): New public variable. --- gnu/packages/linux.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d2bffe8d8c..0d558f0277 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1195,7 +1195,50 @@ at login. Local and dynamic reconfiguration are its key features.") ;;; Miscellaneous. ;;; +(define-public powerstat + (package + (name "powerstat") + (version "0.02.22") + (source + (origin + (method url-fetch) + (uri (string-append "https://kernel.ubuntu.com/~cking/tarballs/" + "powerstat/powerstat-" version ".tar.gz")) + (sha256 + (base32 "0r355b9syqa2nhfy8ksvxyy5d58v0isf983842js091s6liy0x7g")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "CC=gcc" + (string-append "prefix=" (assoc-ref %outputs "out"))) + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'respect-$prefix + ;; https://bugs.launchpad.net/ubuntu/+source/powerstat/+bug/1877744 + (lambda _ + (substitute* "Makefile" + (("DIR=/usr/") "DIR=$(prefix)/")) + #t)) + (delete 'configure)))) ; no configure script + (home-page "https://kernel.ubuntu.com/~cking/powerstat/") + (synopsis "Measure system power consumption") + (description + "Powerstat measures and reports your computer's power consumption in real +time. On mobile PCs, it uses ACPI battery information to measure the power +drain of the entire system. + +Powerstat can also report @acronym{RAPL, Running Average Power Limit} power +domain measurements. These are available only on some hardware such as Intel +Sandybridge and newer, and cover only part of the machine's components such as +CPU, DRAM, and graphics. However, they provide accurate and immediate readings +and don't require a battery at all. + +The output is like @command{vmstat} but also shows power consumption statistics: +at the end of a run, @command{powerstat} will calculate the average, standard +deviation, and minimum and maximum values. It can show a nice histogram too.") + (license license:gpl2))) + (define-public psmisc (package (name "psmisc") -- 2.26.2 From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41150@debbugs.gnu.org Cc: me@tobias.gr X-Debbugs-Original-To: Tobias Geerinckx-Rice via Guix-patches via X-Debbugs-Original-Cc: 41150@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.15890447128205 (code B ref -1); Sat, 09 May 2020 17:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 17:18:32 +0000 Received: from localhost ([127.0.0.1]:48333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXT7Q-00028G-C1 for submit@debbugs.gnu.org; Sat, 09 May 2020 13:18:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:52128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXSrB-0001aO-2l for submit@debbugs.gnu.org; Sat, 09 May 2020 13:01:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXSrA-0002am-S0 for guix-patches@gnu.org; Sat, 09 May 2020 13:01:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55554) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXSr9-0001eW-S6; Sat, 09 May 2020 13:01:43 -0400 Received: from [2a01:cb18:832e:5f00:e8d5:b79f:eb28:d981] (port=55274 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXSr9-0001Pq-8d; Sat, 09 May 2020 13:01:43 -0400 From: Mathieu Othacehe References: <20200509151509.11424-1-me@tobias.gr> Date: Sat, 09 May 2020 19:01:40 +0200 In-Reply-To: <20200509151509.11424-1-me@tobias.gr> (Tobias Geerinckx-Rice via Guix-patches via's message of "Sat, 9 May 2020 17:15:09 +0200") Message-ID: <87y2q1yrd7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Sat, 09 May 2020 13:18:30 -0400 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 (---) Hey Tobias, > + (arguments > + `(#:make-flags > + (list "CC=gcc" Hard-coding CC this way will prevent cross-compilation. You can have a look to "crda" or "libaio" for examples. As this is a recurring pattern, we should find a way to add it somewhere in the build-system. But for now, the ugly snippet appending target should work :). Otherwise this looks fine! Thanks, Mathieu From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 41150@debbugs.gnu.org X-Debbugs-Original-Cc: 41150@debbugs.gnu.org, Tobias Geerinckx-Rice via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.15890455499965 (code B ref -1); Sat, 09 May 2020 17:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 17:32:29 +0000 Received: from localhost ([127.0.0.1]:48357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXTKv-0002ae-GL for submit@debbugs.gnu.org; Sat, 09 May 2020 13:32:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:48182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXTKu-0002aS-6x for submit@debbugs.gnu.org; Sat, 09 May 2020 13:32:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXTKt-0004un-GC for guix-patches@gnu.org; Sat, 09 May 2020 13:32:28 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:47692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXTKs-0007jh-1B; Sat, 09 May 2020 13:32:26 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 53f2d5db; Sat, 9 May 2020 17:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=s+ePOzSTSGu6rBkYim9TPZ /kjsbQYn+FoGAi66/2sGg=; b=f2Raz5OeZg8Oh9biX1emaLIbBgz7h1v81uY1pr cgfictAbNFYiPMNzDS9XPNTlaCR4YaAzEajNm0m2c7CDLBTEbKkMr1NAk0Y93SlB I1QztMziKkEVevoGPRVsTF/sSgDKqsAhFW5UGUr4V6UFFBSi/OxKrD1K6o1HKcub owGJLM7LWsAdVCmmtZgqL6xXOu41YMHe4Ln133bGUVsZMelVkcz1bTax4pYzbUHA UhXWQcVoLgU6zpx1Mu+i36wMaFR2oScSizJcuPbKhOW7s7l2CsYGUOt+V2vcqsBT wGjpokRSItRcs9QY0FcEjkukFSPhQEIK587tHid9T2IjAnxQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1c1125bb (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 9 May 2020 17:32:21 +0000 (UTC) From: Tobias Geerinckx-Rice References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> In-reply-to: <87y2q1yrd7.fsf@gnu.org> Date: Sat, 09 May 2020 19:32:15 +0200 Message-ID: <87ftc9ovz4.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Mathieu, Mathieu Othacehe =E5=86=99=E9=81=93=EF=BC=9A > Hard-coding CC this way will prevent cross-compilation. You can=20 > have a > look to "crda" or "libaio" for examples. Eh? This is the first time anyone's ever mentioned that. Thanks!=20 It's obvious how much cross-compilation means to me. (You realise there are *hundreds* of CC=3Dgcc lines in current Guix,=20 right?) Don't get me wrong: I love that Guix still cares so much about=20 cross-compilation, and the tremendous effort I see in the logs=20 every month to make it work better, when (at least a few years=20 ago) it was all the rage to declare it dead since VMs exist or=20 something. > As this is a recurring pattern, we should find a way to add it=20 > somewhere > in the build-system. But for now, the ugly snippet appending=20 > target > should work :). I agree that handling (only) standard GNU variables[0] in the GNU=20 build system makes sense. I'll add the snippet of power. Kind regards, T G-R [0]:=20 https://www.gnu.org/prep/standards/standards.html#Utilities-in-Makefiles --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXrbpIAAKCRANsP+IT1Vt eb6jAP95HIdXAXs7iNWww4m53Jtg7m2TE/Sese/tNWJ0mcsyUgD+NB3Yu810NOuG 7x2rBLKzLPuxl+ZqaFPrmszpPb43bQk= =ksoC -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Jean-Baptiste Note Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41150@debbugs.gnu.org Cc: othacehe@gnu.org, me@tobias.gr X-Debbugs-Original-To: Tobias Geerinckx-Rice via Guix-patches via X-Debbugs-Original-Cc: Mathieu Othacehe , 41150@debbugs.gnu.org, Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.158905463627324 (code B ref -1); Sat, 09 May 2020 20:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 20:03:56 +0000 Received: from localhost ([127.0.0.1]:48427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXVhU-00076d-GR for submit@debbugs.gnu.org; Sat, 09 May 2020 16:03:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:41152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXVhS-00076V-DO for submit@debbugs.gnu.org; Sat, 09 May 2020 16:03:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXVhS-0004R5-60 for guix-patches@gnu.org; Sat, 09 May 2020 16:03:54 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:46507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXVhR-0007Zm-04; Sat, 09 May 2020 16:03:53 -0400 Received: by mail-wr1-x442.google.com with SMTP id w7so5947178wre.13; Sat, 09 May 2020 13:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XqhV/yq/7A+iM8H9mB9LZSydfoBjfJjzN7XderChXbc=; b=llmUrfpm0vS++5A7zhILv63P+u8kwNeRn2/73G8Nl0pirPkUDmg/zrPaYJWHuwRpho mB0OYBE5yxxSfAn0O5+BM1TSg731FfBwPVRUx01nJLYEvJeXQUZKwBCgO/aLA0WQoL/C QMnA33RhPmQECpCxdD5HkIDzJefPh87I+iQlmg6+jnrHu004RJ6VrOs6cV+yfiSdYe70 8VrwP1SbhD7Lm7EpiXQWakad8FZi5oSuhzZDkUuHca02g/W0r921lGRoMSG1/4Qa5L3u ICwS+XteFRMdu++YvB7DT4KDtsC/QQNEOq6TNdUvPL95K5tRSHtvnlsGVRcU2TcHNlSf A/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=XqhV/yq/7A+iM8H9mB9LZSydfoBjfJjzN7XderChXbc=; b=cwr+FtPlnBdu+U1g48qYjMnSO3TIafNwySpTKrxCFhyfHREOchK4rgteVMnzqXbEDA KUn5xyskBhisd+WLjC7rTiNpB47qXuKIJIv4TOAly9c9KY/bOO7qoaOUf5UGVMlQEV3m 3Memu6K4Oa4ZtpL9qLG0c6kIP3pFxDxmkVDjImDPMZqWphHlSiGvqD5c4GbL9Xml4Ujw /9HNpRFmHhpUROAHpbQBsGTOKWf4I6weOZHiWy3L8j8ezbqJN5CjKd7eWoRultLRHcBe yCbUz1eozzlfx7XqWvv/Ebu1Y3xq44StMZ8KsM9dYpH4qLBuDg9AIyXgQCkB9lUGLFNc 51Fg== X-Gm-Message-State: AGi0PubdpRVX0qigunw9idOb1cRGzTeLTaJra+JRBk7D9XLhdKDyKXO0 CHnNs3MtdJJ79L7SZclfLos= X-Google-Smtp-Source: APiQypJIwVPVehEMO8KmGC0FNqhkUhJg4uuiaOQJ7sEaelWeC5dVoGQt3CB3++9dVnTolEdcmQ1wMw== X-Received: by 2002:adf:bc41:: with SMTP id a1mr10601677wrh.302.1589054630840; Sat, 09 May 2020 13:03:50 -0700 (PDT) Received: from guixrules ([2a01:e35:2e0b:a6b0:e2ce:c3ff:fe74:cec8]) by smtp.gmail.com with ESMTPSA id s17sm18738410wmc.48.2020.05.09.13.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2020 13:03:49 -0700 (PDT) From: Jean-Baptiste Note References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> <87ftc9ovz4.fsf@nckx> Date: Sat, 09 May 2020 20:03:48 +0000 In-Reply-To: <87ftc9ovz4.fsf@nckx> (Tobias Geerinckx-Rice via Guix-patches via's message of "Sat, 09 May 2020 19:32:15 +0200") Message-ID: <875zd47u57.fsf@m4x.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=jbnote@gmail.com; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -0.8 (/) 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.8 (-) Hi there, There are actually more than 300 such instances, and counting... Couldn't we get a "magic" variable %target-cc like we have %output, %outputs -- then we could just stubstitute gcc for this variable... I would do it, if I only knew where these are defined, but my scheme skills are definitely lacking :) Kind regards, Jean-Baptiste From unknown Tue Aug 19 01:10:51 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: Tobias Geerinckx-Rice Subject: bug#41150: closed (Re: [bug#41150] [PATCH] gnu: Add powerstat.) Message-ID: References: <875zd4q1qm.fsf@nckx> <20200509151509.11424-1-me@tobias.gr> X-Gnu-PR-Message: they-closed 41150 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 41150@debbugs.gnu.org Date: Sat, 09 May 2020 20:43:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1589056981-32318-1" This is a multi-part message in MIME format... ------------=_1589056981-32318-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41150: [PATCH] gnu: Add powerstat. 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 41150@debbugs.gnu.org. --=20 41150: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41150 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1589056981-32318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41150-done) by debbugs.gnu.org; 9 May 2020 20:42:41 +0000 Received: from localhost ([127.0.0.1]:48455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWIn-0008O5-Pg for submit@debbugs.gnu.org; Sat, 09 May 2020 16:42:41 -0400 Received: from tobias.gr ([80.241.217.52]:44942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWIm-0008Nw-Ju for 41150-done@debbugs.gnu.org; Sat, 09 May 2020 16:42:29 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id bc28f0e8; Sat, 9 May 2020 20:42:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=MAfXn4fifQGeG6+ILsGGLX 4y6w8L0dpwzRv4J/yBk9A=; b=eYtFmqWNLWbdo2JSfJxoCD6BFtF2hQMK2qxK9N oAnf7olB8GpvnoGDHlk2RbjGrYQbMeCYRfwU23VU5mXPOtCXaNfatKbnA7AIT8Ix /HfOUU57tUcb+QruWJV8q4ZFv9CRx26g1ATuBM/Kg+WejPLFAaAjpMZD0qiWPr7V 9ysV/RGzGwjmhKgj97jzy3lcbb63JhZPkn0bS1Vx1lAG7eTmfWcisPGPVsfcRojD s9xKNT0BUhpfHcOt3vunwbFC7O7ztFIgpt3kkE9yfPJnfxJekLFZco+LwgWyqG9T C338Cvlz3KFUjsMEBfZUeDHj73i+wvMpyUmE9PjEXfl98UNA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id dbc61f7f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 9 May 2020 20:42:26 +0000 (UTC) From: Tobias Geerinckx-Rice To: Mathieu Othacehe Subject: Re: [bug#41150] [PATCH] gnu: Add powerstat. References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> In-reply-to: <87y2q1yrd7.fsf@gnu.org> Date: Sat, 09 May 2020 22:42:25 +0200 Message-ID: <875zd4q1qm.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41150-done Cc: 41150-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 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Mathieu again, Mathieu Othacehe =E5=86=99=E9=81=93=EF=BC=9A > Hard-coding CC this way will prevent cross-compilation. You can=20 > have a > look to "crda" or "libaio" for examples. Do you happen to know why libaio specifies the full path to gcc=20 (only) when cross-compiling? I didn't bother modifying it to=20 test. I cross-built powerstat for aarch64 on my laptop (then ran it by=20 accident -- modern GNU/Linux is mad). I'm not restricting=20 platforms (yet) since my knowledge of ACPI support outside of x86=20 does not exist. Pushed as 510a8eb1b8b4f2686606e427b8965c126b81ed8a. Thanks! T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXrcVsQAKCRANsP+IT1Vt ebQlAQDM+r+N65Z6NSTGNEOKOSHse+jcAfAMzRNlNRRs5h24awEA/N/oFj1SPtpM 9mxNVp3KRQAxWMsw1n+/IIjadESHRwY= =UrvL -----END PGP SIGNATURE----- --=-=-=-- ------------=_1589056981-32318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 May 2020 15:15:34 +0000 Received: from localhost ([127.0.0.1]:48237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXRCQ-0002Y9-76 for submit@debbugs.gnu.org; Sat, 09 May 2020 11:15:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:60278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXRCJ-0002Xm-QA for submit@debbugs.gnu.org; Sat, 09 May 2020 11:15:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXRCJ-0008DX-Kj for guix-patches@gnu.org; Sat, 09 May 2020 11:15:27 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:45628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXRCG-0000mV-L1 for guix-patches@gnu.org; Sat, 09 May 2020 11:15:27 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 672a24ca for ; Sat, 9 May 2020 15:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=ibtkyz4UNg2p9UKC7fGD8/0Fkh1/AfGLG1nM vA5GXH0=; b=EhMLRAYjw1jVpAfS6mACJKZogjRvQSnQn0+yWK1Ivlf3MzjfqQnD cbgT7bq6i/AbkZHcBfVUPwQDcN/ok2oBeScejcWLJ72wiYYyaz8IDxSGMz+bbpq5 WRdqVrDYEEn/Yu69HvUmHhmZAXAwH5yB553RQafD+C31siF4U6vbRqtvcjKXBDAh AgmHAhleVIVqoju4dxjRz6zS2OtyI+y4rlhSb2zK0pZxplfVRPewPn94c9htXr/n RJHs2agCZ7/3UU9wP3lo5sKTqaT7BDnFxgDdaWoFcPPRG0NWLzvkcKKHWAjpy78Z HSEGtIhwOCaGBJbSdIxaVDnEPwoQRPC2sg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 916d75ec (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 9 May 2020 15:15:20 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] gnu: Add powerstat. Date: Sat, 9 May 2020 17:15:09 +0200 Message-Id: <20200509151509.11424-1-me@tobias.gr> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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 (--) * gnu/packages/linux.scm (powerstat): New public variable. --- gnu/packages/linux.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d2bffe8d8c..0d558f0277 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1195,7 +1195,50 @@ at login. Local and dynamic reconfiguration are its key features.") ;;; Miscellaneous. ;;; +(define-public powerstat + (package + (name "powerstat") + (version "0.02.22") + (source + (origin + (method url-fetch) + (uri (string-append "https://kernel.ubuntu.com/~cking/tarballs/" + "powerstat/powerstat-" version ".tar.gz")) + (sha256 + (base32 "0r355b9syqa2nhfy8ksvxyy5d58v0isf983842js091s6liy0x7g")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "CC=gcc" + (string-append "prefix=" (assoc-ref %outputs "out"))) + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'respect-$prefix + ;; https://bugs.launchpad.net/ubuntu/+source/powerstat/+bug/1877744 + (lambda _ + (substitute* "Makefile" + (("DIR=/usr/") "DIR=$(prefix)/")) + #t)) + (delete 'configure)))) ; no configure script + (home-page "https://kernel.ubuntu.com/~cking/powerstat/") + (synopsis "Measure system power consumption") + (description + "Powerstat measures and reports your computer's power consumption in real +time. On mobile PCs, it uses ACPI battery information to measure the power +drain of the entire system. + +Powerstat can also report @acronym{RAPL, Running Average Power Limit} power +domain measurements. These are available only on some hardware such as Intel +Sandybridge and newer, and cover only part of the machine's components such as +CPU, DRAM, and graphics. However, they provide accurate and immediate readings +and don't require a battery at all. + +The output is like @command{vmstat} but also shows power consumption statistics: +at the end of a run, @command{powerstat} will calculate the average, standard +deviation, and minimum and maximum values. It can show a nice histogram too.") + (license license:gpl2))) + (define-public psmisc (package (name "psmisc") -- 2.26.2 ------------=_1589056981-32318-1-- From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jean-Baptiste Note Cc: othacehe@gnu.org, 41150@debbugs.gnu.org X-Debbugs-Original-Cc: Mathieu Othacehe , 41150@debbugs.gnu.org, Tobias Geerinckx-Rice via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.15890582572677 (code B ref -1); Sat, 09 May 2020 21:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2020 21:04:17 +0000 Received: from localhost ([127.0.0.1]:48483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWdt-0000h7-DQ for submit@debbugs.gnu.org; Sat, 09 May 2020 17:04:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:49548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWdr-0000gz-GV for submit@debbugs.gnu.org; Sat, 09 May 2020 17:04:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXWdr-0004zP-A4 for guix-patches@gnu.org; Sat, 09 May 2020 17:04:15 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:50286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXWdp-0004dA-Sd; Sat, 09 May 2020 17:04:14 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id f2a2d7ea; Sat, 9 May 2020 21:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=JYqoR7ZFz+Pizb97dOoIpB pP3hxodTnzS+qOs5TOv3A=; b=BsBHGHQhDfu1c2YfnJ36aTZ5IfZS+KzzodJ/sA bfqU1I+S0CBBIHwC/WM5yeQlUkWieyyFhq/UTK6BksA7Z5xO3dJWH9TNYB8tmKeK Jr518oP00T/p4cEudjjLnJRutq/F3cpIvxcEh2uZHP1V5BTnaFKWaEJNa3ncm/QM uRpbw3CzfFDLJ6byvSXeFAMTMSWBjbwTMWwy706Vi03hWHcBpXu4z7RCMwVDRPtc WKD7PWaNRffUQkzdF0UfsgToqXLgvGxLSiNdv4X2bHOKAaYLsCv27XHj9cn43OC4 paWAK+SaEQesymX2D9sxTgkkbPFz7Kuv2sMl2iDFOSm9voQQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 78360fb7 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 9 May 2020 21:04:09 +0000 (UTC) From: Tobias Geerinckx-Rice References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> <87ftc9ovz4.fsf@nckx> <875zd47u57.fsf@m4x.org> In-reply-to: <875zd47u57.fsf@m4x.org> Date: Sat, 09 May 2020 23:04:08 +0200 Message-ID: <873688q0qf.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jean-Baptiste! Jean-Baptiste Note =E5=86=99=E9=81=93=EF=BC=9A > There are actually more than 300 such instances *Hundreds*! :-p On a positive note there are 3 fewer occurences on c-u (308) than=20 master (311). I used a simple =E2=80=98grep CC=3Dgcc | wc -l=E2=80=99; I suspect you did = something=20 similar. > and counting... It shouldn't increase if people posts their patches for review=20 (...and they actually get reviewed...). CC=3Dgcc is an old habit=20 but not difficult to break. > Couldn't we get a "magic" variable %target-cc like we have > %output, %outputs -- then we could just stubstitute gcc for this > variable... I'm (not yet?) (no longer?) convinced that's a good idea once=20 gnu-build-system takes care of those 308 packages and we're left=20 with the exceptions. When I replied to Mathieu's last mail I hadn't looked at the code=20 yet: (let ((target ,(%current-target-system))) (list (string-append "CC=3D" (if target (string-append target "-gcc") "gcc")))) To me, abstracting that is beyond overkill. However, I don't know much about cross-compiling. TBH I'd be=20 sowewhat surprised if none of the CROSS-* procedures I regularly=20 scroll past do something like this already. > I would do it, if I only knew where these are defined, but my=20 > scheme > skills are definitely lacking :) Mainly (gnu packages cross-base). Kind regards, T G-R, currently building kernels to properly answer your=20 hibernation mails... --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXrcayAAKCRANsP+IT1Vt eZm2AQD8p0su3ihHXIZRAKGQImt0u6tF68Rn+8owjqGJVbbSaQEA7bX94GXUK5y+ PfAHe3oUIs3PipD/KEdHyxTIQUoUmg8= =oqBb -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 May 2020 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jean-Baptiste Note Cc: 41150@debbugs.gnu.org Received: via spool by 41150-submit@debbugs.gnu.org id=B41150.15890586403552 (code B ref 41150); Sat, 09 May 2020 21:11:01 +0000 Received: (at 41150) by debbugs.gnu.org; 9 May 2020 21:10:40 +0000 Received: from localhost ([127.0.0.1]:48493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWk4-0000vE-Gx for submit@debbugs.gnu.org; Sat, 09 May 2020 17:10:40 -0400 Received: from tobias.gr ([80.241.217.52]:45320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXWk2-0000v2-ED for 41150@debbugs.gnu.org; Sat, 09 May 2020 17:10:39 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 49a996a2; Sat, 9 May 2020 21:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=AHZ7ieZ4846+CzBFX1RkCN htIK1sBgLIwWpxf896Wxk=; b=OuOEAFU9aAHFDXOlZwid1m42Cpazl6TLBlysmf nkaDPxdPvyeL/5GI6xSSePie6Da3bM7trZeSkDv/pGwUmQqtJUQQntxykKjdVoPR Xf9GnJsgPBEINKsn5Zj1baa+ngUTzlA6HW4hzrnKFXsfEZv0yQBlFWznlA0XhjY8 0pNWj5+AHFbti43JvzzoHkky3sZ+7eb/XIRWDGPz7zwxWrA1ErtvZoKT23+l/eWB ZrfywZ3hu1UBnhpgiXREqsIJTMP8YWSk/H7fzXFibVBA3FG6hFPi8FNNvuWHhqzD 80hOPxf15e6I7uFgW2a66KFBxRyOoHt7pvqjjyk258XW+dAg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 0073da75 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 9 May 2020 21:10:36 +0000 (UTC) From: Tobias Geerinckx-Rice References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> <87ftc9ovz4.fsf@nckx> <875zd47u57.fsf@m4x.org> <873688q0qf.fsf@nckx> In-reply-to: <873688q0qf.fsf@nckx> Date: Sat, 09 May 2020 23:10:35 +0200 Message-ID: <87zhagolv8.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice =E5=86=99=E9=81=93=EF=BC=9A > Jean-Baptiste Note =E5=86=99=E9=81=93=EF=BC=9A >> I would do it, if I only knew where these are defined, but my=20 >> scheme >> skills are definitely lacking :) > > Mainly (gnu packages cross-base). ...or if you mean the % friends: (guix utils). %target-gcc could=20 be computed at evaluation (as opposed to build) time so is=20 relatively simple [see previous mail for =E2=80=98too simple=E2=80=99 argum= ent]. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXrccSwAKCRANsP+IT1Vt eQZmAQCCRdZh7KH1BMKCl6L2ug03vXh7gumU2jRmJQBAPywM6AEAoREifhwotBub /jdIbdYz9TvRmOS5YkqfN8FMw4lToQE= =UOqE -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Aug 19 01:10:51 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41150] [PATCH] gnu: Add powerstat. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 May 2020 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41150@debbugs.gnu.org Cc: me@tobias.gr Received: via spool by 41150-submit@debbugs.gnu.org id=B41150.15890954754063 (code B ref 41150); Sun, 10 May 2020 07:25:01 +0000 Received: (at 41150) by debbugs.gnu.org; 10 May 2020 07:24:35 +0000 Received: from localhost ([127.0.0.1]:48819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXgKB-00013T-MG for submit@debbugs.gnu.org; Sun, 10 May 2020 03:24:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXgKA-00013G-21 for 41150@debbugs.gnu.org; Sun, 10 May 2020 03:24:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39422) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXgK3-0002WR-M1; Sun, 10 May 2020 03:24:27 -0400 Received: from [2a01:cb18:832e:5f00:708f:4d20:5fc9:ae90] (port=38812 helo=meru) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jXgK3-000512-5Z; Sun, 10 May 2020 03:24:27 -0400 From: Mathieu Othacehe References: <20200509151509.11424-1-me@tobias.gr> <87y2q1yrd7.fsf@gnu.org> <875zd4q1qm.fsf@nckx> Date: Sun, 10 May 2020 09:24:25 +0200 In-Reply-To: <875zd4q1qm.fsf@nckx> (Tobias Geerinckx-Rice via Guix-patches via's message of "Sat, 09 May 2020 22:42:25 +0200") Message-ID: <87mu6gi76e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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 (---) Hey, > Do you happen to know why libaio specifies the full path to gcc (only) when > cross-compiling? I didn't bother modifying it to test. Just tested, this does not seem useful. > I cross-built powerstat for aarch64 on my laptop (then ran it by accident -- > modern GNU/Linux is mad). I'm not restricting platforms (yet) since my > knowledge of ACPI support outside of x86 does not exist. It's for sure less common than on x86, but it seems that it exists, see: https://www.kernel.org/doc/Documentation/arm64/arm-acpi.txt. > Pushed as 510a8eb1b8b4f2686606e427b8965c126b81ed8a. Thanks for fixing it :) Mathieu