Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16710 - emerge rsync, check for syntax error and corruption in the ebuild
Summary: emerge rsync, check for syntax error and corruption in the ebuild
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 16617 16861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-02 22:28 UTC by lil
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

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 lil 2003-03-02 22:28:10 UTC
>>> Updating Portage cache... /
 
aux_get(): (1) couldn't open cache entry for app-emulation/pose-3.5
               Check for syntax error or corruption in the ebuild.




Reproducible: Always
Steps to Reproduce:
1.rm -rf /usr/portage/*
2.rm -r ebuild from /usr/portage/
3.emerge regen
4.regenworld
5.even reinstalled after i got this the first time on a emerge -s python

Actual Results:  
i've been getting that for the last few days 
this is what i did 
rm -rf /usr/portage* && emerge sync 
removed the problem from /usr/portage---- this does solve the problem for the
momment  but then i get a diff ebuild
Comment 1 lil 2003-03-02 22:30:36 UTC
root # qpkg -I -v -nc portage
sys-apps/portage-2.0.47-r7


 root # cat /etc/make.conf | grep -v ^#
 
 
USE="X gtk gnome alsa gtk2 mozilla java perl python pam crypt ssl -xfs -kde -qt
-arts"
 
CHOST="i686-pc-linux-gnu"
 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
 
CXXFLAGS="${CFLAGS}"
 
ACCEPT_KEYWORDS="~x86"
 
 
 
AUTOCLEAN="yes"

i did reemerged the portage also 
Comment 2 SpanKY gentoo-dev 2003-03-02 22:38:28 UTC
nick: think we can get some way to recover from this rather than displaying errors all the time ?

or is this already done ;)
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-03-03 14:16:51 UTC
*** Bug 16617 has been marked as a duplicate of this bug. ***
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-03-03 15:33:05 UTC
emerge -d sync

and post that here.
Comment 5 lil 2003-03-04 01:24:45 UTC
root # emerge -d sync
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
Welcome to rsync1.nl.gentoo.org
This is the Dutch RSYNC mirror @ the Leiden University
 
Have fun with Gentoo!
 
receiving file list ...
37604 files to consider
rsync[6553] (receiver) heap statistics:
  arena:        5423608   (bytes from sbrk)
  ordblks:          568   (chunks not in use)
  smblks:             2
  hblks:              1   (chunks from mmap)
  hblkhd:        258048   (bytes from mmap)
  usmblks:            0
  fsmblks:           40
  uordblks:     4745120   (bytes used)
  fordblks:      678488   (bytes free)
  keepcost:       42088   (bytes in releasable chunk)
 
Number of files: 37604
Number of files transferred: 0
Total file size: 30252877 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 855411
Total bytes written: 153
Total bytes read: 855558
 
wrote 153 bytes  read 855558 bytes  63386.00 bytes/sec
total size is 30252877  speedup is 35.35
 
>>> Updating Portage cache... \
 
aux_get(): (1) couldn't open cache entry for app-emulation/pose-3.5
               Check for syntax error or corruption in the ebuild.
 
  ...done!
 
 
 * An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.
 * Please do so and then update ALL of your configuration f

i see that a new portage is up for upgrade , i'll let u know if i still get the errors
by the way using emerge -s , gave me even a longer list of errors
thank u for ur help though
Comment 6 lil 2003-03-04 02:05:39 UTC
/
 
/
esd
ssl
|
 
\
 
|
 
/
 
|
 
/
 
|
 
-
 
\
 
/
 
-
 
\
 
\
 
-
 
\
 
|
 
\
 
\
/usr/sbin/ebuild.sh: line 19: [: =: unary operator expected
\
/usr/sbin/ebuild.sh: line 19: [: =: unary operator expected
|
/usr/sbin/ebuild.sh: line 21: [: =: unary operator expected
\


after emerging the new portage root # qpkg -I -v -nc portage
sys-apps/portage-2.0.47-r8
 i did an emerge -d sync again  , thats what i got , i removed pose by the way manually 
Comment 7 SpanKY gentoo-dev 2003-03-04 21:09:10 UTC
*** Bug 16861 has been marked as a duplicate of this bug. ***
Comment 8 Todd Geders 2003-03-04 23:59:12 UTC
Just FYI, but the same problem that I had in duplicate bug 16861 (and here) is occuring for a friend of mine trying to install Gentoo 1.4_rc3...once he updated Portage, it no longer allows him to emerge anything, since it claims a bunch of ebuilds are masked or corrupt...this is a _serious_ problem, especially for anyone trying to install Gentoo right now...
Comment 9 m1kee 2003-03-05 15:15:20 UTC
/usr/sbin/ebuild.sh: /usr/portage/app-emulation/pose/pose-3.5.ebuild: line 35: syntax error: unexpected end of file

!!! ERROR: app-emulation/pose-3.5 failed.
!!! Function , Line 1032, Exitcode 1
!!! error sourcing ebuild

pose-3.5.ebuild seems to end with garbage such as, "^@^@!^@^@^@". This might be caused by incomplete/truncated rsync mirrors? Or are the ebuilds corrupt from the central Gentoo rsync?

HIH
Comment 10 Chris Dennett 2003-03-08 12:44:49 UTC
I also have this. 
 
dessimat0r root # emerge sync 
!!! RSYNC_EXCLUDEFROM specified, but file does not exist. 
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage... 
This is rsync2.us.gentoo.org, located in Florida, USA. 
 
receiving file list ... 
38099 files to consider 
metadata/timestamp.chk 
          32 100%    0.00kB/s    0:00:00 
metadata/timestamp.x 
          40 100%    0.00kB/s    0:00:00 
profiles/default-1.0/packages 
        5572 100%    0.00kB/s    0:00:00 
profiles/default-1.0_rc6/packages 
        5138 100%    0.00kB/s    0:00:00 
profiles/default-arm-1.4/packages 
        3442 100%    0.00kB/s    0:00:00 
profiles/default-hppa-1.4/packages 
        3502 100%    0.00kB/s    0:00:00 
profiles/default-ppc-1.0/packages 
        6963 100%    6.64MB/s    0:00:00 
profiles/default-ppc-1.4/packages 
        6006 100%    0.00kB/s    0:00:00 
profiles/default-sparc-1.4/packages 
        3587 100%    0.00kB/s    0:00:00 
rsync[13584] (receiver) heap statistics: 
  arena:        5587640   (bytes from sbrk) 
  ordblks:          566   (chunks not in use) 
  smblks:             2 
  hblks:              1   (chunks from mmap) 
  hblkhd:        258048   (bytes from mmap) 
  usmblks:            0 
  fsmblks:           40 
  uordblks:     4899320   (bytes used) 
  fordblks:      688320   (bytes free) 
  keepcost:       52928   (bytes in releasable chunk) 
 
Number of files: 38099 
Number of files transferred: 9 
Total file size: 30520850 bytes 
Total transferred file size: 34282 bytes 
Literal data: 11450 bytes 
Matched data: 22832 bytes 
File list size: 901360 
Total bytes written: 555 
Total bytes read: 906976 
 
wrote 555 bytes  read 906976 bytes  58550.39 bytes/sec 
total size is 30520850  speedup is 33.63 
 
rm: cannot remove `/var/cache/edb/dep//app-emacs/weather-2.2': Permission 
denied 
>>> Updating Portage cache... \!!! Unable to copy 
'/usr/portage/metadata/cache/app-emacs/weather-2.2' to 
'/var/cache/edb/dep//app-emacs/weather-2.2' 
!!! [Errno 13] Permission denied: '/var/cache/edb/dep//app-emacs/weather-2.2' 
 
aux_get(): (1) Error in app-emacs/weather-2.2 ebuild. 
               Check for syntax error or corruption in the ebuild. (--debug) 
 
\chmod: failed to get attributes of 
`/var/cache/edb/dep//app-emacs/weather-2.2': Permission denied 
  ...done! 
 
dessimat0r root # 
Comment 11 SpanKY gentoo-dev 2003-03-09 00:01:56 UTC
so `rm -rf /var/cache/edb/dep` and `emerge sync` again 
Comment 12 Guy 2003-03-09 21:05:09 UTC
I'm having the same issue on a machine I just built. I'm not certain if it was built with 1.4_rc3, but I think so. I had my mother download and burn the iso for me. She's in FL and I'm in NJ. I built her system remotely through ssh.

As far as I can tell, it's had no effect on any of the packages I've installed on her machine. If I can provide any further info, please let me know.

Following instructions in comment #11:

===================================================================================

mumzie root # rm -rf /var/cache/edb/dep
mumzie root # emerge sync
>>> /var/cache/edb/dep doesn't exist, creating it...
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
This is rsync2.us.gentoo.org, located in Florida, USA.

receiving file list ...
38390 files to consider
rsync[11845] (receiver) heap statistics:
  arena:        5538296   (bytes from sbrk)
  ordblks:          576   (chunks not in use)
  smblks:             2
  hblks:              1   (chunks from mmap)
  hblkhd:        258048   (bytes from mmap)
  usmblks:            0
  fsmblks:           40
  uordblks:     4841080   (bytes used)
  fordblks:      697216   (bytes free)
  keepcost:       56392   (bytes in releasable chunk)

Number of files: 38390
Number of files transferred: 0
Total file size: 30933465 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 908627
Total bytes written: 153
Total bytes read: 908719

wrote 153 bytes  read 908719 bytes  67323.85 bytes/sec
total size is 30933465  speedup is 34.04

>>> Updating Portage cache... /
aux_get(): (0) Error in app-emulation/pose-3.5 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)

  ...done!

mumzie root #

===============================================================================

mumzie root # emerge info
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts svga tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O3 -pipe"
CXXFLAGS="-mcpu=athlon -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

mumzie root #
Comment 13 lil 2003-03-10 00:23:18 UTC
my problem is solved , i guess it was a portage issue :-) after emerging a new portage and removing pose everythin works fine 
Comment 14 Todd Geders 2003-03-10 13:10:14 UTC
Our problems also seem to be solved, but in my case I had to remove the portage tree (rm -rf /usr/portage) and it was better thereafter.  Another guy had it fixed from updating portage after he freshly updated portage...
Comment 15 Markus Luisser 2003-09-22 15:40:08 UTC
i have the same problem - tried to get a new portage tree from different servers but that only got exactly the same errors as before plus some new ones - it looks like some of the ebuilds that get downloaded have unexpected EOFs:

------------%>------------
emerge -d sync
...
/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 960: unexpected EOF while looking for matching `"'
/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 965: syntax error: unexpected end of file

!!! ERROR: x11-wm/fluxbox-0.9.0 failed.
!!! Function inherit, Line 996, Exitcode 1
!!! died sourcing /usr/portage/eclass/eutils.eclass in inherit()


aux_get(): (0) Error in x11-wm/fluxbox-0.9.0 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)
...
------------%>------------

error message is repeated for 50 or so ebuilds. but looking at the ebuilds i cannot find any unmatched '"'. if u need more information...ask :)
Comment 16 Markus Luisser 2003-09-24 10:33:15 UTC
it now works for me too - the error was due to a syntax error in a eclass. see this thread: http://forums.gentoo.org/viewtopic.php?t=88057
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2003-10-23 13:38:28 UTC
Looks like these are all fixed