Created attachment 186778 [details] SVN patch Hi, Here is port of jattach tool: https://github.com/apangin/jattach This tool is fast implementation of OpenJDK routines like jstack & jmap and written purely in C. Portlint is OK. make install/deinstall is OK, but I didn't porttest due to lack of working poudriere on my machine right now. SVN patch is attached.
Committed with some changes. Thanks! + ... ${STAGEDIR}/${LOCALBASE}/bin/jattach This is wrong. LOCALBASE is where ports get their dependencies from. PREFIX is where they install their own files. ++ifneq ($(findstring FreeBSD,$(UNAME_S)),) ++ CC=cc ++ CFLAGS=-O2 I removed CC and CFLAGS here. Both are inherited from the ports framework and should not be set directly like this. This way they're globally overridable.
A commit references this bug: Author: tobik Date: Fri Oct 27 15:52:11 UTC 2017 New revision: 453007 URL: https://svnweb.freebsd.org/changeset/ports/453007 Log: New port: java/jattach The utility to send commands to remote JVM via Dynamic Attach mechanism. All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program. No installed JDK required, works with just JRE. This is the lightweight native version of HotSpot Attach API https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/ WWW: https://github.com/apangin/jattach PR: 222660 Submitted by: Michael Zhilin <mizhka@gmail.com> Changes: head/java/Makefile head/java/jattach/ head/java/jattach/Makefile head/java/jattach/distinfo head/java/jattach/files/ head/java/jattach/files/patch-Makefile head/java/jattach/pkg-descr