Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2019 14:12:47 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490257 - in head/sysutils/xfce4-battery-plugin: . files
Message-ID:  <201901141412.x0EEClKW081273@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Mon Jan 14 14:12:47 2019
New Revision: 490257
URL: https://svnweb.freebsd.org/changeset/ports/490257

Log:
  - Update xfce4-battery-plugin to 1.1.2
  - Add USES=gnome
  - Reorder lines to silence portlint warning
  
  PR:		234923
  Submitted by:	Olivier Duchateau <duchateau.olivier@gmail.com>

Added:
  head/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c   (contents, props changed)
Modified:
  head/sysutils/xfce4-battery-plugin/Makefile
  head/sysutils/xfce4-battery-plugin/distinfo

Modified: head/sysutils/xfce4-battery-plugin/Makefile
==============================================================================
--- head/sysutils/xfce4-battery-plugin/Makefile	Mon Jan 14 14:05:39 2019	(r490256)
+++ head/sysutils/xfce4-battery-plugin/Makefile	Mon Jan 14 14:12:47 2019	(r490257)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	xfce4-battery-plugin
-PORTVERSION=	1.1.1
+PORTVERSION=	1.1.2
 CATEGORIES=	sysutils xfce
 MASTER_SITES=	XFCE/src/panel-plugins/${PORTNAME}/${PORTVERSION:R}
 DIST_SUBDIR=	xfce4
@@ -14,13 +14,15 @@ LICENSE=	GPLv2
 
 ONLY_FOR_ARCHS=	amd64 i386
 
-SSP_UNSAFE=	yes
-USES=		alias gettext-tools gmake libtool pkgconfig tar:bzip2 xfce:gtk3
-GNU_CONFIGURE=	yes
+USES=		alias gettext-tools gmake gnome libtool pkgconfig \
+		tar:bzip2 xfce:gtk3
 USE_GNOME=	gtk30 glib20 intltool cairo
 USE_XFCE=	panel
-INSTALLS_ICONS=	yes
 USE_LDCONFIG=	yes
+
+SSP_UNSAFE=	yes
+GNU_CONFIGURE=	yes
+INSTALLS_ICONS=	yes
 INSTALL_TARGET=	install-strip
 
 OPTIONS_DEFINE=	NLS

Modified: head/sysutils/xfce4-battery-plugin/distinfo
==============================================================================
--- head/sysutils/xfce4-battery-plugin/distinfo	Mon Jan 14 14:05:39 2019	(r490256)
+++ head/sysutils/xfce4-battery-plugin/distinfo	Mon Jan 14 14:12:47 2019	(r490257)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1537694606
-SHA256 (xfce4/xfce4-battery-plugin-1.1.1.tar.bz2) = 1e94969b93e0c1d6da87364b64c0cdfb40bae5e4a055039be8b67b9e5b3dd44b
-SIZE (xfce4/xfce4-battery-plugin-1.1.1.tar.bz2) = 465880
+TIMESTAMP = 1547414549
+SHA256 (xfce4/xfce4-battery-plugin-1.1.2.tar.bz2) = d601349fa9a979dae99ace39b24d99b97f62b80f42ac5dea5a99e5af3e88d7db
+SIZE (xfce4/xfce4-battery-plugin-1.1.2.tar.bz2) = 464077

Added: head/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xfce4-battery-plugin/files/patch-panel-plugin_libacpi.c	Mon Jan 14 14:12:47 2019	(r490257)
@@ -0,0 +1,38 @@
+--- panel-plugin/libacpi.c.orig	2018-12-31 22:14:28 UTC
++++ panel-plugin/libacpi.c
+@@ -100,7 +100,7 @@ oidfmt(int *oid, int len, char *fmt, u_int *kind)
+     j = sizeof(buf);
+     i = sysctl(qoid, len + 2, buf, &j, 0, 0);
+     if (i)
+-        err(1, "sysctl fmt %d %d %d", i, j, errno);
++        err(1, "sysctl fmt %d %zu %d", i, j, errno);
+ 
+     if (kind)
+         *kind = *(u_int *)buf;
+@@ -129,7 +129,7 @@ get_var(int *oid, int nlen)
+     j = sizeof(name);
+     i = sysctl(qoid, nlen + 2, name, &j, 0, 0);
+     if (i || !j)
+-        err(1, "sysctl name %d %d %d", i, j, errno);
++        err(1, "sysctl name %d %zu %d", i, j, errno);
+ 
+     sep = "=";
+ 
+@@ -145,7 +145,7 @@ get_var(int *oid, int nlen)
+         return (1);
+ 
+     val[len] = '\0';
+-    fmt = buf;
++    fmt = (char *)buf;
+     oidfmt(oid, nlen, fmt, &kind);
+     p = val;
+     switch (*fmt) {
+@@ -170,7 +170,7 @@ get_var(int *oid, int nlen)
+         return (retval);
+     default:
+         printf("%s%s", name, sep);
+-        printf("Format:%s Length:%d Dump:0x", fmt, len);
++        printf("Format:%s Length:%zu Dump:0x", fmt, len);
+         while (len-- && (p < val + 16))
+             printf("%02x", *p++);
+         if (len > 16)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901141412.x0EEClKW081273>