[arch-commits] Commit in borg/repos/community-x86_64 (4 files)
Eli Schwartz
eschwartz at archlinux.org
Wed Jan 2 03:48:53 UTC 2019
Date: Wednesday, January 2, 2019 @ 03:48:52
Author: eschwartz
Revision: 420253
archrelease: copy trunk to community-x86_64
Added:
borg/repos/community-x86_64/0001-Fix-msgpack-version-constraints-using-proper-setupto.patch
(from rev 420252, borg/trunk/0001-Fix-msgpack-version-constraints-using-proper-setupto.patch)
borg/repos/community-x86_64/PKGBUILD
(from rev 420252, borg/trunk/PKGBUILD)
Deleted:
borg/repos/community-x86_64/0001-Fix-msgpack-version-constraints-using-proper-setupto.patch
borg/repos/community-x86_64/PKGBUILD
-----------------------------------------------------------------+
0001-Fix-msgpack-version-constraints-using-proper-setupto.patch | 62 ++--
PKGBUILD | 132 +++++-----
2 files changed, 98 insertions(+), 96 deletions(-)
Deleted: 0001-Fix-msgpack-version-constraints-using-proper-setupto.patch
===================================================================
--- 0001-Fix-msgpack-version-constraints-using-proper-setupto.patch 2019-01-02 03:48:36 UTC (rev 420252)
+++ 0001-Fix-msgpack-version-constraints-using-proper-setupto.patch 2019-01-02 03:48:52 UTC (rev 420253)
@@ -1,31 +0,0 @@
-From 53671fd85a33d73699b80564da345ffc9b73c3e5 Mon Sep 17 00:00:00 2001
-From: Eli Schwartz <eschwartz at archlinux.org>
-Date: Mon, 11 Jun 2018 18:56:50 -0400
-Subject: [PATCH] Fix msgpack version constraints using proper setuptools
- metadata.
-
-Embrace environment markers (a.k.a. PEP 508 compliance)! They let you do
-sane handling of different requirements for different versions of
-python. There's no need to bend over backwards to try to ensure usage of
-python34-compatible dependencies on python36.
----
- setup.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 253a050a..22aabbbe 100644
---- a/setup.py
-+++ b/setup.py
-@@ -39,7 +39,8 @@
- # we are rather picky about msgpack versions, because a good working msgpack is
- # very important for borg, see https://github.com/borgbackup/borg/issues/3753
- # best versions seem to be 0.4.6, 0.4.7, 0.4.8 and 0.5.6:
-- 'msgpack-python >=0.4.6, <=0.5.6, !=0.5.0, !=0.5.1, !=0.5.2, !=0.5.3, !=0.5.4, !=0.5.5',
-+ 'msgpack-python >=0.4.6, <0.5;python_version=="3.4"',
-+ 'msgpack >=0.5.6;python_version >="3.5"',
- # if you can't satisfy the above requirement, these are versions that might
- # also work ok, IF you make sure to use the COMPILED version of msgpack-python,
- # NOT the PURE PYTHON fallback implementation: ==0.5.1, ==0.5.4
---
-2.19.0
-
Copied: borg/repos/community-x86_64/0001-Fix-msgpack-version-constraints-using-proper-setupto.patch (from rev 420252, borg/trunk/0001-Fix-msgpack-version-constraints-using-proper-setupto.patch)
===================================================================
--- 0001-Fix-msgpack-version-constraints-using-proper-setupto.patch (rev 0)
+++ 0001-Fix-msgpack-version-constraints-using-proper-setupto.patch 2019-01-02 03:48:52 UTC (rev 420253)
@@ -0,0 +1,31 @@
+From 53671fd85a33d73699b80564da345ffc9b73c3e5 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <eschwartz at archlinux.org>
+Date: Mon, 11 Jun 2018 18:56:50 -0400
+Subject: [PATCH] Fix msgpack version constraints using proper setuptools
+ metadata.
+
+Embrace environment markers (a.k.a. PEP 508 compliance)! They let you do
+sane handling of different requirements for different versions of
+python. There's no need to bend over backwards to try to ensure usage of
+python34-compatible dependencies on python36.
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 253a050a..22aabbbe 100644
+--- a/setup.py
++++ b/setup.py
+@@ -39,7 +39,8 @@
+ # we are rather picky about msgpack versions, because a good working msgpack is
+ # very important for borg, see https://github.com/borgbackup/borg/issues/3753
+ # best versions seem to be 0.4.6, 0.4.7, 0.4.8 and 0.5.6:
+- 'msgpack-python >=0.4.6, <=0.5.6, !=0.5.0, !=0.5.1, !=0.5.2, !=0.5.3, !=0.5.4, !=0.5.5',
++ 'msgpack-python >=0.4.6, <0.5;python_version=="3.4"',
++ 'msgpack >=0.5.6;python_version >="3.5"',
+ # if you can't satisfy the above requirement, these are versions that might
+ # also work ok, IF you make sure to use the COMPILED version of msgpack-python,
+ # NOT the PURE PYTHON fallback implementation: ==0.5.1, ==0.5.4
+--
+2.19.0
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-02 03:48:36 UTC (rev 420252)
+++ PKGBUILD 2019-01-02 03:48:52 UTC (rev 420253)
@@ -1,65 +0,0 @@
-# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-# Contributor: Vlad M. <vlad at archlinux.net>
-
-pkgname=borg
-_pkgname=borgbackup
-pkgver=1.1.7
-pkgrel=2
-pkgdesc='Deduplicating backup program with compression and authenticated encryption'
-url='https://borgbackup.github.io/'
-license=('BSD')
-arch=('x86_64')
-depends=('acl' 'lz4' 'openssl' 'python-msgpack' 'python-setuptools' 'xz' 'zstd')
-optdepends=('openssh: repositories on remote hosts'
- 'python-llfuse: mounting backups as a FUSE file system')
-makedepends=('cython' 'python-sphinx' 'python-guzzle-sphinx-theme')
-checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-benchmark' 'python-mock')
-provides=('borgbackup')
-replaces=('borgbackup')
-source=("https://github.com/$_pkgname/$pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz"
- "0001-Fix-msgpack-version-constraints-using-proper-setupto.patch")
-sha256sums=('f7b51a132e9edfbe1cacb4f478b28caf3622d79fffcb369bdae9f92d8c8a7fdc'
- '0392d573928aa8282ddb3082289a42ade7503aa285d575ce06d6296327518744')
-
-prepare() {
- cd "$srcdir/$_pkgname-$pkgver"
-
- # msgpack versions are constantly broken: https://bugs.archlinux.org/task/58974
- # patch submitted upstream as https://github.com/borgbackup/borg/pull/3891
- # but upstream refuses to merge it, claiming that it *breaks* compatibility
- # rather than adds it??? We're specifically using a patch since otherwise,
- # this keeps on breaking with every single release, and we need to check
- # every single time that it isn't broken again. New versions *cannot* simply
- # be trusted to be sane.
- patch -p1 -i ../0001-Fix-msgpack-version-constraints-using-proper-setupto.patch
-}
-
-build() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$srcdir/$_pkgname-$pkgver/build/lib.linux-$CARCH-3".*/
- LANG=en_US.UTF-8 PYTHONPATH="$PWD:$PYTHONPATH" py.test --cov=borg \
- --benchmark-skip --pyargs borg.testsuite -v \
- -k 'not test_non_ascii_acl'
-}
-
-package() {
- cd "$srcdir/$_pkgname-$pkgver"
-
- python setup.py install --root="$pkgdir" --optimize=1
-
- # remove junk files
- rm -r "$pkgdir"/usr/lib/python*/site-packages/{.benchmarks,.coverage}
-
- install -Dm644 scripts/shell_completions/bash/borg \
- "$pkgdir/usr/share/bash-completion/completions/borg"
- install -Dm644 scripts/shell_completions/fish/borg.fish \
- "$pkgdir/usr/share/fish/vendor_completions.d/borg.fish"
- install -Dm644 scripts/shell_completions/zsh/_borg "$pkgdir/usr/share/zsh/site-functions/_borg"
-
- install -Dm644 -t "$pkgdir/usr/share/man/man1/" "docs/man/"*.1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: borg/repos/community-x86_64/PKGBUILD (from rev 420252, borg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-02 03:48:52 UTC (rev 420253)
@@ -0,0 +1,67 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Vlad M. <vlad at archlinux.net>
+
+pkgname=borg
+_pkgname=borgbackup
+pkgver=1.1.8
+pkgrel=1
+pkgdesc='Deduplicating backup program with compression and authenticated encryption'
+url='https://borgbackup.github.io/'
+license=('BSD')
+arch=('x86_64')
+depends=('acl' 'lz4' 'openssl' 'python-msgpack' 'python-setuptools' 'xz' 'zstd')
+optdepends=('openssh: repositories on remote hosts'
+ 'python-llfuse: mounting backups as a FUSE file system')
+makedepends=('cython' 'python-sphinx' 'python-guzzle-sphinx-theme')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-benchmark' 'python-mock')
+provides=('borgbackup')
+replaces=('borgbackup')
+source=("https://github.com/$_pkgname/$pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz"{,.asc}
+ "0001-Fix-msgpack-version-constraints-using-proper-setupto.patch")
+sha256sums=('0b4370480ca0114cb0bb534286241af8a35c6ffb71404dfa409ed06099661b63'
+ 'SKIP'
+ '0392d573928aa8282ddb3082289a42ade7503aa285d575ce06d6296327518744')
+validpgpkeys=('6D5BEF9ADD2075805747B70F9F88FB52FAF7B393') # Thomas Waldmann <tw at waldmann-edv.de>
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ # msgpack versions are constantly broken: https://bugs.archlinux.org/task/58974
+ # patch submitted upstream as https://github.com/borgbackup/borg/pull/3891
+ # but upstream refuses to merge it, claiming that it *breaks* compatibility
+ # rather than adds it??? We're specifically using a patch since otherwise,
+ # this keeps on breaking with every single release, and we need to check
+ # every single time that it isn't broken again. New versions *cannot* simply
+ # be trusted to be sane.
+ patch -p1 -i ../0001-Fix-msgpack-version-constraints-using-proper-setupto.patch
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver/build/lib.linux-$CARCH-3".*/
+ LANG=en_US.UTF-8 PYTHONPATH="$PWD:$PYTHONPATH" py.test --cov=borg \
+ --benchmark-skip --pyargs borg.testsuite -v \
+ -k 'not test_non_ascii_acl'
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ # remove junk files
+ rm -r "$pkgdir"/usr/lib/python*/site-packages/{.benchmarks,.coverage}
+
+ install -Dm644 scripts/shell_completions/bash/borg \
+ "$pkgdir/usr/share/bash-completion/completions/borg"
+ install -Dm644 scripts/shell_completions/fish/borg.fish \
+ "$pkgdir/usr/share/fish/vendor_completions.d/borg.fish"
+ install -Dm644 scripts/shell_completions/zsh/_borg "$pkgdir/usr/share/zsh/site-functions/_borg"
+
+ install -Dm644 -t "$pkgdir/usr/share/man/man1/" "docs/man/"*.1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list