Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96363 - app-arch/tar: avoid collision with non-gnu default tar
Summary: app-arch/tar: avoid collision with non-gnu default tar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 101219
  Show dependency tree
 
Reported: 2005-06-17 04:10 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
2 users (show)

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


Attachments
Ebuild patch (tar-ebuild.patch,1.92 KB, patch)
2005-06-17 04:10 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Ebuild patch (tar-nongnu.patch,1.99 KB, patch)
2005-08-03 09:50 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-17 04:10:33 UTC
As Gentoo/FreeBSD uses app-arch/bsdtar as default tar application, the attached patch applied over current ebuild make tar be installed as 'gtar' (thus removing the need for /usr/bin/gtar symlink) and symlinks it to non-g prefixed on GNU userland system.

This also makes simpler a future transition to a configurable /bin/tar symlink.

Note: I've used ${USERLAND} to check to avoid QA notices, can be replaced with use use-expanded-var if anyone prefers.

Thanks, Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-17 04:10:54 UTC
Created attachment 61380 [details, diff]
Ebuild patch
Comment 2 SpanKY gentoo-dev 2005-06-17 20:34:04 UTC
err no, this is not what i want ...

on a GNU system, the only thing that should have a g is gtar
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 09:50:39 UTC
Created attachment 64996 [details, diff]
Ebuild patch

This should be better
Comment 4 SpanKY gentoo-dev 2005-08-03 11:52:57 UTC
i guess you're just going to ignore comment #2 ;)
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 11:58:23 UTC
You looked at the actual result of the patch? :) 
It's 1:1 the original bug tar -> gtar symlink. 
 
Comment 6 SpanKY gentoo-dev 2005-08-03 13:07:45 UTC
ok, i missed the last for loop which renames everything ... thats kind of ugly :P

did you double check to make sure the 'g' prefix wasnt recorded in the
binary/manpages ?
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-03 13:16:34 UTC
Yep, binaries doesn't get data about the prefix as far as I could see, and 
manpages are always static (just get renamed in case you set the prefix, and 
it's not the case for tar, though). 
 
Comment 8 SpanKY gentoo-dev 2005-08-11 21:18:56 UTC
sync up and try current 1.15.1
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-12 01:42:20 UTC
I've added the rm -f line to remove charset.alias (it gets created just for  
G/FBSD and G/OSX-Darwin, and on both of them it makes no sense on tar), for  
the rest works fine. 
Thanks