davdunc / awscli-2-rpm

Bundling for the AWS CLI v2
0 stars 1 forks source link

Tests failing on awscli build 2.9.4 #51

Open davdunc opened 1 year ago

davdunc commented 1 year ago

RPM build failure on 2.9.4

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.k8gKVC (%check) error: File not found by glob: rpmbuild/RPMS/x86_64/awscli-2*.rpm make: *** [Makefile:34: awscli-2] Error 1

Conan-Kudo commented 1 year ago

It looks like here the failure is caused by the deprecation warning being emitted. Can we get rid of or replace the import cgi call in awscli.botocore.utils?

davdunc commented 1 year ago
$ grep -ir "import cgi" rpmbuild/BUILD/aws-cli-2.9.4/* 
rpmbuild/BUILD/aws-cli-2.9.4/awscli/botocore/utils.py:import cgi
rpmbuild/BUILD/aws-cli-2.9.4/build/unpacked_wheel/awscli/botocore/utils.py:import cgi
davdunc commented 1 year ago

Found the following related commit https://github.com/boto/botocore/pull/2794/commits/e891fa05caa8c6ec9d016b0207554e01e14164f5