Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian....@packages.debian.org
Usertags: pu
X-Debbugs-Cc: Debian Go Packaging Team <team+pkg...@tracker.debian.org>

  * Fix building on newer 4.19 kernels. (Closes: #1002231)

Test-only change to fix FTBFS caused by kernel change already
backported to 4.19.
diff -Nru golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/changelog 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/changelog
--- golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/changelog     
2018-11-20 19:01:05.000000000 +0200
+++ golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/changelog     
2022-08-25 16:27:51.000000000 +0300
@@ -1,3 +1,10 @@
+golang-github-pkg-term (0.0~git20181116.27bbf2e-1+deb10u1) buster; 
urgency=medium
+
+  * Non-maintainer upload.
+  * Fix building on newer 4.19 kernels. (Closes: #1002231)
+
+ -- Adrian Bunk <b...@debian.org>  Thu, 25 Aug 2022 16:27:51 +0300
+
 golang-github-pkg-term (0.0~git20181116.27bbf2e-1) unstable; urgency=medium
 
   * Initial release (Closes: #914209)
diff -Nru 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/0002-enotty-newer-kernels.patch
 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/0002-enotty-newer-kernels.patch
--- 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/0002-enotty-newer-kernels.patch
       1970-01-01 02:00:00.000000000 +0200
+++ 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/0002-enotty-newer-kernels.patch
       2022-08-25 16:27:51.000000000 +0300
@@ -0,0 +1,22 @@
+Description: As of torvalds/linux@1b8b20868a6d64cfe8174a21b25b74367bdf0560,
+ unsupported ioctls now return ENOTTY instead of EINVAL. This change was
+ also backported to the 5.10 stable branch, so it's a problem on the
+ current release of many Linux distros now.
+Forwarded: https://github.com/pkg/term/pull/71
+Author: Stephen Gelman <ssg...@debian.org>
+Last-Update: 2022-01-13
+---
+This patch header follows DEP-4: http://dep.debian.net/deps/dep3/
+Index: golang-github-pkg-term-0.0~git20181116.27bbf2e/termios/termios_test.go
+===================================================================
+--- golang-github-pkg-term-0.0~git20181116.27bbf2e.orig/termios/termios_test.go
++++ golang-github-pkg-term-0.0~git20181116.27bbf2e/termios/termios_test.go
+@@ -165,7 +166,7 @@ func checktty(t *testing.T, err error) {
+ 
+       // some ioctls fail against char devices if they do not
+       // support a particular feature
+-      if (runtime.GOOS == "darwin" && err == syscall.ENOTTY) || (runtime.GOOS 
== "linux" && err == syscall.EINVAL) {
++      if ((runtime.GOOS == "darwin" || runtime.GOOS == "linux") && err == 
syscall.ENOTTY) || (runtime.GOOS == "linux" && err == syscall.EINVAL) {
+               t.Skip(err)
+       }
+ }
diff -Nru golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/series 
golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/series
--- golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/series        
1970-01-01 02:00:00.000000000 +0200
+++ golang-github-pkg-term-0.0~git20181116.27bbf2e/debian/patches/series        
2022-08-25 16:27:34.000000000 +0300
@@ -0,0 +1 @@
+0002-enotty-newer-kernels.patch

Reply via email to