Hello community,

here is the log from the commit of package golang-github-kr-pty for 
openSUSE:Factory checked in at 2017-03-24 02:15:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-kr-pty (Old)
 and      /work/SRC/openSUSE:Factory/.golang-github-kr-pty.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golang-github-kr-pty"

Fri Mar 24 02:15:50 2017 rev:2 rq:477176 version:0.0.0+git20160716.ce7fa45

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/golang-github-kr-pty/golang-github-kr-pty.changes    
    2015-07-24 09:58:25.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.golang-github-kr-pty.new/golang-github-kr-pty.changes
   2017-03-24 02:15:51.533267094 +0100
@@ -1,0 +2,19 @@
+Thu Dec 08 13:02:20 UTC 2016 - [email protected]
+
+- Update to version 0.0.0+git20160716.ce7fa45:
+  * Add support for Power (ppc64, ppc64le) and System z (s390x)
+  * Remove ioctl_* constants on Linux
+  * Remove uintptr(...)
+  * Add support for ARM64
+  * Prevent arm64 file to be compiled anywhere else. Fixed #32.
+  * run: don't override supplied SysProcAttr
+  * Don't attempt to build on windows
+  * Support DragonFly BSD
+  * Reformat pty_dragonfly.go file using gofmt
+
+-------------------------------------------------------------------
+Thu Dec  8 12:59:58 UTC 2016 - [email protected]
+
+- Refactoring based on new packaging proposal
+
+-------------------------------------------------------------------

Old:
----
  pty-0.0.0+git20150511.5cf931e.tar.xz

New:
----
  pty-0.0.0+git20160716.ce7fa45.tar.xz
  rpmlintrc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ golang-github-kr-pty.spec ++++++
--- /var/tmp/diff_new_pack.9S1YPH/_old  2017-03-24 02:15:52.125183344 +0100
+++ /var/tmp/diff_new_pack.9S1YPH/_new  2017-03-24 02:15:52.129182778 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package golang-github-kr-pty
+# spec file for package golang
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,43 +16,50 @@
 #
 
 
-Name:           golang-github-kr-pty
-Version:        0.0.0+git20150511.5cf931e
+%global provider        github
+%global provider_tld    com
+%global project         kr
+%global repo            pty
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path     %{provider_prefix}
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0.0.0+git20160716.ce7fa45
 Release:        0
-Summary:        A Go package for using unix pseudo-terminals
+Summary:        PTY interface for Go
 License:        MIT
-Group:          Development/Languages/Other
-Url:            https://github.com/kr/pty
-Source:         pty-%{version}.tar.xz
+Group:          Development/Languages/Golang
+Url:            https://%{provider_prefix}
+Source0:        %{repo}-%{version}.tar.xz
+Source1:        rpmlintrc
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
 BuildRequires:  golang-packaging
 BuildRequires:  xz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%{go_nostrip}
 %{go_provides}
 
 %description
 Pty is a Go package for using unix pseudo-terminals.
 
-%gosrc_package
-
 %prep
-%setup -q -n pty-%{version}
+%setup -q -n %{repo}-%{version}
 
 %build
-%goprep github.com/kr/pty
-%gobuild
+%goprep %{import_path}
+%gobuild ...
 
 %install
 %goinstall
-
 %gosrc
+%gofilelist
+
+%check
+%gotest %{import_path}...
 
