From: Antoine Jacoutot Subject: Re: NEW: AWS CLIv2 sysutils/awscli/v2 and devel/py-awscrt To: Rafael Sadowski Cc: ports@openbsd.org, Joel Knight Date: Sat, 20 Sep 2025 18:02:46 +0200 On Sat, Sep 20, 2025 at 02:09:29PM +0200, Rafael Sadowski wrote: > Hi All, > > Thanks to the excellent work of Joel Knight [1], I would like to > propose importing awscli v2 in addition to v1. > > The idea is simple. sysutils/awscli will be moved to > sysutils/awscli/v1 and v2 will be added. Both ports will receive > an "@option is-branch". > > The result is the following: > > env TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all doas pkg_add awscli > Ambiguous: choose package for awscli > a 0: > 1: awscli-1.42.35 > 2: awscli-2.28.4 > > Why v2 at all? AWS now only generates v2 key/secret pairs by default. > > Explaining to someone that they should provide you with v1 keys > because you use OpenBSD is painful and time-consuming. I want to > avoid this. > > The attachment contains the following structure, including a new > dependency. - Wouldn't it be simpler to have awscli and awscli2 without putting everything below the same structure? - if not, then you could factorize post-install in Makefile.inc - MODPY_FLAVOR does not exist anymore - MODPY_DISTV? is commented and can be removed - shouldn't these ports conflict? - I am really not a fan to the BUILD_DEPENDS=${RUN_DEPENDS} construct; is everything needed to run is also really needed for building? > sysutils/awscli > sysutils/awscli/Makefile > sysutils/awscli/Makefile.inc > sysutils/awscli/v1 > sysutils/awscli/v1/Makefile > sysutils/awscli/v1/distinfo > sysutils/awscli/v1/pkg > sysutils/awscli/v1/pkg/DESCR > sysutils/awscli/v1/pkg/PLIST > sysutils/awscli/v2 > sysutils/awscli/v2/Makefile > sysutils/awscli/v2/distinfo > sysutils/awscli/v2/patches > sysutils/awscli/v2/patches/patch-pyproject_toml > sysutils/awscli/v2/pkg > sysutils/awscli/v2/pkg/DESCR > sysutils/awscli/v2/pkg/PLIST > devel/py-awscrt > devel/py-awscrt/Makefile > devel/py-awscrt/distinfo > devel/py-awscrt/patches > devel/py-awscrt/patches/patch-setup_py > devel/py-awscrt/pkg > devel/py-awscrt/pkg/DESCR > devel/py-awscrt/pkg/PLIST > > OK? > > 1: https://github.com/knightjoel/awscliv2-on-openbsd -- Antoine