Bug 242381

Summary: misc/dive: Unbreak on aarch64
Product: Ports & Packages Reporter: Dmitri Goutnik <dmgk>
Component: Individual Port(s)Assignee: Dmitri Goutnik <dmgk>
Status: Closed FIXED    
Severity: Affects Only Me CC: yuri
Priority: --- Flags: yuri: maintainer-feedback+
Version: Latest   
Hardware: arm64   
OS: Any   
Bug Depends on:    
Bug Blocks: 242312    
Attachments:
Description Flags
dive-0.8.0_2.patch yuri: maintainer-approval+

Description Dmitri Goutnik freebsd_committer 2019-12-02 18:03:46 UTC
Created attachment 209621 [details]
dive-0.8.0_2.patch

From http://thunderx1.nyi.freebsd.org/data/head-arm64-default/p518178_s355024/logs/errors/dive-0.8.0_1.log :

===>  Building dive from .
# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/cap_freebsd.go:18:23: undefined: CAP_RIGHTS_VERSION_00
vendor/golang.org/x/sys/unix/cap_freebsd.go:19:23: undefined: CAP_RIGHTS_VERSION_00
vendor/golang.org/x/sys/unix/cap_freebsd.go:46:21: undefined: CapRights
vendor/golang.org/x/sys/unix/cap_freebsd.go:50:24: undefined: CapRights
vendor/golang.org/x/sys/unix/cap_freebsd.go:55:27: undefined: CapRights
vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: undefined: CapRights
vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12:6: missing function body
vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13:6: missing function body
vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14:6: missing function body
vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15:6: missing function body
vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: too many errors

Unbreak by updating golang.org/x/sys to 33540a1f6037 which adds support for freebsd/arm64.

Tested on 12.1-STABLE/arm64 and 12.1-RELEASE/amd64.
Comment 1 commit-hook freebsd_committer 2019-12-02 19:46:35 UTC
A commit references this bug:

Author: dmgk
Date: Mon Dec  2 19:45:39 UTC 2019
New revision: 518870
URL: https://svnweb.freebsd.org/changeset/ports/518870

Log:
  misc/dive: Unbreak on aarch64

  ===>  Building dive from .
  # golang.org/x/sys/unix
  vendor/golang.org/x/sys/unix/cap_freebsd.go:18:23: undefined: CAP_RIGHTS_VERSION_00
  vendor/golang.org/x/sys/unix/cap_freebsd.go:19:23: undefined: CAP_RIGHTS_VERSION_00
  vendor/golang.org/x/sys/unix/cap_freebsd.go:46:21: undefined: CapRights
  vendor/golang.org/x/sys/unix/cap_freebsd.go:50:24: undefined: CapRights
  vendor/golang.org/x/sys/unix/cap_freebsd.go:55:27: undefined: CapRights
  vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: undefined: CapRights
  vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12:6: missing function body
  vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13:6: missing function body
  vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14:6: missing function body
  vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15:6: missing function body
  vendor/golang.org/x/sys/unix/cap_freebsd.go:90:29: too many errors

  Unbreak by updating golang.org/x/sys to 33540a1f6037 which adds support for
  freebsd/arm64.

  PR:		242381
  Approved by:	yuri (maintainer)

Changes:
  head/misc/dive/Makefile
  head/misc/dive/distinfo