Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357981 - New ebuild for app-misc/reptyr-0.2
Summary: New ebuild for app-misc/reptyr-0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Default Assignee for New Packages
URL: https://github.com/nelhage/reptyr
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2011-03-08 21:39 UTC by Michael Orlitzky
Modified: 2011-06-02 00:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2011-03-08 21:39:34 UTC
Reptyr is a new utility to switch a running program to a new terminal.
Comment 1 Michael Orlitzky gentoo-dev 2011-03-08 21:53:10 UTC
Committed to Sunrise, waiting for review:

  http://overlays.gentoo.org/proj/sunrise/browser/sunrise/app-misc/reptyr

+EBUILD, InOverlay, please.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-25 15:44:56 UTC
Hello, I'd like to add this to the main portage tree but I can't get it to work, which seems odd to me because the usage is simple. Can you give me a test case please? I've tried reptyr'ing emerge/ebuild commands and just see something like this:

% reptyr 4863
[+] Allocated scratch page: b744c000
[+] Looking up fds for tty in child.
[+] Resolved child tty: 34816
%

And the job in the other terminal goes to the background. (This is being done through 2 independent ssh sessions.
Comment 3 Michael Orlitzky gentoo-dev 2011-04-25 16:12:08 UTC
Attaching to certain types of processes doesn't work so well (this is known, mentioned in the man page), but I can attach to an emerge. Well, it worked once, at least. In one TTY,

  $ sudo emerge -1 glibc
  Password: 

  These are the packages that would be merged, in order:

  Calculating dependencies... done!
  [ebuild   R   ] sys-libs/glibc-2.11.3  USE="hardened -debug -gd -glibc-omitfp 
  (-multilib) -nls -profile (-selinux) -vanilla" 0 kB

  Total: 1 package (1 reinstall), Size of downloads: 0 kB
  ...

And then in another,

  $ ps ax
    ...
    21719 pts/0    S+     0:00 sudo emerge -1 glibc

  $ sudo ./reptyr 21720
  Password: 
  [+] Allocated scratch page: 7f73efd8a000
  [+] Looking up fds for tty in child.
  [+] Resolved child tty: 8800
  [+] Found an alias for the tty: 0
  [+] Found an alias for the tty: 1
  [+] Found an alias for the tty: 2
  [+] Found an alias for the tty: 8
  [+] Opened the new tty in the child: 6
  [+] Target is not a session leader, attempting to setsid.
  [+] Forked a child: 22202
  [+] Did setsid()
  [+] Set the controlling tty
  >>> Unpacking glibc-2.11.3-patches-2.tar.bz2 to /var/tmp/portage/sys-libs
      /glibc-2.11.3/work
    * Applying Gentoo Glibc Patchset 2.11.3-2 ...
    *   0020_all_glibc-tweak-rfc1918-lookup.patch
    ...

I am getting a segfault with v0.2 on my work machine, but git HEAD works. I'm going to send a doc patch and can ask the author to tag another release if that helps.
Comment 4 Tim Harder gentoo-dev 2011-06-02 00:57:45 UTC
Closing since I added the latest 0.3 release to the main tree.