Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1617 - sys-apps/tar: remote-tar expects rmt to be in /etc/rmt
Summary: sys-apps/tar: remote-tar expects rmt to be in /etc/rmt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Spider (RETIRED)
URL: http://www.numlock.ch
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-09 13:30 UTC by Daniel Mettler
Modified: 2002-04-12 09:25 UTC (History)
0 users

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 Daniel Mettler 2002-04-09 13:30:09 UTC
`ln -s /usr/sbin/rmt /etc/rmt` does the trick ;) should be done by sys-apps/tar when emerging
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-04-09 20:56:55 UTC
Can we patch remote-tar instead?  Or is this a dumb question?  I haven't used
rmt, to tell you the truth.
Comment 2 Daniel Mettler 2002-04-10 17:23:51 UTC
patching tar to search for e.g. /sbin/rmt:/usr/sbin/rmt:/etc/rmt (or in the path) on remote systems 
would be fine for outgoing connections. however, this would not solve the problem for incoming 
connections as most other boxes will only search for /etc/rmt on our gentoo box. the patch would thus 
have to be applied to all existing tar implementations out there. 
 
admittedly it's nasty to have such a "binary" symlink in /etc and i am not sure what fhs/lsb says 
about this. but i do not know of any other solution. 
 
here's the ebuild patch: 
 
--- tar-1.13.25-r1.ebuild       Wed Mar  6 19:55:22 2002 
+++ tar-1.13.25-r2.ebuild       Wed Apr 10 23:59:59 2002 
@@ -33,6 +33,9 @@ 
        cd ${D} 
        mv usr/lib/misc/rmt usr/sbin/rmt.gnu 
        dosym rmt.gnu /usr/sbin/rmt 
+       # a nasty yet required symlink: 
+       dodir /etc 
+       dosym /usr/sbin/rmt /etc/rmt 
        if [ -z "`use build`" ] 
        then 
                dodoc AUTHORS ChangeLog* COPYING NEWS README* PORTS THANKS 
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-04-11 13:10:05 UTC
Spider: can you fix this for me?
Comment 4 Spider (RETIRED) gentoo-dev 2002-04-12 09:25:24 UTC
Okie. I'm at it, will go for the proposed way.