From nobody Sun Aug 28 19:18:12 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MG3J50HWVz4bBbV; Sun, 28 Aug 2022 19:18:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MG3J46v11z3XCd; Sun, 28 Aug 2022 19:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661714293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VR6yTilVLMZmtmYuOHv9ksYQyprhIouNbsqc/dsdR6o=; b=iBnAQzWpj+4SkByPwOgR8/E8C3cGdTSk/jutEOhms0X3J06ROMaDG+7+skfp/Z7qVyElI3 qEyjI9b7B8/mSz2Q8/+Doxgw9fl3mjmJ7U2Bv/FxxFjGhR1+XLcQlKLMaTxgsZvYbscFUD 6m1ovrafKmAEVGdBMgUngAUnpkuxJiTjwvy2TmIe88d3IWWPIRjP1WFeE6yhWsqaEg/SgF iZWfdNkrjDCrkW0ykdlGORV5UGDoBfsZ3uFWwehNsKQmAUoH3TfdHVRRWGEg9r9j2KF7oj T3apHyU8hxNuHPnERC7gOOqxMGpleeqGAiisAwABq4eCH2blwxe/KifrKB8msA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MG3J45gZLz19YF; Sun, 28 Aug 2022 19:18:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27SJIClV084848; Sun, 28 Aug 2022 19:18:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27SJICat084847; Sun, 28 Aug 2022 19:18:12 GMT (envelope-from git) Date: Sun, 28 Aug 2022 19:18:12 GMT Message-Id: <202208281918.27SJICat084847@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guido Falsi Subject: git: 639d431057fd - main - sysutils/upower: update to 1.90.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: madpilot X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 639d431057fdb37f6557832900080e0efe999d09 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661714293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VR6yTilVLMZmtmYuOHv9ksYQyprhIouNbsqc/dsdR6o=; b=LKBVHEb5smPcgzbli/AraLXnLlZqQQBcgUY0oD8EVLytnmB464MjIdCFqjjYRtEWNrb1aO AbBRRlgBnkELC5NcFgSqYP2TY0/45qT2RTTGWRLtpT5eT32T36el8r5SqSlNZNQuX4Fbbk XYSf3zXLwSS8ul+9eXLYPL1v5zitigLT4IExSvZv+QzQlEtUoE09+RbDxwDUq6UHh6DUiF NsnVlefzJpgALQ/bcESVgwLtoPWPPthwkgBfHTFYMqJmXtS6j4dCW/ql8KK6sfEhGX5Au+ SR7Nhn08ID7HDvnyq+9WJhD8VKZxrVgOd0VutEM8Cuygn98p0pJBCs/LVGfUhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661714293; a=rsa-sha256; cv=none; b=Cn6wRpmiFs/ZSDRy7FeuIeFHAB/mfW9ngwBpytWNG+m8SEakhhNTeeMYudLh92pofI+YLn 4/EH+aBMjjVwJgxFJJBSparOLxqo1XYj+UGF7OZ+G9KLU2HK7Qv/jT+r4hv6LeVCAypY7L l611lrniw8T/dyzPpNrfgTNwMGqGN5IVNgCCnYK/R0QdNiAQ8RhPYGwTmLkIEXpAoRCY7G jYV6xMZnQ6Blg62gnuai8leczMtm2EZPIRJUIEylk2+4haY38/57xjsjfXo/igUpvd00BG vnEP41qZDhAdOe+Vd29zlHTj0D1X0BNtAY74mOw2q08cZJNWg4Y3H5G+BAeZ6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=639d431057fdb37f6557832900080e0efe999d09 commit 639d431057fdb37f6557832900080e0efe999d09 Author: Olivier Duchateau AuthorDate: 2022-08-28 19:16:45 +0000 Commit: Guido Falsi CommitDate: 2022-08-28 19:16:45 +0000 sysutils/upower: update to 1.90.0 - Update to 1.90.0 - Fix warnings (suggested by clang) in src/up-device-battery.c PR: 266070 --- sysutils/upower/Makefile | 2 +- sysutils/upower/distinfo | 6 ++--- .../upower/files/patch-src_up-device-battery.c | 28 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile index 6d6cdd3f1723..f8524e4bced6 100644 --- a/sysutils/upower/Makefile +++ b/sysutils/upower/Makefile @@ -1,5 +1,5 @@ PORTNAME= upower -PORTVERSION= 0.99.20 +PORTVERSION= 1.90.0 DISTVERSIONPREFIX= v CATEGORIES= sysutils MASTER_SITES= https://gitlab.freedesktop.org/upower/upower/-/archive/${DISTVERSIONFULL}/ diff --git a/sysutils/upower/distinfo b/sysutils/upower/distinfo index b81b37f68ac3..f0fd8b527289 100644 --- a/sysutils/upower/distinfo +++ b/sysutils/upower/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1657781987 -SHA256 (upower-v0.99.20.tar.bz2) = 6b11baeb4e9273def260ca86f2ed482ab4e56e8f4e999b2632d6ba0ea2bccd9a -SIZE (upower-v0.99.20.tar.bz2) = 126098 +TIMESTAMP = 1661608460 +SHA256 (upower-v1.90.0.tar.bz2) = eafa0a367dc0417390984eeb81e9d1a2b449999ba6ad20ed39bf270d0b4e5e77 +SIZE (upower-v1.90.0.tar.bz2) = 129505 diff --git a/sysutils/upower/files/patch-src_up-device-battery.c b/sysutils/upower/files/patch-src_up-device-battery.c new file mode 100644 index 000000000000..d6a2f2579b44 --- /dev/null +++ b/sysutils/upower/files/patch-src_up-device-battery.c @@ -0,0 +1,28 @@ +--- src/up-device-battery.c.orig 2022-07-21 09:06:49 UTC ++++ src/up-device-battery.c +@@ -19,6 +19,7 @@ + */ + + #include ++#include + + #include "up-constants.h" + #include "up-config.h" +@@ -125,7 +126,7 @@ up_device_battery_estimate_power (UpDeviceBattery *sel + continue; + + /* Stop searching if the new reference is further away from the long timeout. */ +- if (abs(UP_DAEMON_LONG_TIMEOUT * G_USEC_PER_SEC - abs (td)) > abs(UP_DAEMON_SHORT_TIMEOUT * G_USEC_PER_SEC - ref_td)) ++ if (labs(UP_DAEMON_LONG_TIMEOUT * G_USEC_PER_SEC - labs (td)) > labs(UP_DAEMON_SHORT_TIMEOUT * G_USEC_PER_SEC - ref_td)) + break; + + ref_td = td; +@@ -155,7 +156,7 @@ up_device_battery_estimate_power (UpDeviceBattery *sel + */ + if (cur->state == UP_DEVICE_STATE_UNKNOWN) { + /* Consider a rate of 0.5W as "no change", otherwise set CHARGING/DISCHARGING */ +- if (abs(energy_rate) < 0.5) ++ if (fabs(energy_rate) < 0.5) + return; + else if (energy_rate < 0.0) + cur->state = UP_DEVICE_STATE_DISCHARGING;