Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33119 - /usr/bin/tar: sys-apps/star conflicts with sys-apps/tar
Summary: /usr/bin/tar: sys-apps/star conflicts with sys-apps/tar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Martin (RETIRED)
URL:
Whiteboard:
Keywords:
: 60030 66855 69117 69504 70490 71518 80859 82130 89854 94481 95618 96298 127196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-09 22:57 UTC by Wolfram Schlich (RETIRED)
Modified: 2006-03-22 09:43 UTC (History)
15 users (show)

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


Attachments
Reposting foo patch that excludes gnutar being merged (star-1.5_alpha46-gentoo.patch,533 bytes, patch)
2005-06-17 06:50 UTC, Sebastian Guarino
Details | Diff
Reposting ebuild using patch (star-1.5_alpha46-r1.ebuild,1.77 KB, text/plain)
2005-06-17 06:51 UTC, Sebastian Guarino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2003-11-09 22:57:06 UTC
both sys-apps/star and sys-apps/tar provide /usr/bin/tar. this is unacceptable. as sys-apps/star provides /usr/bin/star, it should be considered safe to "remove" /usr/bin/tar from sys-apps/star's installation file list.
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2003-11-09 23:53:35 UTC
ARGH! the afio Makefile SUCKS! I have the bash environment variable $I set
to /local/int (I use it with $CDPATH) and this damn Makefile uses it because
CFLAGS is hardcoded to:

--8<--
CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I
--8<--

but I is commented out by default:

--8<--
#I       = -I.
--8<--

so starting make with an empty environment works:

--8<--
[root@prometheus(pts/10):afio-2.4.7]$ env -i make 
gcc -Wall -O2 -fomit-frame-pointer  -DMEMCPY -DMKDIR   -DVOIDFIX  -DHAVEFCNTL
   -DHAVEMEMCMP -DDEFFMTCMD='"fdformat /dev/fd0H1440"'  -DPRG_COMPRESS='"gzip"'
-DHAVEFNMATCH    -c -o afio.o afio.c
afio.c: In function `incheckentry':
afio.c:1553: warning: `linkp' might be used uninitialized in this function
afio.c: In function `infill':
afio.c:1602: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `inhead':
afio.c:1724: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `openotty':
afio.c:2857: warning: suggest explicit braces to avoid ambiguous `else'
afio.c:2917: warning: suggest explicit braces to avoid ambiguous `else'
afio.c:2980: warning: suggest explicit braces to avoid ambiguous `else'
afio.c:2997: warning: suggest explicit braces to avoid ambiguous `else'
afio.c:3062: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `out':
afio.c:3275: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `outhead':
afio.c:3559: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `outhead2':
afio.c:3591: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `tocentry':
afio.c:4124: warning: suggest explicit braces to avoid ambiguous `else'
afio.c: In function `xfork':
afio.c:4304: warning: suggest explicit braces to avoid ambiguous `else'
gcc -Wall -O2 -fomit-frame-pointer  -DMEMCPY -DMKDIR   -DVOIDFIX  -DHAVEFCNTL
   -DHAVEMEMCMP -DDEFFMTCMD='"fdformat /dev/fd0H1440"'  -DPRG_COMPRESS='"gzip"'
-DHAVEFNMATCH    -c -o compfile.o compfile.c
gcc -Wall -O2 -fomit-frame-pointer  -DMEMCPY -DMKDIR   -DVOIDFIX  -DHAVEFCNTL
   -DHAVEMEMCMP -DDEFFMTCMD='"fdformat /dev/fd0H1440"'  -DPRG_COMPRESS='"gzip"'
-DHAVEFNMATCH    -c -o exten.o exten.c
gcc -Wall -O2 -fomit-frame-pointer  -DMEMCPY -DMKDIR   -DVOIDFIX  -DHAVEFCNTL
   -DHAVEMEMCMP -DDEFFMTCMD='"fdformat /dev/fd0H1440"'  -DPRG_COMPRESS='"gzip"'
-DHAVEFNMATCH    -c -o match.o match.c
gcc  afio.o compfile.o exten.o match.o  -o afio
afio.o(.text+0x6689): In function `syserr':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
afio.o(.text+0x6680): In function `syserr':
: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
[root@prometheus(pts/10):afio-2.4.7]$ 
--8<--

