Duplicit fails to build: ERROR: test_sigchain_fileobj (testing.unit.test_collections.CollectionTest)

  • Done
  • quality assurance status badge
Details
2 participants
  • Brendan Tildesley
  • Christopher Baines
Owner
unassigned
Submitted by
Christopher Baines
Severity
normal

Debbugs page

Christopher Baines wrote 7 years ago
(address . bug-guix@gnu.org)
874lib6mxh.fsf@cbaines.net
Duplicity fails to build, this might be because of the GPG version used,
as it looks to me that GPG complains that the message is quite old. I'll
ask on the Duplicity talk mailing list.


test_remove_all_inc_of_but_n (testing.functional.test_cleanup.CleanupTest) ... ok

======================================================================
ERROR: test_sigchain_fileobj (testing.unit.test_collections.CollectionTest)
Test getting signature chain fileobjs from archive_dir
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 188, in test_sigchain_fileobj
self.sigchain_fileobj_check_list(self.sigchain_fileobj_get(None))
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 180, in sigchain_fileobj_check_list
test_fileobj(0, "Hello, world!")
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 177, in test_fileobj
fileobjlist[i].close()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/dup_temp.py", line 227, in close
assert not self.fileobj.close()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/gpg.py", line 304, in close
self.gpg_failed()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/gpg.py", line 271, in gpg_failed
raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: WARNING: message was not integrity protected
gpg: Hint: If this message was created before the year 2003 it is
likely that this message is legitimate. This is because back
then integrity protection was not widely used.
gpg: Use the option '--ignore-mdc-error' to decrypt anyway.
gpg: decryption forced to fail!
gpg: WARNING: unsafe permissions on homedir '/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/gnupg'
===== End GnuPG log =====


----------------------------------------------------------------------
Ran 418 tests in 548.274s

