Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14876

Summary: rsync mirror broke !?
Product: Gentoo Linux Reporter: Ewen Cheslack-Postava <echeslack>
Component: Current packagesAssignee: Sascha Schwabbauer (RETIRED) <cybersystem>
Status: RESOLVED FIXED    
Severity: normal CC: am, loial
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My cvs.eclass file as requested
My rsync output

Description Ewen Cheslack-Postava 2003-01-31 15:36:58 UTC
User-Agent:       
Build Identifier: 

I tried to remerge gift-cvs recently and it fails on inherit.  The exact message
it gives is:

Calculating dependencies ...done!
>>> emerge (1 of 1) net-p2p/gift-cvs-0.10.0 to /
/usr/sbin/ebuild.sh: /usr/portage/eclass/cvs.eclass: line 323: syntax error:
unexpected end of file

!!! ERROR: net-p2p/gift-cvs-0.10.0 failed.
!!! Function inherit, Line 896, Exitcode 1
!!! died sourcing /usr/portage/eclass/cvs.eclass in inherit()


I don't know enough about inherit to track the bug any further.  As far as I
know, this was not affected by anything else I have emerged recently.  All other
emerges have worked fine.

Reproducible: Always
Steps to Reproduce:
1. emerge gift-cvs

Actual Results:  
I got the error message that I posted in the "Details" section.

Expected Results:  
Compiled and installed gift-cvs

I already had gift-cvs emerged, so it worked at some point.  The ebuild looks
ok, so it seems like it is probably a problem with portage (the cvs component I
guess).
Comment 1 SpanKY gentoo-dev 2003-01-31 16:59:39 UTC
could you `emerge rsync` and then see if it works ?  and if it doesnt, post this file as an attachement: /usr/portage/eclass/cvs.eclass
Comment 2 Ewen Cheslack-Postava 2003-01-31 18:15:47 UTC
Created attachment 7788 [details]
My cvs.eclass file as requested

Sorry, I forgot to mention that I did rsync and try again, but it still didn't
work.  Here is my cvs.eclass file.
Comment 3 SpanKY gentoo-dev 2003-01-31 23:48:02 UTC
what server are you rsycing from ? 
 
does your rsync end in error ? 
Comment 4 Ewen Cheslack-Postava 2003-02-01 02:37:54 UTC
Created attachment 7806 [details]
My rsync output

Okay, well, I thought my rsyncing was working fine, but there are these extra
sets of numbers showing up near the end of the rsync.  I was not aware of them
before.  Perhaps something is borked with rsync on my computer (or maybe I just
had never noticed that it did that before).  I just rsync to the round robbin,
so it gives me a different one each time.
Comment 5 Ewen Cheslack-Postava 2003-02-04 17:03:05 UTC
Ok, well, I have investigated more and it seems to just be a problem on the mirrors, but I don't know how widespread it is.  I found a reference to the same problem in the forums, <a href=http://forums.gentoo.org/viewtopic.php?t=30559&highlight=giftcvs> here </a> (aobut 1/3 of the way down), and that apparantly the solution is to grab the cvs.eclass file through webbased cvs.  Apparantly nobody bothered to report it here.  I can't check if that solves the problem now since the cvs site is still pointing at 3jane.net for me since its been moved.  
I think the question now is how widespread is this file error?  How did this get broken in the first place?  Shouldn't the procedure used to mirror the tree protect against something like this?  Anyway, this seems like it should have a higher priority since it probably blocks a lot of cvs builds for a lot of people.

-ewen
Comment 6 Ewen Cheslack-Postava 2003-02-04 17:17:46 UTC
well, i found a copy of the cvs.eclass file that seems to work on one of the mirrors.  Somehow it needs to be checked that all mirrors have the correct file and are not distributing faulty ones. 

-ewen
Comment 7 SpanKY gentoo-dev 2003-02-06 12:25:34 UTC
*** Bug 15216 has been marked as a duplicate of this bug. ***
Comment 8 Rutger Hendriks 2003-02-06 16:57:19 UTC
If you've found the correct cvs.eclass shouldn't it be a couple of minutes/hours before every mirror has been updated? Hehe, I'm curious ;-)
Any idea what could have caused this in the first place?
Comment 9 Ewen Cheslack-Postava 2003-02-06 19:59:30 UTC
well, it could just spread correctly if it gets fixed, but i synced again and it 
reverted back to the old one.  Is there a list of all the rsync mirrors?  Has 
anybody checked if it is broken on the main server?  Is there a tree of how the 
mirrors get updated so it could be traced back to the original and maybe we could 
find out what is going on?  Anyway, I am not syncing to any place specific, but 
whenever I sync I will check it to report any broken mirrors.  But this is pretty 
important, I think it needs to be resolved asap as it blocks any cvs builds from 
working.
Comment 10 Rutger Hendriks 2003-02-07 03:43:35 UTC
I noticed on the web-cvs that it's only the last 4 lines that are missing. It looks like web-cvs is updated differently than the other mirrors. Hmm... ;-)
Comment 11 Ewen Cheslack-Postava 2003-02-07 12:52:54 UTC
well, the corrupted file that I had only had the last 4 lines missing, so apparantly it has spread to the web-cvs too.
Comment 12 Rutger Hendriks 2003-02-09 13:49:02 UTC
Sorry, I think I didn't make myself clear ;-)
The cvs.eclass on my machine after an 'emerge rsync' is 4 lines shorter than the one on the web-cvs. So the web-cvs version is correct and the rsync-version is not. Therefor solving this bug seems trivial. Put the web-cvs version of cvs.eclass on the mirrors and rdy ;-)
Perhaps someone has to change this bugs priority so it is noticed ? ;-)
Comment 13 Rutger Hendriks 2003-02-09 13:50:14 UTC
or it's title...
Comment 14 Rutger Hendriks 2003-02-18 16:12:17 UTC
I think someone sort of fixed it, 'cause when i delete my /usr/portage/eclass/cvs.eclass file and do an emerge rsync i get a decent eclass file! Go bugfixer go!
Comment 15 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-18 04:33:50 UTC
This looks like finished, but not closed.