[gentoo-commits] repo/gentoo:master commit in: app-backup/borgbackup/files/

2020-05-02 Thread Anthony G. Basile
commit: 7d0d9c122aa4680930cdaf39f609d70504a4eb09
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Apr 25 15:50:48 2020 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Sun May  3 02:08:13 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d0d9c12

app-backup/borgbackup: remove unused patch(es)

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Anthony G. Basile  gentoo.org>

 .../files/borgbackup-1.1.11-unbundle-msgpack.patch | 110 -
 1 file changed, 110 deletions(-)

diff --git 
a/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch 
b/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch
deleted file mode 100644
index 85b612af237..000
--- a/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch
+++ /dev/null
@@ -1,110 +0,0 @@
-diff -Naur borgbackup-1.1.11.orig/setup.cfg borgbackup-1.1.11/setup.cfg
 borgbackup-1.1.11.orig/setup.cfg   2020-03-07 18:44:15.0 -0500
-+++ borgbackup-1.1.11/setup.cfg2020-03-11 10:28:25.168481822 -0400
-@@ -6,7 +6,7 @@
-   F401,F405,F811,
-   W504
- max-line-length = 255
--exclude = 
build,dist,.git,.idea,.cache,.tox,docs/conf.py,src/borg/algorithms/msgpack
-+exclude = build,dist,.git,.idea,.cache,.tox,docs/conf.py
- 
- [egg_info]
- tag_build = 
-diff -Naur borgbackup-1.1.11.orig/setup.py borgbackup-1.1.11/setup.py
 borgbackup-1.1.11.orig/setup.py2020-03-07 18:32:06.0 -0500
-+++ borgbackup-1.1.11/setup.py 2020-03-11 10:28:15.568759338 -0400
-@@ -25,8 +25,6 @@
- # True: use the shared libb2 from the system, False: use the bundled blake2 
code
- prefer_system_libb2 = True
- 
--# prefer_system_msgpack is another option, but you need to set it in 
src/borg/helpers.py.
--
- min_python = (3, 4)
- my_python = sys.version_info
- 
-@@ -79,8 +77,6 @@
- platform_syncfilerange_source = 'src/borg/platform/syncfilerange.pyx'
- platform_darwin_source = 'src/borg/platform/darwin.pyx'
- platform_freebsd_source = 'src/borg/platform/freebsd.pyx'
--msgpack_packer_source = 'src/borg/algorithms/msgpack/_packer.pyx'
--msgpack_unpacker_source = 'src/borg/algorithms/msgpack/_unpacker.pyx'
- 
- cython_c_sources = [
- # these .pyx will get compiled to .c
-@@ -98,12 +94,6 @@
- platform_darwin_source,
- ]
- 
--cython_cpp_sources = [
--# these .pyx will get compiled to .cpp
--msgpack_packer_source,
--msgpack_unpacker_source,
--]
--
- try:
- from Cython.Distutils import build_ext
- import Cython.Compiler.Main as cython_compiler
-@@ -133,8 +123,6 @@
- 'src/borg/platform/syncfilerange.c',
- 'src/borg/platform/freebsd.c',
- 'src/borg/platform/darwin.c',
--'src/borg/algorithms/msgpack/_packer.cpp',
--'src/borg/algorithms/msgpack/_unpacker.cpp',
- ])
- super().make_distribution()
- 
-@@ -155,14 +143,12 @@
- platform_freebsd_source = platform_freebsd_source.replace('.pyx', '.c')
- platform_darwin_source = platform_darwin_source.replace('.pyx', '.c')
- 
--msgpack_packer_source = msgpack_packer_source.replace('.pyx', '.cpp')
--msgpack_unpacker_source = msgpack_unpacker_source.replace('.pyx', '.cpp')
- 
- from distutils.command.build_ext import build_ext
- if not on_rtd and not all(os.path.exists(path) for path in [
- compress_source, crypto_ll_source, chunker_source, hashindex_source, 
item_source, checksums_source,
- platform_posix_source, platform_linux_source, 
platform_syncfilerange_source, platform_freebsd_source, platform_darwin_source,
--msgpack_packer_source, msgpack_unpacker_source]):
-+]):
- raise ImportError('The GIT version of Borg needs Cython. Install 
Cython or use a released version.')
- 
- 
-@@ -805,26 +791,7 @@
-system_prefix=libb2_prefix, 
system=libb2_system,
-**crypto_ext_kwargs)
- 
--msgpack_endian = '__BIG_ENDIAN__' if (sys.byteorder == 'big') else 
'__LITTLE_ENDIAN__'
--msgpack_macros = [(msgpack_endian, '1')]
--msgpack_packer_ext_kwargs = dict(
--sources=[msgpack_packer_source],
--include_dirs=include_dirs,
--library_dirs=library_dirs,
--define_macros=msgpack_macros,
--language='c++',
--)
--msgpack_unpacker_ext_kwargs = dict(
--sources=[msgpack_unpacker_source],
--include_dirs=include_dirs,
--library_dirs=library_dirs,
--define_macros=msgpack_macros,
--language='c++',
--)
--
- ext_modules += [
--Extension('borg.algorithms.msgpack._packer', 
**msgpack_packer_ext_kwargs),
--Extension('borg.algorithms.msgpack._unpacker', 
**msgpack_unpacker_ext_kwargs),
- Extension('borg.compress', **compress_ext_kwargs),
- 

[gentoo-commits] repo/gentoo:master commit in: app-backup/borgbackup/files/, app-backup/borgbackup/

2020-03-11 Thread Anthony G. Basile
commit: af4666896507e86048fd049fe699a4b99c658cbd
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Wed Mar 11 14:36:18 2020 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Wed Mar 11 14:36:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af466689

app-backup/borgbackup: use system msgpack

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Anthony G. Basile  gentoo.org>

 ...p-1.1.11.ebuild => borgbackup-1.1.11-r1.ebuild} |   4 +-
 .../files/borgbackup-1.1.11-unbundle-msgpack.patch | 110 +
 2 files changed, 112 insertions(+), 2 deletions(-)

