unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Paul Jewell <paul@teulu.org>, 54061@debbugs.gnu.org
Subject: bug#54061: thermald-2.4.7 build fail following upower update to 0.99.15
Date: Sat, 19 Feb 2022 15:55:39 +0100	[thread overview]
Message-ID: <9922be8cfec9a0308994ace899a08e4f9d170525.camel@telenet.be> (raw)
In-Reply-To: <33f3190d-69aa-627b-0cea-454ea0677699@teulu.org>


[-- Attachment #1.1: Type: text/plain, Size: 224 bytes --]

Paul Jewell schreef op vr 18-02-2022 om 17:07 [+0000]:
> When building thermald-2.4.7, I am getting a build failure:
> 
> [... deprecation error ...]


The attached two patches should fix this.

Greetings,
Maxime.

[-- Attachment #1.2: 0001-gnu-thermald-Use-G-expressions.patch --]
[-- Type: text/x-patch, Size: 1645 bytes --]

From eb49c118cb211528adc2bcbb0758d3848b2bcf6b Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Sat, 19 Feb 2022 14:46:33 +0000
Subject: [PATCH 1/2] gnu: thermald: Use G-expressions.

* gnu/packages/admin.scm
  (thermald)[arguments]<#:configure-flags,#:make-flags,#:phases>: Convert to
  G-exps.
---
 gnu/packages/admin.scm | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 17dc0f1315..0e9f0acb68 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3879,17 +3879,16 @@ hard-coded.")
     (build-system gnu-build-system)
     (arguments
      `(#:configure-flags
-       (let ((out (assoc-ref %outputs "out")))
-         (list (string-append "--with-dbus-sys-dir="
-                              out "/etc/dbus-1/system.d")
-               "--localstatedir=/var"))
+       ,#~(list (string-append "--with-dbus-sys-dir="
+                               #$output "/etc/dbus-1/system.d")
+                "--localstatedir=/var")
        #:make-flags
-       (list "V=1")                     ; log build commands
+       ,#~(list "V=1")                  ; log build commands
        #:phases
-       (modify-phases %standard-phases
-         (add-before 'bootstrap 'no-early-./configure
-           (lambda _
-             (setenv "NO_CONFIGURE" "yet"))))))
+       ,#~(modify-phases %standard-phases
+            (add-before 'bootstrap 'no-early-./configure
+              (lambda _
+                (setenv "NO_CONFIGURE" "yet"))))))
     (native-inputs
      (list autoconf
            autoconf-archive
-- 
2.30.2


[-- Attachment #1.3: 0002-gnu-thermald-Fix-build-failure.patch --]
[-- Type: text/x-patch, Size: 1170 bytes --]

From d066a7dcd11757fb19edc79028104f7dbcffeab1 Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Sat, 19 Feb 2022 14:52:17 +0000
Subject: [PATCH 2/2] gnu: thermald: Fix build failure.

* gnu/packages/admin.scm (thermald)[arguments]<#:configure-flags>: Add
'--disable-werror'.

Fixes: <https://issues.guix.gnu.org/54061>
Reported-by: Paul Jewell <paul@teulu.org>
---
 gnu/packages/admin.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 0e9f0acb68..5b2584cfba 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3881,7 +3881,10 @@ hard-coded.")
      `(#:configure-flags
        ,#~(list (string-append "--with-dbus-sys-dir="
                                #$output "/etc/dbus-1/system.d")
-                "--localstatedir=/var")
+                "--localstatedir=/var"
+                ;; thermald uses deprecated APIs, see
+                ;; <https://github.com/intel/thermal_daemon/issues/340>.
+                "--disable-werror")
        #:make-flags
        ,#~(list "V=1")                  ; log build commands
        #:phases
-- 
2.30.2


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  parent reply	other threads:[~2022-02-19 14:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18 17:07 bug#54061: thermald-2.4.7 build fail following upower update to 0.99.15 Paul Jewell
2022-02-19 14:15 ` Paul Jewell
2022-02-19 14:55 ` Maxime Devos [this message]
2022-02-19 20:52   ` Nicolas Goaziou
2022-02-19 20:58   ` Paul Jewell
2022-03-02 17:03   ` Ludovic Courtès
2022-03-03 16:33     ` Paul Jewell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9922be8cfec9a0308994ace899a08e4f9d170525.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=54061@debbugs.gnu.org \
    --cc=paul@teulu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).