[arch-commits] Commit in xfce4-diskperf-plugin/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sat Nov 10 06:31:29 UTC 2018
Date: Saturday, November 10, 2018 @ 06:31:29
Author: felixonmars
Revision: 338928
archrelease: copy trunk to staging-x86_64
Added:
xfce4-diskperf-plugin/repos/staging-x86_64/
xfce4-diskperf-plugin/repos/staging-x86_64/PKGBUILD
(from rev 338927, xfce4-diskperf-plugin/trunk/PKGBUILD)
xfce4-diskperf-plugin/repos/staging-x86_64/glibc-2.25.patch
(from rev 338927, xfce4-diskperf-plugin/trunk/glibc-2.25.patch)
------------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
glibc-2.25.patch | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 87 insertions(+)
Copied: xfce4-diskperf-plugin/repos/staging-x86_64/PKGBUILD (from rev 338927, xfce4-diskperf-plugin/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-11-10 06:31:29 UTC (rev 338928)
@@ -0,0 +1,47 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Aurelien Foret <orelien at chez.com>
+
+pkgname=xfce4-diskperf-plugin
+pkgver=2.6.1
+pkgrel=2
+pkgdesc="Plugin for the Xfce4 panel displaying instant disk/partition performance"
+arch=('x86_64')
+license=('BSD')
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin"
+groups=('xfce4-goodies')
+depends=('xfce4-panel')
+makedepends=('intltool' 'xfce4-dev-tools')
+source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ glibc-2.25.patch)
+sha256sums=('212ddc742be3eecb6ad5554e1b1df03d5685cb71f48a558d5f895de37c57e4fa'
+ 'e856cf7e77edff1db6046745e9a81e5c27ae40cadbdf57b377c49687527a3c7f')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # https://bugzilla.xfce.org/show_bug.cgi?id=13940
+ patch -Np1 -i ../glibc-2.25.patch
+
+ NOCONFIGURE=1 xdt-autogen
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-debug
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: xfce4-diskperf-plugin/repos/staging-x86_64/glibc-2.25.patch (from rev 338927, xfce4-diskperf-plugin/trunk/glibc-2.25.patch)
===================================================================
--- staging-x86_64/glibc-2.25.patch (rev 0)
+++ staging-x86_64/glibc-2.25.patch 2018-11-10 06:31:29 UTC (rev 338928)
@@ -0,0 +1,40 @@
+From 0787a8972be2b95fac26c502a82427299e7e48c0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
+Date: Sat, 21 Oct 2017 00:14:32 +0200
+Subject: Support <sys/sysmacros.h> include required for glibc-2.25+ (Fixes
+ #13940)
+
+---
+ configure.ac.in | 1 +
+ panel-plugin/devperf.c | 3 +++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 5458dba..fd2d3eb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -46,6 +46,7 @@ dnl **********************************
+ dnl *** Check for standard headers ***
+ dnl **********************************
+ AC_HEADER_STDC()
++AC_CHECK_HEADERS([sys/sysmacros.h])
+ AC_CHECK_LIBM
+ AC_SUBST(LIBM)
+
+diff --git a/panel-plugin/devperf.c b/panel-plugin/devperf.c
+index 175fd44..29bcb87 100644
+--- a/panel-plugin/devperf.c
++++ b/panel-plugin/devperf.c
+@@ -35,6 +35,9 @@
+ #include <sys/time.h>
+ /* for major() and minor() */
+ #define _BSD_SOURCE
++#ifdef HAVE_SYS_SYSMACROS_H
++#include <sys/sysmacros.h>
++#endif
+ #include <sys/types.h>
+
+
+--
+cgit v1.2.1
+
More information about the arch-commits
mailing list