FAILED (errors=1, skipped=3)
Backtrace:
5 (primitive-load "/gnu/store/h8y2ahqbx83ih4kcf9x5x11wg4q…")
In ice-9/eval.scm:
191:35 4 (_ _)
In srfi/srfi-1.scm:
640:9 3 (for-each #<procedure 9ea260 at /gnu/store/5sy3815dpjc…> …)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/gnu-build-system.scm:
799:31 2 (_ _)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/python-build-system.scm:
142:8 1 (check #:tests? _ #:test-target _ #:use-setuptools? _)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/utils.scm:
616:6 0 (invoke _ . _)

/gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "python" arguments: ("-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test") exit-status: 1 term-signal: #f stop-signal: #f] 76a640>)'.
builder for `/gnu/store/ghxnpxvxvgpgcrf0b7a5ia4s7lm5aha6-duplicity-0.7.17.drv' failed with exit code 1
cannot build derivation `/gnu/store/1439zhmkrg58n15mj5m9nmx6sxd01km5-deja-dup-34.3.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of `/gnu/store/1439zhmkrg58n15mj5m9nmx6sxd01km5-deja-dup-34.3.drv' failed
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlsc52pfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XcLgA//eMqAWD4GvvTc5hzpdrmZQV6GVrvpCDLAgK32Gd7kqivxGMakKIbZ7t+C
O1KUmFUyLxdsesJDrjVF1E2QwrWxC6bilGU4MuUTuPHirQe4TEtH8OyfG2ZTPvlJ
EJ3O5eCV5IPcYUJq1aAMKozSXZ6wrlgkyJWA2mPExJZSwRnjYfvQppA3N+fIKiKg
HyhbL8ZlUWFNDQ8oHo/rDdGMO9D4p1HwdiHLcUg19rEtoHGBrKMM7z/Vl/Ci8xRf
vIEP+wBebp37abafl7EyBvWRdvLuZ9qJ0yeWKb7BdmDQG0KL6SzX4vqqLg8AKQ3q
jrD6luG6YmaN+O2KeopMsdtbaWa3GpduV3abioaF9pMIS5R5QlKikR/WsgAAoBfZ
L9Z9bHgk4nXk1xxwXgNRjxow9tCg8ZT58La03QFuqb91g42zfQPm4CL+nC0+I7pg
E6SDCAYBfmo+Zela8lJ2olPN3uv7f1I4yTNQCDYm5ASvIrnKVXRt0qeBeqxYT2EU
TKAzIEOSRGfHsATqyaNr2djh8tAhF47K53AVxbstQ90Wht6g/xa3MhXvLm/1NTyo
baqIFiAI9MxaSL84tOnhtUh6G/wzwuc2BwSYqoVq3DQDlLWepMef8cCbWRKubVGE
sulBwLgI972wp4eV/fpWDyHt4tQs0+sWipTIILxpxPRWHssd2sI=
=63pU
-----END PGP SIGNATURE-----

Christopher Baines wrote 7 years ago
ERROR: test_sigchain_fileobj (testing.unit.test_collections.CollectionTest)
(address . duplicity-talk@nongnu.org)(address . 31773@debbugs.gnu.org)
8736xv6mmc.fsf@cbaines.net
Hey,

The Guix package for duplicity is failing to build, and I was wondering
if there is a fix already? I've had a look on Launchpad, but didn't spot
anything.

Here is the error:

======================================================================
ERROR: test_sigchain_fileobj (testing.unit.test_collections.CollectionTest)
Test getting signature chain fileobjs from archive_dir
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 188, in test_sigchain_fileobj
self.sigchain_fileobj_check_list(self.sigchain_fileobj_get(None))
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 180, in sigchain_fileobj_check_list
test_fileobj(0, "Hello, world!")
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/unit/test_collections.py", line 177, in test_fileobj
fileobjlist[i].close()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/dup_temp.py", line 227, in close
assert not self.fileobj.close()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/gpg.py", line 304, in close
self.gpg_failed()
File "/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/duplicity/gpg.py", line 271, in gpg_failed
raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: WARNING: message was not integrity protected
gpg: Hint: If this message was created before the year 2003 it is
likely that this message is legitimate. This is because back
then integrity protection was not widely used.
gpg: Use the option '--ignore-mdc-error' to decrypt anyway.
gpg: decryption forced to fail!
gpg: WARNING: unsafe permissions on homedir '/tmp/guix-build-duplicity-0.7.17.drv-0/duplicity-0.7.17/testing/gnupg'
===== End GnuPG log =====


----------------------------------------------------------------------
Ran 418 tests in 548.274s

FAILED (errors=1, skipped=3)


Thanks,

Chris
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlsc6PtfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XcobA/+LWaf9Ms/4nbwGGKX8wWhNnOyhS60eOPP6HB6dJs//Y5bcaBWAkTQEdBV
BOSF5cjvpb++BIjPwj5tJfetcuC+PZ/adXMhENPC/r3F1m7q0XzPLMWePZgbrUOW
Rm0mLGYmfw8+/TZ1aLYvfZ59k+DuihCuiQtJRKR0ygs1agDC8O5x5bFD9RhHXGtr
SMdMdXMXxJhQDX/aS6v2Ht7CXKgt2fF+Cyp5JdfdarIP7Gz4FfPaVk+qxL/tEZHK
8T0CDps0Ov4XCIL4u+dHPKo19GniJAskzXHnnFzwsPnOtxD0fQ758PXQ9F3XENp6
N8ke54kGG+d1uYBMj47eVtvtv8SOodLLkoqhdPcjjz74refLEF9pnBy8IjMpaJE5
ZzA64GbllQJOQJgHUmZSUnnC2ZrgKviSzEd731p0wl+SwF+jJ6CqWUJUPSZDEJmK
AxsrM6PmxC5uYbx7sN43bAIx/U9eIiKE0OJjMB75FUMiroohUc6SRPRdQwXoIn5Y
8kHSi7OXIKguDWzY+Bq8j758RK/rp0JIGyKVhwzW40+KSERlxKjQHWa21uqzX7X8
wDDFCZOBEWlyQrK3bwqVNoAAumFEhKKzKlub158PAnkButdboYh7sQtHmheaJQhx
m5I7DDzQCo7mbZxCyYNZZNrXlZRL8pbimBsS/8q6Ptkk/1XHY7M=
=0xUN
-----END PGP SIGNATURE-----

Brendan Tildesley wrote 7 years ago
(address . bug-guix@gnu.org)
034b4ca0-23e0-769a-b48f-f23d721a73ec@openmailbox.org
On 06/10/18 19:01, Christopher Baines wrote:
Toggle quote (7 lines)
> Hey,
>
> The Guix package for duplicity is failing to build, and I was wondering
> if there is a fix already? I've had a look on Launchpad, but didn't spot
> anything.
>
> [...]
The problem is due to changes in GPG causing it to error on some of theĀ 
very old files included in the tests. The fix is already upstream and
will be in the next release. Somebody can include a patch if they'd like
to get it working asap. I don't know how far away the next release is:
Christopher Baines wrote 6 years ago
Re: bug#31773: Duplicit fails to build: ERROR: test_sigchain_fileobj (testing.unit.test_collections.CollectionTest)
(address . 31773-done@debbugs.gnu.org)
875zu7qwi7.fsf@cbaines.net
I ended up pushing a patch [1] for this as part of [2]. This has now
been released by upstream, so the change doesn't exist in the Guix
codebase any longer (the package was updated in [3]).

1: e61f092c877da5a9dc5dcdd82690bd3c191769e1


3: 7bb7920f64a871eadd8e76687f72673ef2298746
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlxQefBfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9Xf+iBAAoYMWSz/46zR2U6UIDeVq4GhI/wUPDuSMurcgFDX/okwLdfJ6jplq8ZVp
lG7tKiHWMC6LXcq+gSDkn2mQSH9eOnZk5mkn9CPqMp3g5jxGHAVQQj7ZwgQlNgFS
C9fYTmvaWF5Y4lQxYphxciMBAUPA96nSpfY8pApZILPQtypydDiyPdvOHdsKg4CC
8H6+rXUD80cPxGzcdil82fOag/tlF+TEYhiXWP8oLMtimSs0ArnBkdxHEsh2tHzd
5VfR3RA1OU29R8dlg043R5hjajl0mFaOriYcvrmGRygIdekuYF/r+f8NJxFy0Aln
wUwjYkw8o5xbARpUiPdwLMNOm3ML6mZU0afDjdM0S0cEaYQ29KJOtLQKR/Dz2eOS
p+SYw8GeLYHqvs3wsLO0fnSa4wCaWfr9bmA/kA1zOU6GfyiVkdqhUmws+RrG9xru
bdXVmJlWn3eKeVkZyDXMnPzZU09Th3xpsYxjtK5aoxKwYXYTym/2seLxuw+xlrdQ
lee6KgKxVWHpp4fR4GEUh5w466dR70CDQ8IW8xN5yXYnEZcrk+oEry4NB5wcRLHv
kZ2UKF44eyDSlH6jdCs01X8ip98voupItRCPrwkwy+jBcqFnNhAIY+8iDnJdcg0e
PHPdiWZjV9LyQBUwaIKWQiiL9p0/NnL5DFoY0ebuNH9BsASzaCE=
=zNHz
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 31773@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 31773
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help