First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 33119
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Tom Martin (RETIRED) <slarti@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Wolfram Schlich <wschlich@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
star-1.5_alpha46-gentoo.patch Reposting foo patch that excludes gnutar being merged patch Sebastian Guarino 2005-06-17 06:50 0000 533 bytes Details | Diff
star-1.5_alpha46-r1.ebuild Reposting ebuild using patch text/plain Sebastian Guarino 2005-06-17 06:51 0000 1.77 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 33119 depends on: Show dependency tree
Show dependency graph
Bug 33119 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-11-09 22:57 0000
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 From Wolfram Schlich 2003-11-09 23:53:35 0000 -------
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 From Wolfram Schlich 2003-11-10 00:07:11 0000 -------
I *hate* bugzilla for advancing to the next bug after committing a change
for a a bug >:-(

------- Comment #3 From Wolfram Schlich 2003-11-10 00:09:02 0000 -------
Can we move the second comment to bug #33094 somehow?!

------- Comment #4 From SpanKY 2003-11-10 06:30:11 0000 -------
actually, unless you have an older version of tar installed, it uses /bin/tar
while star uses /usr/bin/tar

------- Comment #5 From Wolfram Schlich 2003-11-10 06:37:51 0000 -------
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 From SpanKY 2004-10-09 23:51:55 0000 -------
*** Bug 60030 has been marked as a duplicate of this bug. ***

------- Comment #7 From Carsten Lohrke 2004-10-13 11:18:26 0000 -------
*** Bug 66855 has been marked as a duplicate of this bug. ***

------- Comment #8 From SpanKY 2004-10-25 20:01:31 0000 -------
note that they both install /usr/sbin/rmt also

------- Comment #9 From Carsten Lohrke 2004-10-27 06:03:12 0000 -------
*** Bug 69117 has been marked as a duplicate of this bug. ***

------- Comment #10 From Peter Gantner (a.k.a. nephros) 2004-10-29 10:10:08 0000 -------
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 From Wolfram Schlich 2004-10-29 10:41:22 0000 -------
lostlogic, will you do something about it?
if not, would you want _me_ to do something about it? :)

------- Comment #12 From Simone Gotti (RETIRED) 2004-10-30 08:51:32 0000 -------
*** Bug 69504 has been marked as a duplicate of this bug. ***

------- Comment #13 From Caleb Tennis 2004-11-08 11:52:44 0000 -------
*** Bug 70490 has been marked as a duplicate of this bug. ***

------- Comment #14 From Carsten Lohrke 2004-11-17 06:33:55 0000 -------
*** Bug 71518 has been marked as a duplicate of this bug. ***

------- Comment #15 From Wolfram Schlich 2005-01-21 00:55:24 0000 -------
*push* any news here?

------- Comment #16 From Carsten Lohrke 2005-02-05 07:44:47 0000 -------
*** Bug 80859 has been marked as a duplicate of this bug. ***

------- Comment #17 From Carsten Lohrke 2005-02-15 10:00:48 0000 -------
*** Bug 82130 has been marked as a duplicate of this bug. ***

------- Comment #18 From Gregorio Guidi (RETIRED) 2005-04-20 14:28:21 0000 -------
*** Bug 89854 has been marked as a duplicate of this bug. ***

------- Comment #19 From Chris Smith 2005-04-20 16:09:37 0000 -------
*** Bug 89854 has been marked as a duplicate of this bug. ***

------- Comment #20 From Alex BATKO 2005-05-11 11:08:54 0000 -------
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 From Peter Gantner (a.k.a. nephros) 2005-05-11 15:01:44 0000 -------
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 From Alexander Skwar 2005-05-24 09:21:46 0000 -------
(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 From Peter Gantner (a.k.a. nephros) 2005-05-24 10:41:18 0000 -------
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 From Alexander Skwar 2005-05-24 14:23:24 0000 -------
(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 From Carsten Lohrke 2005-05-30 06:05:05 0000 -------
*** Bug 94481 has been marked as a duplicate of this bug. ***

------- Comment #26 From Gregorio Guidi (RETIRED) 2005-05-30 06:24:23 0000 -------
Reassigning to base-system. 

------- Comment #27 From SpanKY 2005-05-30 16:52:04 0000 -------
base system does not maintain tar nor do we care about it

------- Comment #28 From Jakub Moc 2005-05-31 02:43:43 0000 -------
(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 From SpanKY 2005-05-31 05:25:36 0000 -------
typo on my part ... i meant 'star' not 'tar'

base system does not maintain star nor does it care about it

------- Comment #30 From Jakub Moc 2005-05-31 12:40:38 0000 -------
(In reply to comment #29)
> typo on my part ... i meant 'star' not 'tar'

Oh, I see. :-) Well, this package needs maintainer.

------- Comment #31 From SpanKY 2005-06-09 17:56:14 0000 -------
*** Bug 95618 has been marked as a duplicate of this bug. ***

------- Comment #32 From Jakub Moc 2005-06-12 03:55:48 0000 -------
Unsolved for 1 1/2 years, no maintainer and still causing just troubles. What
about hard-masking this? :/

------- Comment #33 From Tom Martin (RETIRED) 2005-06-16 10:42:52 0000 -------
Fixed in CVS, thanks.

------- Comment #34 From Jakub Moc 2005-06-16 14:36:53 0000 -------
*** Bug 96298 has been marked as a duplicate of this bug. ***

------- Comment #35 From Jakub Moc 2005-06-16 14:38:01 0000 -------
Still breaks kdevelop, even with star-1.5_alpha50.ebuild. :-(

------- Comment #36 From Sebastian Guarino 2005-06-17 06:50:31 0000 -------
Created an attachment (id=61388) [edit]
Reposting foo patch that excludes gnutar being merged

------- Comment #37 From Sebastian Guarino 2005-06-17 06:51:24 0000 -------
Created an attachment (id=61389) [edit]
Reposting ebuild using patch

------- Comment #38 From Tom Martin (RETIRED) 2005-06-21 03:22:19 0000 -------
This should be fixed in -r1. Thanks a lot.

------- Comment #39 From Jakub Moc 2006-03-22 09:39:51 0000 -------
*** Bug 127196 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug