Bug 200720 - [NEW PORT] sysutils/reptyr: Reparent a running program to a new terminal
Summary: [NEW PORT] sysutils/reptyr: Reparent a running program to a new terminal
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords: feature, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-06-08 23:42 UTC by Andrey Cherkashin
Modified: 2015-07-18 01:12 UTC (History)
2 users (show)

See Also:


Attachments
shar archive (831.34 KB, text/plain)
2015-06-08 23:42 UTC, Andrey Cherkashin
no flags Details
Proper shar file (2.19 KB, text/plain)
2015-06-08 23:43 UTC, Andrey Cherkashin
no flags Details
Build log (12.17 KB, text/plain)
2015-06-11 02:10 UTC, Andrey Cherkashin
no flags Details
Fiex shar with Makefile that passes portlint (2.42 KB, text/plain)
2015-07-02 22:31 UTC, Andrey Cherkashin
no flags Details
Fixes build with BASH option. (2.18 KB, application/mbox)
2015-07-14 05:20 UTC, Andrey Cherkashin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherkashin 2015-06-08 23:42:34 UTC
Created attachment 157551 [details]
shar archive

"reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don't want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home."
Comment 1 Andrey Cherkashin 2015-06-08 23:43:51 UTC
Created attachment 157552 [details]
Proper shar file
Comment 2 Andrey Cherkashin 2015-06-11 02:10:16 UTC
Created attachment 157626 [details]
Build log
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2015-07-02 05:20:34 UTC
Pending changes based on review feedback provided on IRC

Please also *attach* portlint -AC output along with changes
Comment 4 Andrey Cherkashin 2015-07-02 22:31:23 UTC
Created attachment 158274 [details]
Fiex shar with Makefile that passes portlint
Comment 5 Andrey Cherkashin 2015-07-02 22:32:03 UTC
andoriyu at beast in ~/Dev/InfinityCode/freebsd-ports/sysutils/reptyr (master)
$ portlint -AC
looks fine.
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-14 03:47:50 UTC
To test the build, I had to adapt a few things in the Makefile. See 

http://people.freebsd.org/~pi/logs/reptyr.tgz

But still: If the port is built in poudriere, it fails because for
whatever reason, the BASHCOMPDIR in the Makefile is evaluated as /etc/bash_completion.d and not /usr/local/share/bash-completion/completions.

See http://people.freebsd.org/~pi/logs/sysutils__reptyr-*

It will probably only build if the BASHCOMPDIR in the Makefile is
somehow modified to fix this. Can you please provide such a patch ?
Comment 7 Andrey Cherkashin 2015-07-14 04:42:42 UTC
(In reply to Kurt Jaeger from comment #6)
Weird, it was working on my poudriere, I will take a look what's up.
Comment 8 Andrey Cherkashin 2015-07-14 05:20:49 UTC
Created attachment 158733 [details]
Fixes build with BASH option.

- Patch original Makefile to install bash completion into correct directory
Comment 9 commit-hook freebsd_committer freebsd_triage 2015-07-17 18:58:02 UTC
A commit references this bug:

Author: pi
Date: Fri Jul 17 18:57:45 UTC 2015
New revision: 392394
URL: https://svnweb.freebsd.org/changeset/ports/392394

Log:
  New port: sysutils/reptyr

  reptyr is a utility for taking an existing running program and
  attaching it to a new terminal. Started a long-running process over
  ssh, but have to leave and don't want to interrupt it? Just start
  a screen, use reptyr to grab it, and then kill the ssh session and
  head on home.

  WWW: http://github.com/nelhage/reptyr

  PR:		200720
  Submitted by:	 Andrey Cherkashin <andoriyu@gmail.com>

Changes:
  head/sysutils/Makefile
  head/sysutils/reptyr/
  head/sysutils/reptyr/Makefile
  head/sysutils/reptyr/distinfo
  head/sysutils/reptyr/files/
  head/sysutils/reptyr/files/patch-Makefile
  head/sysutils/reptyr/pkg-descr
  head/sysutils/reptyr/pkg-plist
Comment 10 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-17 18:58:27 UTC
Committed, thanks!
Comment 11 commit-hook freebsd_committer freebsd_triage 2015-07-18 01:12:37 UTC
A commit references this bug:

Author: pi
Date: Sat Jul 18 01:12:14 UTC 2015
New revision: 392402
URL: https://svnweb.freebsd.org/changeset/ports/392402

Log:
  sysutils/reptyr: fix manual page location

  PR:		200720
  Submitted by:	makc

Changes:
  head/sysutils/reptyr/Makefile
  head/sysutils/reptyr/files/patch-Makefile
  head/sysutils/reptyr/pkg-plist