Date: Friday, March 30, 2012 @ 12:41:04
  Author: pierre
Revision: 154765

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

Added:
  xz/repos/testing-i686/
  xz/repos/testing-i686/PKGBUILD
    (from rev 154764, xz/trunk/PKGBUILD)
  xz/repos/testing-i686/compile-fix.patch
    (from rev 154764, xz/trunk/compile-fix.patch)
  xz/repos/testing-x86_64/
  xz/repos/testing-x86_64/PKGBUILD
    (from rev 154764, xz/trunk/PKGBUILD)
  xz/repos/testing-x86_64/compile-fix.patch
    (from rev 154764, xz/trunk/compile-fix.patch)

----------------------------------+
 testing-i686/PKGBUILD            |   42 +++++++++++++++++++++++++++++++++++++
 testing-i686/compile-fix.patch   |   28 ++++++++++++++++++++++++
 testing-x86_64/PKGBUILD          |   42 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/compile-fix.patch |   28 ++++++++++++++++++++++++
 4 files changed, 140 insertions(+)

Copied: xz/repos/testing-i686/PKGBUILD (from rev 154764, xz/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2012-03-30 16:41:04 UTC (rev 154765)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Pierre Schmitz <[email protected]>
+# Contributor: François Charette <[email protected]>
+
+pkgname=xz
+pkgver=5.0.3
+pkgrel=2
+pkgdesc='Library and command line tools for XZ and LZMA compressed files'
+arch=('i686' 'x86_64')
+url='http://tukaani.org/xz/'
+license=('GPL' 'LGPL' 'custom')
+depends=('sh')
+options=('!libtool')
+source=("http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz";
+        "http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz.sig";
+        'compile-fix.patch')
+md5sums=('fefe52f9ecd521de2a8ce38c21a27574'
+         'd0725667a6dae0853194dc691e900e26'
+         'b74e4f7793848cc5765c848ea30f971f')
+
+build() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       patch -p1 -i ${srcdir}/compile-fix.patch
+
+       ./configure --prefix=/usr \
+               --disable-rpath \
+               --enable-werror
+       make
+}
+
+check() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       make check
+}
+
+package() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       make DESTDIR=${pkgdir} install
+       install -d -m755 ${pkgdir}/usr/share/licenses/xz/
+       ln -sf /usr/share/doc/xz/COPYING ${pkgdir}/usr/share/licenses/xz/
+       ln -sf /usr/share/licenses/common/GPL2/license.txt 
${pkgdir}/usr/share/doc/xz/COPYING.GPLv2
+}

Copied: xz/repos/testing-i686/compile-fix.patch (from rev 154764, 
xz/trunk/compile-fix.patch)
===================================================================
--- testing-i686/compile-fix.patch                              (rev 0)
+++ testing-i686/compile-fix.patch      2012-03-30 16:41:04 UTC (rev 154765)
@@ -0,0 +1,28 @@
+From 7db6bdf4abcf524115be2cf5659ed540cef074c5 Mon Sep 17 00:00:00 2001
+From: Lasse Collin <[email protected]>
+Date: Tue, 10 Jan 2012 17:13:03 +0200
+Subject: [PATCH] Tests: Fix a compiler warning with _FORTIFY_SOURCE.
+
+Reported here:
+http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385
+---
+ tests/create_compress_files.c |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c
+index 44367d8..bd5b4ef 100644
+--- a/tests/create_compress_files.c
++++ b/tests/create_compress_files.c
+@@ -79,7 +79,8 @@ static void
+ write_abc(FILE *file)
+ {
+       for (size_t i = 0; i < 12345; ++i)
+-              fwrite("abc\n", 4, 1, file);
++              if (fwrite("abc\n", 4, 1, file) != 1)
++                      exit(1);
+ }
+ 
+ 
+-- 
+1.7.6
+

Copied: xz/repos/testing-x86_64/PKGBUILD (from rev 154764, xz/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2012-03-30 16:41:04 UTC (rev 154765)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Pierre Schmitz <[email protected]>
+# Contributor: François Charette <[email protected]>
+
+pkgname=xz
+pkgver=5.0.3
+pkgrel=2
+pkgdesc='Library and command line tools for XZ and LZMA compressed files'
+arch=('i686' 'x86_64')
+url='http://tukaani.org/xz/'
+license=('GPL' 'LGPL' 'custom')
+depends=('sh')
+options=('!libtool')
+source=("http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz";
+        "http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz.sig";
+        'compile-fix.patch')
+md5sums=('fefe52f9ecd521de2a8ce38c21a27574'
+         'd0725667a6dae0853194dc691e900e26'
+         'b74e4f7793848cc5765c848ea30f971f')
+
+build() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       patch -p1 -i ${srcdir}/compile-fix.patch
+
+       ./configure --prefix=/usr \
+               --disable-rpath \
+               --enable-werror
+       make
+}
+
+check() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       make check
+}
+
+package() {
+       cd ${srcdir}/${pkgname}-${pkgver}
+       make DESTDIR=${pkgdir} install
+       install -d -m755 ${pkgdir}/usr/share/licenses/xz/
+       ln -sf /usr/share/doc/xz/COPYING ${pkgdir}/usr/share/licenses/xz/
+       ln -sf /usr/share/licenses/common/GPL2/license.txt 
${pkgdir}/usr/share/doc/xz/COPYING.GPLv2
+}

Copied: xz/repos/testing-x86_64/compile-fix.patch (from rev 154764, 
xz/trunk/compile-fix.patch)
===================================================================
--- testing-x86_64/compile-fix.patch                            (rev 0)
+++ testing-x86_64/compile-fix.patch    2012-03-30 16:41:04 UTC (rev 154765)
@@ -0,0 +1,28 @@
+From 7db6bdf4abcf524115be2cf5659ed540cef074c5 Mon Sep 17 00:00:00 2001
+From: Lasse Collin <[email protected]>
+Date: Tue, 10 Jan 2012 17:13:03 +0200
+Subject: [PATCH] Tests: Fix a compiler warning with _FORTIFY_SOURCE.
+
+Reported here:
+http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385
+---
+ tests/create_compress_files.c |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c
+index 44367d8..bd5b4ef 100644
+--- a/tests/create_compress_files.c
++++ b/tests/create_compress_files.c
+@@ -79,7 +79,8 @@ static void
+ write_abc(FILE *file)
+ {
+       for (size_t i = 0; i < 12345; ++i)
+-              fwrite("abc\n", 4, 1, file);
++              if (fwrite("abc\n", 4, 1, file) != 1)
++                      exit(1);
+ }
+ 
+ 
+-- 
+1.7.6
+

Reply via email to