Re: feature-request: import-option no-import-attributes

2024-01-24 Thread Robin H. Johnson via Gnupg-devel
On Wed, Jan 24, 2024 at 06:32:08PM +0100, Werner Koch wrote:
> On Wed, 24 Jan 2024 07:03, Robin H. Johnson said:
> > Minor feature request; 
> > Could --import-options get a "import-attributes"/"no-import-attributes"
> > value please?
> 
> $ gpg --import-options full-help | grep attr
> ignore-attributes
> 
> I hope that ignore-attributes is also okay.  Using import-attributes
> requires to initialize this first and thus it needs a little bit more
> code.  There is anyway to clean naming scheme for the sub-options.
> 
> https://dev.gnupg.org/rGd4976e35d2ca431b2a651aa11be8a4589c8dd39a
> 
>   gpg --export FD34556CF77575840F1B8D73A2156B6D520D7F8C \
> | gpg --import --import-options import-export,ignore-attributes \
> | gpg --show-key
> 
> Will be in 2.4.4 to be released in a few days.
Thanks Warner, that's great!

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136


signature.asc
Description: PGP signature
___
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


Re: feature-request: import-option no-import-attributes

2024-01-24 Thread Werner Koch via Gnupg-devel
On Wed, 24 Jan 2024 07:03, Robin H. Johnson said:
> Minor feature request; 
> Could --import-options get a "import-attributes"/"no-import-attributes"
> value please?

$ gpg --import-options full-help | grep attr
ignore-attributes

I hope that ignore-attributes is also okay.  Using import-attributes
requires to initialize this first and thus it needs a little bit more
code.  There is anyway to clean naming scheme for the sub-options.

https://dev.gnupg.org/rGd4976e35d2ca431b2a651aa11be8a4589c8dd39a

  gpg --export FD34556CF77575840F1B8D73A2156B6D520D7F8C \
| gpg --import --import-options import-export,ignore-attributes \
| gpg --show-key

Will be in 2.4.4 to be released in a few days.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


Re: gnupg package version mismatch

2024-01-24 Thread Werner Koch via Gnupg-devel
On Wed, 24 Jan 2024 13:08, Ingo Klöcker said:

> openSUSE applies this patch
> https://build.opensuse.org/package/view_file/openSUSE:Factory/gpg2/gnupg-nobetasuffix.patch?expand=1
> on their build system.

Ahem.  If you really must do that, go ahead.  However, I would prefer if
you just replace the "-unknown" by "-windriver".  And for Suse and other
distros who use modified versions to replace that by a string like
"-suse".  This would help us a lot to evaluate bug reports.


Salam-Shalom,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


Re: gnupg package version mismatch

2024-01-24 Thread Ingo Klöcker
On Mittwoch, 24. Januar 2024 06:30:41 CET Yu, Mingli via Gnupg-devel wrote:
> On 1/22/24 18:31, Werner Koch wrote:
> > On Mon, 22 Jan 2024 16:17, Yu, Mingli said:
> >>   gpgv (GnuPG) 2.4.3-unknown
> > 
> > You get the -unknown suffix if you run the autogen.sh script (or
> > autoconf directly) from a release tarball.  Don't do this - just run
> > ./configure.
> 
> For some reason, we need to run autoreconf. Is there any way to remove
> the -unknown suffix for the release version.

openSUSE applies this patch
https://build.opensuse.org/package/view_file/openSUSE:Factory/gpg2/gnupg-nobetasuffix.patch?expand=1
on their build system.

Regards,
Ingo

signature.asc
Description: This is a digitally signed message part.
___
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel


feature-request: import-option no-import-attributes

2024-01-24 Thread Robin H. Johnson via Gnupg-devel
Minor feature request; 
Could --import-options get a "import-attributes"/"no-import-attributes"
value please?

I'm writing tooling that needs to repeatedly import older keys, and I
want to exclude any attribute uids because they aren't relevant to my
processing.

I started trying to write it myself, but the import.c code was too
complex for 23:00 local time.

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

___
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-devel