can we "catch" these things in the ebuild?
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2003-11-10 00:07:11 UTC
I *hate* bugzilla for advancing to the next bug after committing a change
for a a bug >:-(
Comment 3 Wolfram Schlich (RETIRED) gentoo-dev 2003-11-10 00:09:02 UTC
Can we move the second comment to bug #33094 somehow?!
Comment 4 SpanKY gentoo-dev 2003-11-10 06:30:11 UTC
actually, unless you have an older version of tar installed, it uses /bin/tar
while star uses /usr/bin/tar
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2003-11-10 06:37:51 UTC
yup, you're right, sorry. the problem actually is that "which tar" ("type
-p tar")  says "/usr/bin/tar" instead of "/bin/tar", even if my path has
"/bin" before "/usr/bin". anyway, I really think it's confusing to have two
tar-binaries on the system, so please prevent star's /usr/bin/tar from being
installed. thanks!
Comment 6 SpanKY gentoo-dev 2004-10-09 23:51:55 UTC
*** Bug 60030 has been marked as a duplicate of this bug. ***
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-13 11:18:26 UTC
*** Bug 66855 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2004-10-25 20:01:31 UTC
note that they both install /usr/sbin/rmt also
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-10-27 06:03:12 UTC
*** Bug 69117 has been marked as a duplicate of this bug. ***
Comment 10 Peter Gantner (a.k.a. nephros) 2004-10-29 10:10:08 UTC
Note that the star binary is also not syntax-compatible with GNU tar, which CAN break some init/rc scripts, for example it breaks the unpack of the udev device tarball in /sbin/rc (line 230ff).
This COULD render a system non-bootable if the old-style /dev entries are not sufficient.
Comment 11 Wolfram Schlich (RETIRED) gentoo-dev 2004-10-29 10:41:22 UTC
lostlogic, will you do something about it?
if not, would you want _me_ to do something about it? :)
Comment 12 Simone Gotti (RETIRED) gentoo-dev 2004-10-30 08:51:32 UTC
*** Bug 69504 has been marked as a duplicate of this bug. ***
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2004-11-08 11:52:44 UTC
*** Bug 70490 has been marked as a duplicate of this bug. ***
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-17 06:33:55 UTC
*** Bug 71518 has been marked as a duplicate of this bug. ***
Comment 15 Wolfram Schlich (RETIRED) gentoo-dev 2005-01-21 00:55:24 UTC
*push* any news here?
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-05 07:44:47 UTC
*** Bug 80859 has been marked as a duplicate of this bug. ***
Comment 17 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-15 10:00:48 UTC
*** Bug 82130 has been marked as a duplicate of this bug. ***
Comment 18 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-20 14:28:21 UTC
*** Bug 89854 has been marked as a duplicate of this bug. ***
Comment 19 Chris Smith 2005-04-20 16:09:37 UTC
*** Bug 89854 has been marked as a duplicate of this bug. ***
Comment 20 Alex BATKO 2005-05-11 11:08:54 UTC
I ran into an error described in Bug 82130 and saw that it was deemed a duplicate of this one.  Reading through this report, I fixed my problem by editing:

/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common/Makefile

...and changing:
TAR = gnutar

...to:
TAR = tar

...then doing:
ebuild /usr/portage/dev-util/kdevelop/kdevelop-3.1.2.ebuild compile
ebuild /usr/portage/dev-util/kdevelop/kdevelop-3.1.2.ebuild install
ebuild /usr/portage/dev-util/kdevelop/kdevelop-3.1.2.ebuild qmerge
Comment 21 Peter Gantner (a.k.a. nephros) 2005-05-11 15:01:44 UTC
well, it's definitely not a kdevelop-only problem.
Bumping this is a good thing though.

This bug is getting rather old now, looks to me we don't actually need a *solition*, just a *decision* either way would be beneficial.

