[arch-commits] Commit in m4/repos (8 files)

Allan McRae allan at nymeria.archlinux.org
Tue Apr 16 04:08:54 UTC 2013


    Date: Tuesday, April 16, 2013 @ 06:08:54
  Author: allan
Revision: 182903

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

Added:
  m4/repos/testing-i686/
  m4/repos/testing-i686/PKGBUILD
    (from rev 182902, m4/trunk/PKGBUILD)
  m4/repos/testing-i686/m4-1.4.16-readlink-einval.patch
    (from rev 182902, m4/trunk/m4-1.4.16-readlink-einval.patch)
  m4/repos/testing-i686/m4.install
    (from rev 182902, m4/trunk/m4.install)
  m4/repos/testing-x86_64/
  m4/repos/testing-x86_64/PKGBUILD
    (from rev 182902, m4/trunk/PKGBUILD)
  m4/repos/testing-x86_64/m4-1.4.16-readlink-einval.patch
    (from rev 182902, m4/trunk/m4-1.4.16-readlink-einval.patch)
  m4/repos/testing-x86_64/m4.install
    (from rev 182902, m4/trunk/m4.install)

------------------------------------------------+
 testing-i686/PKGBUILD                          |   45 +++++++++++++++++++++++
 testing-i686/m4-1.4.16-readlink-einval.patch   |   12 ++++++
 testing-i686/m4.install                        |   20 ++++++++++
 testing-x86_64/PKGBUILD                        |   45 +++++++++++++++++++++++
 testing-x86_64/m4-1.4.16-readlink-einval.patch |   12 ++++++
 testing-x86_64/m4.install                      |   20 ++++++++++
 6 files changed, 154 insertions(+)

Copied: m4/repos/testing-i686/PKGBUILD (from rev 182902, m4/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=m4
+pkgver=1.4.16
+pkgrel=3
+pkgdesc="The GNU macro processor"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/m4"
+license=('GPL3')
+groups=('base-devel')
+depends=('glibc' 'bash')
+install=m4.install
+source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig}
+        m4-1.4.16-readlink-einval.patch)
+md5sums=('7548ec061a1ba993790159764f522d0e'
+         'SKIP'
+         'cea138fa9b568d06e46269611cec8dd0')
+
+prepare() {
+  cd ${srcdir}/$pkgname-$pkgver
+  
+  # glibc-2.16 compatibility
+  sed -i -e '/gets is a/d' lib/stdio.in.h
+  
+  # patch testsuite failure with newer kernels
+  patch -Np1 -i $srcdir/m4-1.4.16-readlink-einval.patch
+}
+
+build() {
+  cd ${srcdir}/$pkgname-$pkgver  
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd ${srcdir}/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd ${srcdir}/$pkgname-$pkgver
+  make prefix=${pkgdir}/usr install
+}

Copied: m4/repos/testing-i686/m4-1.4.16-readlink-einval.patch (from rev 182902, m4/trunk/m4-1.4.16-readlink-einval.patch)
===================================================================
--- testing-i686/m4-1.4.16-readlink-einval.patch	                        (rev 0)
+++ testing-i686/m4-1.4.16-readlink-einval.patch	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,12 @@
+diff -up m4-1.4.16/tests/test-readlink.h.orig m4-1.4.16/tests/test-readlink.h
+--- m4-1.4.16/tests/test-readlink.h.orig	2011-09-19 12:44:58.745546826 +0200
++++ m4-1.4.16/tests/test-readlink.h	2011-09-19 12:46:00.079548410 +0200
+@@ -38,7 +38,7 @@ test_readlink (ssize_t (*func) (char con
+   ASSERT (errno == ENOENT);
+   errno = 0;
+   ASSERT (func ("", buf, sizeof buf) == -1);
+-  ASSERT (errno == ENOENT);
++  ASSERT (errno == ENOENT || errno == EINVAL);
+   errno = 0;
+   ASSERT (func (".", buf, sizeof buf) == -1);
+   ASSERT (errno == EINVAL);

Copied: m4/repos/testing-i686/m4.install (from rev 182902, m4/trunk/m4.install)
===================================================================
--- testing-i686/m4.install	                        (rev 0)
+++ testing-i686/m4.install	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=('m4.info' 'm4.info-1' 'm4.info-2')
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}

Copied: m4/repos/testing-x86_64/PKGBUILD (from rev 182902, m4/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=m4
+pkgver=1.4.16
+pkgrel=3
+pkgdesc="The GNU macro processor"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/m4"
+license=('GPL3')
+groups=('base-devel')
+depends=('glibc' 'bash')
+install=m4.install
+source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig}
+        m4-1.4.16-readlink-einval.patch)
+md5sums=('7548ec061a1ba993790159764f522d0e'
+         'SKIP'
+         'cea138fa9b568d06e46269611cec8dd0')
+
+prepare() {
+  cd ${srcdir}/$pkgname-$pkgver
+  
+  # glibc-2.16 compatibility
+  sed -i -e '/gets is a/d' lib/stdio.in.h
+  
+  # patch testsuite failure with newer kernels
+  patch -Np1 -i $srcdir/m4-1.4.16-readlink-einval.patch
+}
+
+build() {
+  cd ${srcdir}/$pkgname-$pkgver  
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd ${srcdir}/$pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd ${srcdir}/$pkgname-$pkgver
+  make prefix=${pkgdir}/usr install
+}

Copied: m4/repos/testing-x86_64/m4-1.4.16-readlink-einval.patch (from rev 182902, m4/trunk/m4-1.4.16-readlink-einval.patch)
===================================================================
--- testing-x86_64/m4-1.4.16-readlink-einval.patch	                        (rev 0)
+++ testing-x86_64/m4-1.4.16-readlink-einval.patch	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,12 @@
+diff -up m4-1.4.16/tests/test-readlink.h.orig m4-1.4.16/tests/test-readlink.h
+--- m4-1.4.16/tests/test-readlink.h.orig	2011-09-19 12:44:58.745546826 +0200
++++ m4-1.4.16/tests/test-readlink.h	2011-09-19 12:46:00.079548410 +0200
+@@ -38,7 +38,7 @@ test_readlink (ssize_t (*func) (char con
+   ASSERT (errno == ENOENT);
+   errno = 0;
+   ASSERT (func ("", buf, sizeof buf) == -1);
+-  ASSERT (errno == ENOENT);
++  ASSERT (errno == ENOENT || errno == EINVAL);
+   errno = 0;
+   ASSERT (func (".", buf, sizeof buf) == -1);
+   ASSERT (errno == EINVAL);

Copied: m4/repos/testing-x86_64/m4.install (from rev 182902, m4/trunk/m4.install)
===================================================================
--- testing-x86_64/m4.install	                        (rev 0)
+++ testing-x86_64/m4.install	2013-04-16 04:08:54 UTC (rev 182903)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=('m4.info' 'm4.info-1' 'm4.info-2')
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list