[arch-commits] Commit in acpid/trunk (PKGBUILD libc_compat.h)

Sébastien Luttringer seblu at archlinux.org
Sun Aug 16 10:44:35 UTC 2015


    Date: Sunday, August 16, 2015 @ 12:44:35
  Author: seblu
Revision: 138403

upgpkg: acpid 2.0.24-1

Added:
  acpid/trunk/libc_compat.h
Modified:
  acpid/trunk/PKGBUILD

---------------+
 PKGBUILD      |   16 +++++++++++-----
 libc_compat.h |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-16 10:26:24 UTC (rev 138402)
+++ PKGBUILD	2015-08-16 10:44:35 UTC (rev 138403)
@@ -5,8 +5,8 @@
 # Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
 
 pkgname=acpid
-pkgver=2.0.23
-pkgrel=4
+pkgver=2.0.24
+pkgrel=1
 pkgdesc='A daemon for delivering ACPI power management events with netlink support'
 arch=('i686' 'x86_64')
 url='http://sourceforge.net/projects/acpid2/'
@@ -18,12 +18,18 @@
 source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
         'acpid.service'
         'anything'
-        'handler.sh')
-md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
+        'handler.sh'
+        'libc_compat.h')
+md5sums=('54719f8cbafed5875c2e481635ac7007'
          'b9a9810eefae2142e20c965c01b410de'
          '2d37b98d6e74bab815604b8b48c6cfd4'
-         '47f44ff5f02685dce8bcdab8568f0c38')
+         '47f44ff5f02685dce8bcdab8568f0c38'
+         'd798029e5d3896cd5fd2fb7ebdf2a81a')
 
+prepare() {
+  mv libc_compat.h $pkgname-$pkgver
+}
+
 build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr --sbindir=/usr/bin

Added: libc_compat.h
===================================================================
--- libc_compat.h	                        (rev 0)
+++ libc_compat.h	2015-08-16 10:44:35 UTC (rev 138403)
@@ -0,0 +1,40 @@
+/*
+ *  libc_compat.h - implement defs/macros missing from some libcs
+ *
+ *  Copyright (C) 1999-2000 Andrew Henroid
+ *  Copyright (C) 2001 Sun Microsystems
+ *  Portions Copyright (C) 2004 Tim Hockin (thockin at hockin.org)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef LIBC_COMPAT_H__
+#define LIBC_COMPAT_H__
+
+/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno'
+   set to EINTR. This macro is present on glibc/uclibc but may not be in other cases.  */
+
+#ifndef ____GLIBC__
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+  (__extension__                                                             \
+    ({ long int __result;                                                    \
+       do __result = (long int) (expression);                                \
+       while (__result == -1L && errno == EINTR);                            \
+       __result; }))
+#endif
+#endif /* __GLIBC__ */
+
+#endif /* LIBC_COMPAT_H__ */



More information about the arch-commits mailing list