diff --git a/app-backup/borgbackup/borgbackup-1.1.11.ebuild 
b/app-backup/borgbackup/borgbackup-1.1.11-r1.ebuild
similarity index 92%
rename from app-backup/borgbackup/borgbackup-1.1.11.ebuild
rename to app-backup/borgbackup/borgbackup-1.1.11-r1.ebuild
index 644e3a09332..822bb8bafab 100644
--- a/app-backup/borgbackup/borgbackup-1.1.11.ebuild
+++ b/app-backup/borgbackup/borgbackup-1.1.11-r1.ebuild
@@ -41,8 +41,8 @@ DEPEND="
 "
 
 python_prepare_all() {
-   # allow use of new (renamed) msgpack
-   sed -i "s|'msgpack-python.*',||g" setup.py || die
+   rm -rf src/borg/algorithms/msgpack
+   eapply "${FILESDIR}"/${P}-unbundle-msgpack.patch
distutils-r1_python_prepare_all
 }
 

diff --git 
a/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch 
b/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch
new file mode 100644
index 000..85b612af237
--- /dev/null
+++ b/app-backup/borgbackup/files/borgbackup-1.1.11-unbundle-msgpack.patch
@@ -0,0 +1,110 @@
+diff -Naur borgbackup-1.1.11.orig/setup.cfg borgbackup-1.1.11/setup.cfg
+--- borgbackup-1.1.11.orig/setup.cfg   2020-03-07 18:44:15.0 -0500
 borgbackup-1.1.11/setup.cfg2020-03-11 10:28:25.168481822 -0400
+@@ -6,7 +6,7 @@
+   F401,F405,F811,
+   W504
+ max-line-length = 255
+-exclude = 
build,dist,.git,.idea,.cache,.tox,docs/conf.py,src/borg/algorithms/msgpack
++exclude = build,dist,.git,.idea,.cache,.tox,docs/conf.py
+ 
+ [egg_info]
+ tag_build = 
+diff -Naur borgbackup-1.1.11.orig/setup.py borgbackup-1.1.11/setup.py
+--- borgbackup-1.1.11.orig/setup.py2020-03-07 18:32:06.0 -0500
 borgbackup-1.1.11/setup.py 2020-03-11 10:28:15.568759338 -0400
+@@ -25,8 +25,6 @@
+ # True: use the shared libb2 from the system, False: use the bundled blake2 
code
+ prefer_system_libb2 = True
+ 
+-# prefer_system_msgpack is another option, but you need to set it in 
src/borg/helpers.py.
+-
+ min_python = (3, 4)
+ my_python = sys.version_info
+ 
+@@ -79,8 +77,6 @@
+ platform_syncfilerange_source = 'src/borg/platform/syncfilerange.pyx'
+ platform_darwin_source = 'src/borg/platform/darwin.pyx'
+ platform_freebsd_source = 'src/borg/platform/freebsd.pyx'
+-msgpack_packer_source = 'src/borg/algorithms/msgpack/_packer.pyx'
+-msgpack_unpacker_source = 'src/borg/algorithms/msgpack/_unpacker.pyx'
+ 
+ cython_c_sources = [
+ # these .pyx will get compiled to .c
+@@ -98,12 +94,6 @@
+ platform_darwin_source,
+ ]
+ 
+-cython_cpp_sources = [
+-# these .pyx will get compiled to .cpp
+-msgpack_packer_source,
+-msgpack_unpacker_source,
+-]
+-
+ try:
+ from Cython.Distutils import build_ext
+ import Cython.Compiler.Main as cython_compiler
+@@ -133,8 +123,6 @@
+ 'src/borg/platform/syncfilerange.c',
+ 'src/borg/platform/freebsd.c',
+ 'src/borg/platform/darwin.c',
+-'src/borg/algorithms/msgpack/_packer.cpp',
+-'src/borg/algorithms/msgpack/_unpacker.cpp',
+ ])
+ super().make_distribution()
+ 
+@@ -155,14 +143,12 @@
+ platform_freebsd_source = platform_freebsd_source.replace('.pyx', '.c')
+ platform_darwin_source = platform_darwin_source.replace('.pyx', '.c')
+ 
+-msgpack_packer_source = msgpack_packer_source.replace('.pyx', '.cpp')
+-msgpack_unpacker_source = msgpack_unpacker_source.replace('.pyx', '.cpp')
+ 
+ from distutils.command.build_ext import build_ext
+ if not on_rtd and not all(os.path.exists(path) for path in [
+ compress_source, crypto_ll_source, chunker_source, hashindex_source, 
item_source, checksums_source,
+ platform_posix_source, platform_linux_source, 
platform_syncfilerange_source, platform_freebsd_source, platform_darwin_source,
+-msgpack_packer_source, msgpack_unpacker_source]):
++]):
+ raise ImportError('The GIT version of Borg needs Cython. Install 
Cython or use a released version.')
+ 
+ 
+@@ -805,26 +791,7 @@
+system_prefix=libb2_prefix, 
system=libb2_system,
+**crypto_ext_kwargs)
+ 
+-msgpack_endian = '__BIG_ENDIAN__' if (sys.byteorder == 'big') else 
'__LITTLE_ENDIAN__'
+-msgpack_macros = [(msgpack_endian, '1')]
+-msgpack_packer_ext_kwargs = dict(
+-