Re: cygport upgrade to use gnupg2/gpg2 if available

2023-11-24 Thread Marco Atzeri via Cygwin-apps

On 21.11.2023 07:58, ASSI via Cygwin-apps wrote:

Brian Inglis via Cygwin-apps writes:

After applying the attached patches, which add support for the newer
gpg2 from gnupg2 if installed, the attached log second chunk shows the
new keys verified by gpg2 added to lib/src_prep.cygpart
___gpg_verify().

Similar code has been added to lib/pkg_pkg.cygpart __pkg_srcpkg() for
check and definition and __gpg_sign() for use in gpg signing of Cygwin
patches and files.



We should just switch to gpg2 an require that, there is no point in
trying to use GPG 1.x anymore.

https://repo.or.cz/cygport/rpm-style.git/commitdiff/84279e484726a68cc8f08e7c9126bef13d9510d7


Regards,
Achim.


should I just retire gpg 1.x and stop having gpg2 as different binary name ?


$ for i in /usr/bin/gpg* ; do echo -n $i " : " ; cygcheck -f $i ; done
/usr/bin/gpg.exe  : gnupg-1.4.23-1
/usr/bin/gpg2.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-agent.exe  : gnupg2-2.2.35-2
/usr/bin/gpgconf.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-connect-agent.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-error.exe  : libgpg-error-devel-1.47-1
/usr/bin/gpgme-config  : libgpgme-devel-1.9.0-1
/usr/bin/gpgme-tool.exe  : libgpgme-devel-1.9.0-1
/usr/bin/gpgparsemail.exe  : gnupg2-2.2.35-2
/usr/bin/gpgrt-config  : libgpg-error-devel-1.47-1
/usr/bin/gpgscm.exe  : gnupg2-2.2.35-2
/usr/bin/gpgsm.exe  : gnupg2-2.2.35-2
/usr/bin/gpgsplit.exe  : gnupg-1.4.23-1
gnupg2-2.2.35-2
/usr/bin/gpgtar.exe  : gnupg2-2.2.35-2
/usr/bin/gpgv.exe  : gnupg-1.4.23-1
/usr/bin/gpgv2.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-wks-server.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-zip  : gnupg-1.4.23-1



Re: cygport upgrade to use gnupg2/gpg2 if available

2023-11-24 Thread Brian Inglis via Cygwin-apps

On 2023-11-24 14:29, Marco Atzeri via Cygwin-apps wrote:

On 21.11.2023 07:58, ASSI via Cygwin-apps wrote:

Brian Inglis via Cygwin-apps writes:

After applying the attached patches, which add support for the newer
gpg2 from gnupg2 if installed, the attached log second chunk shows the
new keys verified by gpg2 added to lib/src_prep.cygpart
___gpg_verify().
Similar code has been added to lib/pkg_pkg.cygpart __pkg_srcpkg() for
check and definition and __gpg_sign() for use in gpg signing of Cygwin
patches and files.

We should just switch to gpg2 an require that, there is no point in
trying to use GPG 1.x anymore.
https://repo.or.cz/cygport/rpm-style.git/commitdiff/84279e484726a68cc8f08e7c9126bef13d9510d7


++1?


should I just retire gpg 1.x and stop having gpg2 as different binary name ?


Or obsolete 1 with 2 and add compatibility symlinks or scripts?

Keep names separate so easy to check.


$ for i in /usr/bin/gpg* ; do echo -n $i " : " ; cygcheck -f $i ; done
/usr/bin/gpg.exe  : gnupg-1.4.23-1
/usr/bin/gpg2.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-agent.exe  : gnupg2-2.2.35-2
/usr/bin/gpgconf.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-connect-agent.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-error.exe  : libgpg-error-devel-1.47-1
/usr/bin/gpgme-config  : libgpgme-devel-1.9.0-1
/usr/bin/gpgme-tool.exe  : libgpgme-devel-1.9.0-1
/usr/bin/gpgparsemail.exe  : gnupg2-2.2.35-2
/usr/bin/gpgrt-config  : libgpg-error-devel-1.47-1
/usr/bin/gpgscm.exe  : gnupg2-2.2.35-2
/usr/bin/gpgsm.exe  : gnupg2-2.2.35-2
/usr/bin/gpgsplit.exe  : gnupg-1.4.23-1
gnupg2-2.2.35-2
/usr/bin/gpgtar.exe  : gnupg2-2.2.35-2
/usr/bin/gpgv.exe  : gnupg-1.4.23-1
/usr/bin/gpgv2.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-wks-server.exe  : gnupg2-2.2.35-2
/usr/bin/gpg-zip  : gnupg-1.4.23-1


gpg-zip is only in 1, gpgsplit is in 1 *AND* 2, but likely 2 is installed over 
1, and a lot of new stuff is in 2:


$ cygcheck -l gnupg | grep bin/
/usr/bin/gpg-zip
/usr/bin/gpg.exe
/usr/bin/gpgsplit.exe
/usr/bin/gpgv.exe
$ cygcheck -l gnupg2 | grep bin/
/usr/bin/dirmngr-client.exe
/usr/bin/dirmngr.exe
/usr/bin/gpg-agent.exe
/usr/bin/gpg-connect-agent.exe
/usr/bin/gpg-wks-server.exe
/usr/bin/gpg2.exe
/usr/bin/gpgconf.exe
/usr/bin/gpgparsemail.exe
/usr/bin/gpgscm.exe
/usr/bin/gpgsm.exe
/usr/bin/gpgsplit.exe
/usr/bin/gpgtar.exe
/usr/bin/gpgv2.exe
/usr/bin/kbxutil.exe
/usr/bin/watchgnupg.exe
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults

--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry


Re: [Attn Maintainer] json-c

2023-11-24 Thread Marco Atzeri via Cygwin-apps

On 01.10.2023 16:43, Jon Turney via Cygwin-apps wrote:

On 24/09/2023 13:40, Daisuke Fujimura via Cygwin-apps wrote:

Hi,

I previously reported that json-c.pc seems incorrect.
- https://cygwin.com/pipermail/cygwin/2023-August/254350.html





Since Marco isn't available at the moment, I did an NMU with this change.


-   PATH=${B}:${PATH} ctest
+   PATH=${B}:${PATH} ninja_test


Not sure if this part is needed.

But it seems like it indicates a missing piece in cygport. Perhaps there 
should be a src_test() defined by the cmake.cygclass which does 
ninja_test or ctest depending on the generator?




Thanks Jon

I am also updating to 0.17-1

Regards
Marco