My humble opinion: 
tar == /bin/tar == /usr/bin/tar == GNU tar
star==star wherever it lives; call it by its name or symlink manually if you want it.
As suggested in the initial bug report.
Comment 22 Alexander Skwar 2005-05-24 09:21:46 UTC
(In reply to comment #21)

> My humble opinion: 
> tar == /bin/tar == /usr/bin/tar == GNU tar

Not quite. tar is always the "system" tar. Eg. have a look at real Unix systems
like Solaris or HP-UX. There, "tar" is (close to) never GNU tar.

For this reason, it would be nice to have symlink gtar -> /bin/tar, so that it's
easily selectable, which tar is to be used.

Have a look at bug 93816 which I just filed.
Comment 23 Peter Gantner (a.k.a. nephros) 2005-05-24 10:41:18 UTC
I was talking about Linux, which, even if you don't follow Mr Stallman, is GNU/
Linux in the sense of kernel+GNU utils in virually all incarnations; it's quite 
sane for scripts to expect tar to be gtar (and if you avoid GNU-isms you can 
still keep things portable).

I'm not sure how HP/UX and others (IRIX and AIX do similar things) handle broken 
symlinks in core system utilities at boot time, but symlinking to /bin/tar 
should NOT be done here because /usr might not be mounted when /bin/tar is 
needed, as in the abovementioned case of untarring the udev device tarball.
(Symlinks to /usr/bin/tar are fine though, obviously.)
Comment 24 Alexander Skwar 2005-05-24 14:23:24 UTC
(In reply to comment #23)
> I was talking about Linux, which, even if you don't follow Mr Stallman, is GNU/
> Linux in the sense of kernel+GNU utils in virually all incarnations; it's quite 
> sane for scripts to expect tar to be gtar

No, it's not. Sane scripts should expect a posix tar. If GNUisms are expected,
scripts should select a GNU tar. Now, I of course do now that in present time
that is just wishful thinking.

> I'm not sure how HP/UX and others (IRIX and AIX do similar things) handle broken 
> symlinks in core system utilities at boot time, but symlinking to /bin/tar 
> should NOT be done here because /usr might not be mounted when /bin/tar is 
> needed,

I don't follow or understand that. Suppose /usr might not be mounted, there
would still be the /bin/tar executable/binary. But as soon as /usr would be
mounted, there might be a gtar "compatability" or maybe convenience link.
Comment 25 Carsten Lohrke (RETIRED) gentoo-dev 2005-05-30 06:05:05 UTC
*** Bug 94481 has been marked as a duplicate of this bug. ***
Comment 26 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-30 06:24:23 UTC
Reassigning to base-system. 
Comment 27 SpanKY gentoo-dev 2005-05-30 16:52:04 UTC
base system does not maintain tar nor do we care about it
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 02:43:43 UTC
(In reply to comment #27)
> base system does not maintain tar nor do we care about it

Then please fix metadata.xml

# cat /usr/portage/app-arch/tar/metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
</pkgmetadata>
Comment 29 SpanKY gentoo-dev 2005-05-31 05:25:36 UTC
typo on my part ... i meant 'star' not 'tar'

base system does not maintain star nor does it care about it
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 12:40:38 UTC
(In reply to comment #29)
> typo on my part ... i meant 'star' not 'tar'

Oh, I see. :-) Well, this package needs maintainer.
Comment 31 SpanKY gentoo-dev 2005-06-09 17:56:14 UTC
*** Bug 95618 has been marked as a duplicate of this bug. ***
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2005-06-12 03:55:48 UTC
Unsolved for 1 1/2 years, no maintainer and still causing just troubles. What
about hard-masking this? :/
Comment 33 Tom Martin (RETIRED) gentoo-dev 2005-06-16 10:42:52 UTC
Fixed in CVS, thanks.
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 14:36:53 UTC
*** Bug 96298 has been marked as a duplicate of this bug. ***
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 14:38:01 UTC
Still breaks kdevelop, even with star-1.5_alpha50.ebuild. :-(
Comment 36 Sebastian Guarino 2005-06-17 06:50:31 UTC
Created attachment 61388 [details, diff]
Reposting foo patch that excludes gnutar being merged
Comment 37 Sebastian Guarino 2005-06-17 06:51:24 UTC
Created attachment 61389 [details]
Reposting ebuild using patch
Comment 38 Tom Martin (RETIRED) gentoo-dev 2005-06-21 03:22:19 UTC
This should be fixed in -r1. Thanks a lot.
Comment 39 Jakub Moc (RETIRED) gentoo-dev 2006-03-22 09:39:51 UTC
*** Bug 127196 has been marked as a duplicate of this bug. ***