[arch-commits] Commit in findutils/repos (4 files)

2018-11-03 Thread Allan McRae via arch-commits
Date: Saturday, November 3, 2018 @ 22:39:38
  Author: allan
Revision: 337788

archrelease: copy trunk to testing-x86_64

Added:
  findutils/repos/testing-x86_64/
  findutils/repos/testing-x86_64/PKGBUILD
(from rev 337787, findutils/trunk/PKGBUILD)
  findutils/repos/testing-x86_64/gnulib-fflush.patch
(from rev 337787, findutils/trunk/gnulib-fflush.patch)
  findutils/repos/testing-x86_64/gnulib-makedev.patch
(from rev 337787, findutils/trunk/gnulib-makedev.patch)

--+
 PKGBUILD |   47 
 gnulib-fflush.patch  |  142 +
 gnulib-makedev.patch |   80 +++
 3 files changed, 269 insertions(+)

Copied: findutils/repos/testing-x86_64/PKGBUILD (from rev 337787, 
findutils/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-11-03 22:39:38 UTC (rev 337788)
@@ -0,0 +1,47 @@
+# Maintainer:
+
+pkgname=findutils
+pkgver=4.6.0
+pkgrel=4
+pkgdesc="GNU utilities to locate files"
+arch=('x86_64')
+license=('GPL3')
+groups=('base' 'base-devel')
+depends=('glibc' 'sh')
+url='https://www.gnu.org/software/findutils/'
+source=("https://ftp.gnu.org/pub/gnu/findutils/${pkgname}-${pkgver}.tar.gz;
+"gnulib-fflush.patch"
+"gnulib-makedev.patch")
+sha1sums=('f18e8aaee3f3d4173a1f598001003be8706d28b0'
+  '1bc1586f6a52083939c4cabc32f12e7aead97e61'
+  '051382a2b0039438c2b143f2f9e5dc4bea130a09')
+#validpgpkeys=('A15B725964A95EE5') # James Youngman   - 
NOTE: PGP-2 key
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -p1 -i "$srcdir"/gnulib-fflush.patch
+  patch -p1 -i "$srcdir"/gnulib-makedev.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # Don't build or install locate because we use mlocate,
+  # which is a secure version of locate.
+  sed -i '/^SUBDIRS/s/locate//' Makefile.in
+
+  ./configure --prefix=/usr
+  # don't build locate, but the docs want a file in there.
+  make -C locate dblocation.texi
+  make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR=$pkgdir install
+}

Copied: findutils/repos/testing-x86_64/gnulib-fflush.patch (from rev 337787, 
findutils/trunk/gnulib-fflush.patch)
===
--- testing-x86_64/gnulib-fflush.patch  (rev 0)
+++ testing-x86_64/gnulib-fflush.patch  2018-11-03 22:39:38 UTC (rev 337788)
@@ -0,0 +1,142 @@
+From 80cdfba079627e15129a926a133825b961d41e36 Mon Sep 17 00:00:00 2001
+From: Paul Eggert 
+Date: Mon, 5 Mar 2018 10:56:29 -0800
+Subject: [PATCH] fflush: adjust to glibc 2.28 libio.h removal
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Problem reported by Daniel P. Berrangé in:
+https://lists.gnu.org/r/bug-gnulib/2018-03/msg0.html
+* lib/fflush.c (clear_ungetc_buffer_preserving_position)
+(disable_seek_optimization, rpl_fflush):
+* lib/fpurge.c (fpurge):
+* lib/freadahead.c (freadahead):
+* lib/freading.c (freading):
+* lib/fseeko.c (fseeko):
+* lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
+Define if not already defined.
+
+Upstream-commit: 4af4a4a71827c0bc5e0ec67af23edef4f15cee8e
+Signed-off-by: Kamil Dudka 
+---
+ gl/lib/fflush.c | 6 +++---
+ gl/lib/fpurge.c | 2 +-
+ gl/lib/freadahead.c | 2 +-
+ gl/lib/freading.c   | 2 +-
+ gl/lib/fseeko.c | 4 ++--
+ gl/lib/stdio-impl.h | 6 ++
+ 6 files changed, 14 insertions(+), 8 deletions(-)
+
+diff --git a/gl/lib/fflush.c b/gl/lib/fflush.c
+index 5ae3e41..7a82470 100644
+--- a/gl/lib/fflush.c
 b/gl/lib/fflush.c
