diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index dc801a6a4..a20dd9928 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -402,7 +402,8 @@ and every application benefits from this.") (uri (pypi-uri "gpg" version)) (sha256 (base32 - "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd")))) + "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd")) + (patches (search-patches "python-gpg-add-largefile-cflags.patch")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; No test suite. diff --git a/gnu/packages/patches/python-gpg-add-largefile-cflags.patch b/gnu/packages/patches/python-gpg-add-largefile-cflags.patch new file mode 100644 index 000000000..e57efe307 --- /dev/null +++ b/gnu/packages/patches/python-gpg-add-largefile-cflags.patch @@ -0,0 +1,12 @@ +--- gpg-1.8.0-old/setup.py 2016-11-30 04:41:41.000000000 -0500 ++++ gpg-1.8.0/setup.py 2017-01-08 15:13:20.437996702 -0500 +@@ -34,6 +34,9 @@ + extra_swig_opts = [] + extra_macros = dict() + ++# force largefile support ++extra_macros.update({"_FILE_OFFSET_BITS": 64, "_LARGEFILE_SOURCE": 1}) ++ + if os.path.exists("../../src/gpgme-config"): + # In-tree build. + in_tree = True