-%files
-%defattr(-,root,root)
-%doc License README.md
-%{go_contribdir}/*
-
-%files source
-%defattr(-,root,root)
-%{go_contribsrcdir}/*
+%files -f file.lst
+%defattr(-,root,root,-)
+%doc README.md License
 
 %changelog

++++++ _service ++++++
--- /var/tmp/diff_new_pack.9S1YPH/_old  2017-03-24 02:15:52.165177684 +0100
+++ /var/tmp/diff_new_pack.9S1YPH/_new  2017-03-24 02:15:52.169177119 +0100
@@ -1,16 +1,17 @@
 <services>
-  <service name="tar_scm" mode="localonly">
-    <param name="url">https://github.com/kr/pty.git</param>
+  <service name="tar_scm" mode="disabled">
+    <param name="url">https://github.com/kr/pty</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
     <param name="versionformat">0.0.0+git%cd.%h</param>
     <param name="revision">master</param>
+    <param name="changesgenerate">enable</param>
   </service>
-  <service name="recompress" mode="localonly">
+  <service name="recompress" mode="disabled">
     <param name="file">pty-*.tar</param>
     <param name="compression">xz</param>
   </service>
-  <service name="set_version" mode="localonly">
+  <service name="set_version" mode="disabled">
     <param name="basename">pty</param>
   </service>
 </services>

++++++ pty-0.0.0+git20150511.5cf931e.tar.xz -> 
pty-0.0.0+git20160716.ce7fa45.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/ioctl.go 
new/pty-0.0.0+git20160716.ce7fa45/ioctl.go
--- old/pty-0.0.0+git20150511.5cf931e/ioctl.go  2015-07-12 12:23:56.000000000 
+0200
+++ new/pty-0.0.0+git20160716.ce7fa45/ioctl.go  2016-07-16 22:46:20.000000000 
+0200
@@ -1,3 +1,5 @@
+// +build !windows
+
 package pty
 
 import "syscall"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/mktypes.bash 
new/pty-0.0.0+git20160716.ce7fa45/mktypes.bash
--- old/pty-0.0.0+git20150511.5cf931e/mktypes.bash      2015-07-12 
12:23:56.000000000 +0200
+++ new/pty-0.0.0+git20160716.ce7fa45/mktypes.bash      2016-07-16 
22:46:20.000000000 +0200
@@ -13,7 +13,7 @@
 $GODEFS types.go |gofmt > ztypes_$GOARCH.go
 
 case $GOOS in
-freebsd)
+freebsd|dragonfly)
        $GODEFS types_$GOOS.go |gofmt > ztypes_$GOOSARCH.go
        ;;
 esac
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/pty_dragonfly.go 
new/pty-0.0.0+git20160716.ce7fa45/pty_dragonfly.go
--- old/pty-0.0.0+git20150511.5cf931e/pty_dragonfly.go  1970-01-01 
01:00:00.000000000 +0100
+++ new/pty-0.0.0+git20160716.ce7fa45/pty_dragonfly.go  2016-07-16 
22:46:20.000000000 +0200
@@ -0,0 +1,76 @@
+package pty
+
+import (
+       "errors"
+       "os"
+       "strings"
+       "syscall"
+       "unsafe"
+)
+
+// same code as pty_darwin.go
+func open() (pty, tty *os.File, err error) {
+       p, err := os.OpenFile("/dev/ptmx", os.O_RDWR, 0)
+       if err != nil {
+               return nil, nil, err
+       }
+
+       sname, err := ptsname(p)
+       if err != nil {
+               return nil, nil, err
+       }
+
+       err = grantpt(p)
+       if err != nil {
+               return nil, nil, err
+       }
+
+       err = unlockpt(p)
+       if err != nil {
+               return nil, nil, err
+       }
+
+       t, err := os.OpenFile(sname, os.O_RDWR, 0)
+       if err != nil {
+               return nil, nil, err
+       }
+       return p, t, nil
+}
+
+func grantpt(f *os.File) error {
+       _, err := isptmaster(f.Fd())
+       return err
+}
+
+func unlockpt(f *os.File) error {
+       _, err := isptmaster(f.Fd())
+       return err
+}
+
+func isptmaster(fd uintptr) (bool, error) {
+       err := ioctl(fd, syscall.TIOCISPTMASTER, 0)
+       return err == nil, err
+}
+
+var (
+       emptyFiodgnameArg fiodgnameArg
+       ioctl_FIODNAME    = _IOW('f', 120, unsafe.Sizeof(emptyFiodgnameArg))
+)
+
+func ptsname(f *os.File) (string, error) {
+       name := make([]byte, _C_SPECNAMELEN)
+       fa := fiodgnameArg{Name: (*byte)(unsafe.Pointer(&name[0])), Len: 
_C_SPECNAMELEN, Pad_cgo_0: [4]byte{0, 0, 0, 0}}
+
+       err := ioctl(f.Fd(), ioctl_FIODNAME, uintptr(unsafe.Pointer(&fa)))
+       if err != nil {
+               return "", err
+       }
+
+       for i, c := range name {
+               if c == 0 {
+                       s := "/dev/" + string(name[:i])
+                       return strings.Replace(s, "ptm", "pts", -1), nil
+               }
+       }
+       return "", errors.New("TIOCPTYGNAME string not NUL-terminated")
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/pty_unsupported.go 
new/pty-0.0.0+git20160716.ce7fa45/pty_unsupported.go
--- old/pty-0.0.0+git20150511.5cf931e/pty_unsupported.go        2015-07-12 
12:23:56.000000000 +0200
+++ new/pty-0.0.0+git20160716.ce7fa45/pty_unsupported.go        2016-07-16 
22:46:20.000000000 +0200
@@ -1,4 +1,4 @@
-// +build !linux,!darwin,!freebsd
+// +build !linux,!darwin,!freebsd,!dragonfly
 
 package pty
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/run.go 
new/pty-0.0.0+git20160716.ce7fa45/run.go
--- old/pty-0.0.0+git20150511.5cf931e/run.go    2015-07-12 12:23:56.000000000 
+0200
+++ new/pty-0.0.0+git20160716.ce7fa45/run.go    2016-07-16 22:46:20.000000000 
+0200
@@ -1,3 +1,5 @@
+// +build !windows
+
 package pty
 
 import (
@@ -18,7 +20,11 @@
        c.Stdout = tty
        c.Stdin = tty
        c.Stderr = tty
-       c.SysProcAttr = &syscall.SysProcAttr{Setctty: true, Setsid: true}
+       if c.SysProcAttr == nil {
+               c.SysProcAttr = &syscall.SysProcAttr{}
+       }
+       c.SysProcAttr.Setctty = true
+       c.SysProcAttr.Setsid = true
        err = c.Start()
        if err != nil {
                pty.Close()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/types_dragonfly.go 
new/pty-0.0.0+git20160716.ce7fa45/types_dragonfly.go
--- old/pty-0.0.0+git20150511.5cf931e/types_dragonfly.go        1970-01-01 
01:00:00.000000000 +0100
+++ new/pty-0.0.0+git20160716.ce7fa45/types_dragonfly.go        2016-07-16 
22:46:20.000000000 +0200
@@ -0,0 +1,17 @@
+// +build ignore
+
+package pty
+
+/*
+#define _KERNEL
+#include <sys/conf.h>
+#include <sys/param.h>
+#include <sys/filio.h>
+*/
+import "C"
+
+const (
+       _C_SPECNAMELEN = C.SPECNAMELEN /* max length of devicename */
+)
+
+type fiodgnameArg C.struct_fiodname_args
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pty-0.0.0+git20150511.5cf931e/util.go 
new/pty-0.0.0+git20160716.ce7fa45/util.go
--- old/pty-0.0.0+git20150511.5cf931e/util.go   2015-07-12 12:23:56.000000000 
+0200
+++ new/pty-0.0.0+git20160716.ce7fa45/util.go   2016-07-16 22:46:20.000000000 
+0200
@@ -1,3 +1,5 @@
+// +build !windows
+
 package pty
 
 import (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pty-0.0.0+git20150511.5cf931e/ztypes_dragonfly_amd64.go 
new/pty-0.0.0+git20160716.ce7fa45/ztypes_dragonfly_amd64.go
--- old/pty-0.0.0+git20150511.5cf931e/ztypes_dragonfly_amd64.go 1970-01-01 
01:00:00.000000000 +0100
+++ new/pty-0.0.0+git20160716.ce7fa45/ztypes_dragonfly_amd64.go 2016-07-16 
22:46:20.000000000 +0200
@@ -0,0 +1,14 @@
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs types_dragonfly.go
+
+package pty
+
+const (
+       _C_SPECNAMELEN = 0x3f
+)
+
+type fiodgnameArg struct {
+       Name      *byte
+       Len       uint32
+       Pad_cgo_0 [4]byte
+}

++++++ rpmlintrc ++++++
# We are preventing the stripping to keep backtraces intact
addFilter("unstripped-binary-or-object")

# Golang doesn't support dynamic linking yet in a proper way
addFilter("statically-linked-binary")

# We are aware of that but shorter names are not possible
addFilter("filename-too-long-for-joliet")

Reply via email to