Package: golang-github-masterminds-sprig
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Dear Maintainer,

There is a build-time test using network access, which will not work
in Debian/Ubuntu package build environments.

In Ubuntu, the attached patch was applied to achieve the following:

 * Resolve FTBFS by skipping test that requires network access

Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic
  APT policy: (500, 'kinetic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-27-generic (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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
diff -Nru 
golang-github-masterminds-sprig-3.2.1/debian/patches/0001-skip-network-test.patch
 
golang-github-masterminds-sprig-3.2.1/debian/patches/0001-skip-network-test.patch
--- 
golang-github-masterminds-sprig-3.2.1/debian/patches/0001-skip-network-test.patch
   1969-12-31 18:00:00.000000000 -0600
+++ 
golang-github-masterminds-sprig-3.2.1/debian/patches/0001-skip-network-test.patch
   2022-06-29 10:04:49.000000000 -0500
@@ -0,0 +1,22 @@
+Description: Skip test that requires network access
+ There is a build-time test in this package that is failing
+ due to a lack of network access. Skip it to enable building
+ of the package
+Author: William 'jawn-smith' Wilson <jawn-sm...@ubuntu.com>
+Last-Update: 2022-06-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: golang-github-masterminds-sprig-3.2.1/network_test.go
+===================================================================
+--- golang-github-masterminds-sprig-3.2.1.orig/network_test.go
++++ golang-github-masterminds-sprig-3.2.1/network_test.go
+@@ -8,6 +8,9 @@
+ )
+ 
+ func TestGetHostByName(t *testing.T) {
++      // This test requires network access, which does not
++      // work in package build environments
++      t.Skip()
+       tpl := `{{"www.google.com" | getHostByName}}`
+ 
+       resolvedIP, _ := runRaw(tpl, nil)
diff -Nru golang-github-masterminds-sprig-3.2.1/debian/patches/series 
golang-github-masterminds-sprig-3.2.1/debian/patches/series
--- golang-github-masterminds-sprig-3.2.1/debian/patches/series 1969-12-31 
18:00:00.000000000 -0600
+++ golang-github-masterminds-sprig-3.2.1/debian/patches/series 2022-06-29 
10:04:49.000000000 -0500
@@ -0,0 +1 @@
+0001-skip-network-test.patch

Reply via email to