Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286373 - app-portage/emerge-delta-webrsync has no gpg support
Summary: app-portage/emerge-delta-webrsync has no gpg support
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-09-25 07:41 UTC by Kola Bernard
Modified: 2023-08-19 15:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Merge gpg support from emerge-webrsync (Merge-gpg-support-from-emerge-webrsync.patch,3.75 KB, patch)
2012-08-14 01:52 UTC, Zac Medico
Details | Diff
Merge gpg support from emerge-webrsync (Merge-gpg-support-from-emerge-webrsync.patch,4.26 KB, patch)
2012-08-14 02:06 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kola Bernard 2009-09-25 07:41:01 UTC
Hello
Is there a plan to add new option to 'emerge-delta-webrsync' for gpg verfication? 
Or mayby a passtrouth option to 'emerge-webrsync'?


Reproducible: Always

Steps to Reproduce:
1. Set FEATURES="webrsync-gpg" and PORTAGE_GPG_DIR="/path/to/valid/gnupg/setup" in make.conf
2. Do setup for 0x239C75C4 Key-ID
3. emerge-delta-webrsync

Actual Results:  
No GPG verification when using 'emerge-delta-webrsync'.

Expected Results:  
GPG verification when using 'emerge-delta-webrsync' like 'emerge-webrsync'.
Comment 1 wbrana 2012-08-10 20:04:05 UTC
Will be this implemented?
It is inefficient to always download 44 MB file.
Comment 2 Zac Medico gentoo-dev 2012-08-14 01:52:10 UTC
Created attachment 321250 [details, diff]
Merge gpg support from emerge-webrsync

Note that the gpg signature verification happens *after* the files are synced, since emerge-delta-webrsync generates the compressed tarball (that the signature is for) in parallel while it is syncing the files in parallel. Is that okay? Alternatively, we could force the compression to complete before the syncing, at least when FEATURES=webrsync-gpg is enabled.
Comment 3 Zac Medico gentoo-dev 2012-08-14 02:06:43 UTC
Created attachment 321252 [details, diff]
Merge gpg support from emerge-webrsync

This version forces the compression and signature verification to complete before syncing.
Comment 4 Zac Medico gentoo-dev 2012-08-17 22:07:44 UTC
WARNING: The gpg signatures are generated for *compressed* tar files, while the deltas reconstruct *uncompressed* tar files. So, the signature verification is reliant on the client's local compressor (bzip2) being able to produce perfectly identical output the compressor that's used on the server side.

If this turns out to be a problem, then we can request to have separate gpg signatures generated for the uncompressed tar files.
Comment 5 Zac Medico gentoo-dev 2012-08-18 01:31:28 UTC
(In reply to comment #3)
> Created attachment 321252 [details, diff] [details, diff]
> Merge gpg support from emerge-webrsync

This is in git now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=79674c13905962dc380ea4f951233d4cada32f5b
Comment 6 Zac Medico gentoo-dev 2012-08-19 06:18:24 UTC
This is fixed in version 3.6.
Comment 7 wbrana 2012-08-22 07:25:23 UTC
It works fine. Thanks.
Comment 8 sf 2013-06-20 11:04:34 UTC
In case of a full fetch no verification takes place.

Is it supposed to be that way? I guess not.

Should that go in a separate bug report, or should this one be reopened?
Comment 9 Zac Medico gentoo-dev 2013-06-20 21:23:15 UTC
(In reply to sf from comment #8)
> In case of a full fetch no verification takes place.

Yes, it seems that we need to call check_file_signature inside the full_version_attempt function.

> Is it supposed to be that way? I guess not.
> 
> Should that go in a separate bug report, or should this one be reopened?

I'll re-open this bug.
Comment 11 Zac Medico gentoo-dev 2013-06-22 07:19:21 UTC
(In reply to sf from comment #8)
> In case of a full fetch no verification takes place.

This is fixed in emerge-delta-webrsync-3.7.0.