Package: golang-codegangsta-cli
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch

Dear Maintainer,

golang-codegangsta-cli is FTBFS with Go 1.18

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


  * Fix FTBFS with Go 1.18


Thanks for considering the patch.


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

Kernel: Linux 5.15.0-22-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-codegangsta-cli-1.18.0/debian/patches/build-with-golang-1.18.patch 
golang-codegangsta-cli-1.18.0/debian/patches/build-with-golang-1.18.patch
--- golang-codegangsta-cli-1.18.0/debian/patches/build-with-golang-1.18.patch   
1969-12-31 18:00:00.000000000 -0600
+++ golang-codegangsta-cli-1.18.0/debian/patches/build-with-golang-1.18.patch   
2022-03-16 11:15:14.000000000 -0500
@@ -0,0 +1,21 @@
+Index: golang-codegangsta-cli-1.18.0/app_test.go
+===================================================================
+--- golang-codegangsta-cli-1.18.0.orig/app_test.go
++++ golang-codegangsta-cli-1.18.0/app_test.go
+@@ -363,7 +363,6 @@
+ }
+ 
+ func TestApp_ParseSliceFlags(t *testing.T) {
+-      var parsedOption, firstArg string
+       var parsedIntSlice []int
+       var parsedStringSlice []string
+ 
+@@ -377,8 +376,6 @@
+               Action: func(c *Context) error {
+                       parsedIntSlice = c.IntSlice("p")
+                       parsedStringSlice = c.StringSlice("ip")
+-                      parsedOption = c.String("option")
+-                      firstArg = c.Args().First()
+                       return nil
+               },
+       }
diff -Nru golang-codegangsta-cli-1.18.0/debian/patches/series 
golang-codegangsta-cli-1.18.0/debian/patches/series
--- golang-codegangsta-cli-1.18.0/debian/patches/series 2018-12-01 
13:10:19.000000000 -0600
+++ golang-codegangsta-cli-1.18.0/debian/patches/series 2022-03-16 
11:14:24.000000000 -0500
@@ -0,0 +1 @@
+build-with-golang-1.18.patch

Reply via email to