+@@ -33,7 +33,7 @@
+ #undef fflush
+ 
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, 
Linux libc5 */
+ 
+ /* Clear the stream's ungetc buffer, preserving the value of ftello (fp).  */
+ static void
+@@ -72,7 +72,7 @@ clear_ungetc_buffer (FILE *fp)
+ 
+ #endif
+ 
+-#if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */)
++#if ! (defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, 
Linux libc5 */)
+ 
+ # if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && 
defined __SNPT
+ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */
+@@ -148,7 +148,7 @@ rpl_fflush (FILE *stream)
+   if (stream == NULL || ! freading (stream))
+ return fflush (stream);
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, 
Linux libc5 */
+ 
+   clear_ungetc_buffer_preserving_position (stream);
+ 
+diff --git a/gl/lib/fpurge.c b/gl/lib/fpurge.c
+index 

[arch-commits] Commit in findutils/repos (4 files)

2016-08-01 Thread Christian Hesse
Date: Monday, August 1, 2016 @ 20:08:50
  Author: eworm
Revision: 272784

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  findutils/repos/testing-i686/
  findutils/repos/testing-i686/PKGBUILD
(from rev 272783, findutils/trunk/PKGBUILD)
  findutils/repos/testing-x86_64/
  findutils/repos/testing-x86_64/PKGBUILD
(from rev 272783, findutils/trunk/PKGBUILD)

-+
 testing-i686/PKGBUILD   |   37 +
 testing-x86_64/PKGBUILD |   37 +
 2 files changed, 74 insertions(+)

Copied: findutils/repos/testing-i686/PKGBUILD (from rev 272783, 
findutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2016-08-01 20:08:50 UTC (rev 272784)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer:
+
+pkgname=findutils
+pkgver=4.6.0
+pkgrel=2
+pkgdesc="GNU utilities to locate files"
+arch=('i686' 'x86_64')
+license=('GPL3')
+groups=('base' 'base-devel')
+depends=('glibc' 'sh')
+url="http://www.gnu.org/software/findutils;
+source=(ftp://ftp.gnu.org/pub/gnu/findutils/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('f18e8aaee3f3d4173a1f598001003be8706d28b0')
+#validpgpkeys=('A15B725964A95EE5') # James Youngman 
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # Don't build or install locate because we use mlocate,
+  # which is a secure version of locate.
+  sed -i '/^SUBDIRS/s/locate//' Makefile.in
+
+  ./configure --prefix=/usr
+  # don't build locate, but the docs want a file in there.
+  make -C locate dblocation.texi
+  make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR=$pkgdir install
+}

Copied: findutils/repos/testing-x86_64/PKGBUILD (from rev 272783, 
findutils/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-08-01 20:08:50 UTC (rev 272784)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer:
+
+pkgname=findutils
+pkgver=4.6.0
+pkgrel=2
+pkgdesc="GNU utilities to locate files"
+arch=('i686' 'x86_64')
+license=('GPL3')
+groups=('base' 'base-devel')
+depends=('glibc' 'sh')
+url="http://www.gnu.org/software/findutils;
+source=(ftp://ftp.gnu.org/pub/gnu/findutils/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('f18e8aaee3f3d4173a1f598001003be8706d28b0')
+#validpgpkeys=('A15B725964A95EE5') # James Youngman 
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # Don't build or install locate because we use mlocate,
+  # which is a secure version of locate.
+  sed -i '/^SUBDIRS/s/locate//' Makefile.in
+
+  ./configure --prefix=/usr
+  # don't build locate, but the docs want a file in there.
+  make -C locate dblocation.texi
+  make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR=$pkgdir install
+}