diff -Nru golang-github-coreos-gexpect-0.1.1/debian/changelog golang-github-coreos-gexpect-0.1.1/debian/changelog --- golang-github-coreos-gexpect-0.1.1/debian/changelog 2018-04-26 05:04:10.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/changelog 2020-10-30 04:58:45.000000000 +0000 @@ -1,3 +1,27 @@ +golang-github-coreos-gexpect (0.1.1-2) unstable; urgency=medium + + [ Debian Janitor (Jelmer Vernooij) ] + * Bump debhelper from old 11 to 12. + Fixes: lintian: package-uses-old-debhelper-compat-version + * Set debhelper-compat version in Build-Depends. + Fixes: lintian: uses-debhelper-compat-file + * Set upstream metadata fields: Repository, Repository-Browse. + Fixes: lintian: upstream-metadata-file-is-missing + + [ Anthony Fok ] + * debian/gbp.conf: Set debian-branch to debian/sid for DEP-14 conformance + * Update Maintainer email address to team+pkg-go@tracker.debian.org + * Bump debhelper dependency to "Build-Depends: debhelper-compat (= 13)" + * Bump Standards-Version to 4.5.0 (no change) + * Add "Rules-Requires-Root: no" to debian/control + * Depend and import "github.com/creack/pty" (>= 1.1.10) + instead of the now archived "github.com/kr/pty". This is to fix + "Setctty set but Ctty not valid in child" error with Go 1.15 and up. + See https://github.com/creack/pty/issues/96 for details. (Closes: #971165) + * Add myself to the list of Uploaders + + -- Anthony Fok Thu, 29 Oct 2020 22:58:45 -0600 + golang-github-coreos-gexpect (0.1.1-1) unstable; urgency=medium * Team upload. diff -Nru golang-github-coreos-gexpect-0.1.1/debian/compat golang-github-coreos-gexpect-0.1.1/debian/compat --- golang-github-coreos-gexpect-0.1.1/debian/compat 2018-04-26 05:03:12.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -11 diff -Nru golang-github-coreos-gexpect-0.1.1/debian/control golang-github-coreos-gexpect-0.1.1/debian/control --- golang-github-coreos-gexpect-0.1.1/debian/control 2018-04-26 05:03:12.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/control 2020-10-30 04:58:30.000000000 +0000 @@ -1,26 +1,28 @@ Source: golang-github-coreos-gexpect -Maintainer: Debian Go Packaging Team +Maintainer: Debian Go Packaging Team Uploaders: Dmitry Smirnov , - Tim Potter + Tim Potter , + Anthony Fok Section: devel Testsuite: autopkgtest-pkg-go Priority: optional -Build-Depends: debhelper (>= 11), +Build-Depends: debhelper-compat (= 13), dh-golang (>= 1.17~), golang-any, - golang-github-kballard-go-shellquote-dev, - golang-github-kr-pty-dev -Standards-Version: 4.1.4 + golang-github-creack-pty-dev (>= 1.1.10), + golang-github-kballard-go-shellquote-dev +Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-coreos-gexpect Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-coreos-gexpect.git Homepage: https://github.com/coreos/gexpect +Rules-Requires-Root: no XS-Go-Import-Path: github.com/coreos/gexpect Package: golang-github-coreos-gexpect-dev Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, - golang-github-kballard-go-shellquote-dev, - golang-github-kr-pty-dev + golang-github-creack-pty-dev (>= 1.1.10), + golang-github-kballard-go-shellquote-dev Description: library for starting and controlling subprocesses Pure golang expect library, for easily starting and controlling subprocesses. diff -Nru golang-github-coreos-gexpect-0.1.1/debian/gbp.conf golang-github-coreos-gexpect-0.1.1/debian/gbp.conf --- golang-github-coreos-gexpect-0.1.1/debian/gbp.conf 2018-04-26 03:08:00.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/gbp.conf 2020-10-30 04:16:13.000000000 +0000 @@ -1,2 +1,4 @@ [DEFAULT] +debian-branch = debian/sid +dist = DEP14 pristine-tar = True diff -Nru golang-github-coreos-gexpect-0.1.1/debian/patches/001-migrate-to-golang-github-creack-pty-dev.patch golang-github-coreos-gexpect-0.1.1/debian/patches/001-migrate-to-golang-github-creack-pty-dev.patch --- golang-github-coreos-gexpect-0.1.1/debian/patches/001-migrate-to-golang-github-creack-pty-dev.patch 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/patches/001-migrate-to-golang-github-creack-pty-dev.patch 2020-10-30 04:55:18.000000000 +0000 @@ -0,0 +1,44 @@ +Description: Migrate from github.com/kr/pty to github.com/creack/pty + Fixes "Setctty set but Ctty not valid in child" error with Go 1.15 and up. + See https://github.com/creack/pty/issues/96 for details. +Author: Anthony Fok +Origin: vendor +Bug-Debian: https://bugs.debian.org/971165 +Forwarded: https://github.com/coreos/gexpect/pull/8 +Last-Update: 2020-10-29 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/gexpect.go ++++ b/gexpect.go +@@ -13,8 +13,8 @@ + "time" + "unicode/utf8" + ++ "github.com/creack/pty" + shell "github.com/kballard/go-shellquote" +- "github.com/kr/pty" + ) + + var ( +@@ -387,7 +387,7 @@ + for i := 0; i < n; i++ { + if chunk[i] == delim { + if len(chunk) > i+1 { +- expect.buf.PutBack(chunk[i+1:n]) ++ expect.buf.PutBack(chunk[i+1 : n]) + } + return join, nil + } else { +--- a/README.md ++++ b/README.md +@@ -59,6 +59,6 @@ + + ## Credits + +- github.com/kballard/go-shellquote +- github.com/kr/pty +- KMP Algorithm: "http://blog.databigbang.com/searching-for-substrings-in-streams-a-slight-modification-of-the-knuth-morris-pratt-algorithm-in-haxe/" +\ No newline at end of file ++ github.com/creack/pty ++ github.com/kballard/go-shellquote ++ KMP Algorithm: "http://blog.databigbang.com/searching-for-substrings-in-streams-a-slight-modification-of-the-knuth-morris-pratt-algorithm-in-haxe/" diff -Nru golang-github-coreos-gexpect-0.1.1/debian/patches/series golang-github-coreos-gexpect-0.1.1/debian/patches/series --- golang-github-coreos-gexpect-0.1.1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/patches/series 2020-10-30 04:27:47.000000000 +0000 @@ -0,0 +1 @@ +001-migrate-to-golang-github-creack-pty-dev.patch diff -Nru golang-github-coreos-gexpect-0.1.1/debian/upstream/metadata golang-github-coreos-gexpect-0.1.1/debian/upstream/metadata --- golang-github-coreos-gexpect-0.1.1/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-coreos-gexpect-0.1.1/debian/upstream/metadata 2020-10-30 04:13:25.000000000 +0000 @@ -0,0 +1,2 @@ +Repository: https://github.com/coreos/gexpect.git +Repository-Browse: https://github.com/coreos/gexpect