From: Sven Hoexter Date: Mon, 16 Aug 2021 08:48:46 +0000 (+0200) Subject: Update upstream source from tag 'upstream/2.0' X-Git-Tag: debian/2.0-1~5 X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fjattach.git;a=commitdiff_plain;h=54ba80f2c210c8003b4ab5c7112ab64063ee8212;hp=91eb05a0b9cfabc7670a4f0f1e2b8083307a2fca Update upstream source from tag 'upstream/2.0' Update to upstream version '2.0' with Debian dir b811dd3a7285a1f76479a940241b3d82528065e1 --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0703a91 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,13 @@ +jattach (1.5-2) unstable; urgency=medium + + * Pass on CPPFLAGS and LDFLAGS as well at build time. + Refreshed in d/patches/do-not-override-CFLAGS + * Source-only upload to unstable to allow testing migration. + + -- Sven Hoexter Fri, 13 Sep 2019 16:52:23 +0200 + +jattach (1.5-1) unstable; urgency=medium + + * Initial release (Closes: #939577) + + -- Sven Hoexter Thu, 22 Aug 2019 17:33:50 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b17c49e --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: jattach +Section: java +Priority: optional +Maintainer: Sven Hoexter +Build-Depends: debhelper-compat (=12) +Standards-Version: 4.4.0 +Homepage: https://github.com/apangin/jattach +Vcs-Browser: https://git.sven.stormbind.net/?p=sven/jattach.git +Vcs-Git: https://git.sven.stormbind.net/jattach.git + +Package: jattach +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: JVM Dynamic Attach utility all in one jmap jstack jcmd jinfo + jattach is a utility implementing commands for the JVM Dynamic Attach + mechanism. Instead of installing a complete JDK you can use this small + utility to query information from your running JVM. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..43de908 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: jattach +Source: https://github.com/apangin/jattach/releases + +Files: * +Copyright: 2016-2019 Andrei Pangin +License: Apache + +Files: debian/* +Copyright: 2019 Sven Hoexter +License: Apache + +License: Apache + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the full text of the Apache 2.0 License + can be found in the file `/usr/share/common-licenses/Apache-2.0'. \ No newline at end of file diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..0b11bef --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +/usr/bin \ No newline at end of file diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..ed9617c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +pristine-tar = True + +[buildpackage] +ignore-new = True \ No newline at end of file diff --git a/debian/jattach.1 b/debian/jattach.1 new file mode 100644 index 0000000..22335f9 --- /dev/null +++ b/debian/jattach.1 @@ -0,0 +1,56 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2019-2020 Sven Hoexter , +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH JATTACH 1 "February 28 2020" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +jattach \- dynamc attach utility for the jvm +.SH SYNOPSIS +.B jattach +.RI "pid [load|properties|agentProperties|datadump|threaddump|dumpheap|inspectheap|setflag|printflag|jcmd] [args]" +.SH DESCRIPTION +jattach is an all in one jamp, jstack, jcmd, jinfo implementation as a tiny single C program. +.SH OPTIONS +.B load +load agent library +.PP +.B properties +print system properties +.PP +.B agentProperties +print agent properties +.PP +.B datadump +show heap and thread summary +.PP +.B threaddump +dump all stack traces (like jstack) +.PP +.B dumpheap mydumpfile.hprof +dump heap (like jmap -dump:live,format=b) +.PP +.B inspectheap +create a heap histrogram (like jmap -histo) +.PP +.B setflag +modify manageable JVM flag +.PP +.B printflag +print JVM flag +.PP +.B jcmd +execute jcmd command diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..2431ec9 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/jattach.1 diff --git a/debian/patches/do-not-override-CFLAGS b/debian/patches/do-not-override-CFLAGS new file mode 100644 index 0000000..50774fc --- /dev/null +++ b/debian/patches/do-not-override-CFLAGS @@ -0,0 +1,27 @@ +Description: do not override CFLAGS + By default the Makefile ignores the CFLAGS as + exported by dh. +Author: Sven Hoexter + +Index: jattach/Makefile +=================================================================== +--- jattach.orig/Makefile ++++ jattach/Makefile +@@ -16,7 +16,7 @@ else + SOURCES=$(RPM_ROOT)/SOURCES + SPEC_FILE=jattach.spec + CC=gcc +- CFLAGS=-O2 ++ CFLAGS ?= -O2 + JATTACH_EXE=jattach + endif + endif +@@ -27,7 +27,7 @@ build: + mkdir -p build + + build/jattach: src/jattach_posix.c +- $(CC) $(CFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^ ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^ + + build/jattach.exe: src/jattach_windows.c + $(CL) $(CFLAGS) /DJATTACH_VERSION=\"$(JATTACH_VERSION)\" /Fobuild/jattach.obj /Fe$@ $^ advapi32.lib /link /SUBSYSTEM:CONSOLE,5.02 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b96a296 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +do-not-override-CFLAGS diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b959739 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +%: + dh $@ + +override_dh_auto_install: + install --mode=755 build/jattach debian/jattach/usr/bin/jattach diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..169ec16 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +https://github.com/apangin/jattach/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate