Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96298 - buggy -C flag on gnutar from app-arch/star-1.5_alpha46
Summary: buggy -C flag on gnutar from app-arch/star-1.5_alpha46
Status: RESOLVED DUPLICATE of bug 33119
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 11:23 UTC by Sebastian Guarino
Modified: 2005-06-16 14:36 UTC (History)
0 users

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


Attachments
foo patch to be included in app-arch/star/files (star-1.5_alpha46-gentoo.patch,533 bytes, patch)
2005-06-16 12:43 UTC, Sebastian Guarino
Details | Diff
new ebuild that use the patch (star-1.5_alpha46-r1.ebuild,1.77 KB, text/plain)
2005-06-16 12:44 UTC, Sebastian Guarino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Guarino 2005-06-16 11:23:48 UTC
When emerging kdevelop it detects gnutar and use it.
A bug in gnutar cause this aplication from being correctly merged. Any other
port with configure script that detects/use gnutar may fail.


Reproducible: Always
Steps to Reproduce:
In actual or recent portage (with app-arch/star-1.5_alpha46 instaled).
1. emerge -v kdevelop

Actual Results:  
Making all in common
make[4]: Entering directory
`/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common'
gnutar -cf admin.tar -C . admin
gnutar -cf gnu.tar -C ./gnu AUTHORS  COPYING \
        ChangeLog  INSTALL  NEWS  README  TODO
gnutar: No such file or directory. Cannot stat 'ChangeLog'.
gnutar: No such file or directory. Cannot stat 'INSTALL'.
gnutar: No such file or directory. Cannot stat 'NEWS'.
gnutar: No such file or directory. Cannot stat 'README'.
gnutar: No such file or directory. Cannot stat 'TODO'.
gnutar: 3 blocks + 0 bytes (total of 30720 bytes = 30.00k).
gnutar: The following problems occurred during archive processing:
gnutar: Cannot: stat 5, open 0, read/write 0. Size changed 0.
gnutar: Missing links 0, Name too long 0, File too big 0, Not dumped 0.
gnutar: Processed all possible files, despite earlier errors.
make[4]: *** [gnu.tar.gz] Error 254
make[4]: *** Waiting for unfinished jobs....
gnutar: 87 blocks + 0 bytes (total of 890880 bytes = 870.00k).
gzip admin.tar
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory
`/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.1.2 failed.
!!! Function kde_src_compile, Line 166, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Being merged.

A bug in gnutar in app-arch/star-1.5_alpha46 cause the command fail:
gnutar -cf gnu.tar -C ./gnu AUTHORS  COPYING ChangeLog  INSTALL  NEWS  README  TODO

If you replace gnutar by tar or  emerge -v '<app-arch/star-1.5_alpha46' the
problem is corrected.

If you strace the first command you can see that the gnutar chdir for the first
file but not from the second, COPYING is incorrect being archived, and Changelog
fails because is not on ../

chdir("/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common")
= 0
chdir("./gnu")                          = 0
lstat64("AUTHORS", {st_mode=S_IFREG|0644, st_size=21, ...}) = 0
chdir("/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common")
= 0
lstat64("COPYING", {st_mode=S_IFREG|0644, st_size=18009, ...}) = 0
chdir("/var/tmp/portage/kdevelop-3.1.2/work/kdevelop-3.1.2/parts/appwizard/common")
= 0
lstat64("ChangeLog", 0xbffff040)        = -1 ENOENT (No such file or directory)



-----

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  7 2005, 19:26:46)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.9.5, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/gentoo/pentium4/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aalib acpi alsa apache2 apm arts audiofile avi berkdb
bitmap-fonts cdr crypt cscope cups curl dga directfb doc dvd dvdr emboss encode
esd ethereal fam fbcon flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gtk
gtk2 imagemagick imap imlib ipv6 java jpeg kde kerberos ldap libg++ libwww lirc
mad mikmod mmxmotif mozilla mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang
snmp spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts usb vorbis wavelan wifi xine xml xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Sebastian Guarino 2005-06-16 11:31:08 UTC
downgrading to previous version of star, the gnutar is not included and so
doesn't being detected/used, so tar is.

emerge -v '<app-arch/star-1.5_alpha46'

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 11:34:57 UTC
Actually it should be finally fixed now (Bug 33119), I guess the best action
would be to 

- emerge sync
- unmerge star
- re-emerge tar
- re-emerge star
- try to emerge kdevelop again. 

if you want to give it another try. If it still breaks, please post to Bug 33119.
Comment 3 Sebastian Guarino 2005-06-16 11:58:27 UTC
It doesn't fix the problem. /usr/bin/gnutar is installed by star, and some
configure scripts look for it before tar. And the use of -C is not the same.
I think app-arch/star-1.5_alpha46 should be or patched against gnutar being
included.
Today in sync I saw star-1.5_alpha50.ebuild, I will try it.
Comment 4 Sebastian Guarino 2005-06-16 12:19:21 UTC
same with star-1.5_alpha50.ebuild.

/usr/bin/gnutar is "star" complied whith options to make it gnu compliant. Full
compliant have not been achived (-C flag) that's why I think gnutar should be
removed.
If not, lot of ports have to be patched against using it.
Comment 5 Sebastian Guarino 2005-06-16 12:43:43 UTC
Created attachment 61347 [details, diff]
foo patch to be included in app-arch/star/files

exludes gnutar from being compiled and included.
Comment 6 Sebastian Guarino 2005-06-16 12:44:55 UTC
Created attachment 61348 [details]
new ebuild that use the patch
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 14:35:32 UTC
Sigh, I should probably reopen the original bug... 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 14:36:53 UTC
Marking this as dupe and reopening Bug 33119.

*** This bug has been marked as a duplicate of 33119 ***