Package: dh-golang Version: 1.62 Severity: normal Tags: patch X-Debbugs-Cc: nozzy123no...@gmail.com
Dear Maintainer, I have investigated the bug report #1049392 and I have discovered the cause of the problem. It seems that when the dh-golang package is installed, it appends some unnecessary Go environment variables that affect the whole dh command. This happens because the dh-golang plugin modifies the environment variables for Go when it is invoked by the dh command to check the suitability of the build system. This also affects the processing of override_* statements in debian/rules incorrectly. I think this behavior is likely incorrect and inconsistent with the plugin policy of dh, as other dh plugins do not alter the environment variables of the dh command when just checking the build system. The environment variables should be modified by the commands that are directly invoked by dh, not for the override_* statements processed by dh. To fix this issue, I have prepared a patch that changes the behavior of the dh-golang plugin. The patch is suggested below. https://salsa.debian.org/go-team/packages/dh-golang/-/merge_requests/21 Please consider applying this patch and let me know if you have any comments or questions. Thank you for your time and consideration. Takahide Nojima. -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.5.0-3-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dh-golang depends on: ii debhelper 13.11.7 ii libdpkg-perl 1.22.1 ii perl 5.36.0-9 dh-golang recommends no packages. dh-golang suggests no packages. -- no debconf information