Package: amazon-ecr-credential-helper Version: 0.2.0-1 Severity: normal Manual invocation of 'debian/rules binary' for the amazon-ecr-credential-helper package fails with the following:
github.com/golang/mock/gomock github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api/mocks github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cache/mocks flag github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login github.com/awslabs/amazon-ecr-credential-helper/ecr-login/mocks mkdir -p bin/local cp obj-/bin/docker-credential-ecr-login bin/local cp: cannot stat 'obj-/bin/docker-credential-ecr-login': No such file or directory debian/rules:17: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 1 make[1]: Leaving directory '/src/amazon-ecr-credential-helper-0.2.0' debian/rules:14: recipe for target 'build' failed make: *** [build] Error 2 The failure occurs in the following line in the override_dh_auto_build recipe because DEB_HOST_GNU_TYPE is never initialized: cp obj-$(DEB_HOST_GNU_TYPE)/bin/docker-credential-ecr-login bin/local Per dpkg-architecture(1): Usage in debian/rules The environment variables set by dpkg-architecture are passed to debian/rules as make variables (see make documentation). However, you should not rely on them, as this breaks manual invocation of the script. Instead, you should always initialize them using dpkg-architecture with the -q option. Adding a line line the following to debian/rules should fix this: DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) Although I think that you should be using DEB_TARGET_GNU_TYPE, rather than DEB_HOST_GNU_TYPE, in order to properly support cross-compilation. I'm not 100% sure of that, though. -- System Information: Debian Release: 9.9 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.15.0-50-generic (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: unable to detect