Bug 222660 - [PATCH] [NEW PORT] java/jattach: JVM dynamic attach tool
Summary: [PATCH] [NEW PORT] java/jattach: JVM dynamic attach tool
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tobias Kortkamp
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-09-28 08:45 UTC by Michael Zhilin
Modified: 2017-10-27 15:52 UTC (History)
1 user (show)

See Also:


Attachments
SVN patch (3.68 KB, patch)
2017-09-28 08:45 UTC, Michael Zhilin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zhilin freebsd_committer freebsd_triage 2017-09-28 08:45:09 UTC
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.
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2017-10-27 15:52:54 UTC
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.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-10-27 15:52:57 UTC
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