Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild digest downloads package from incorrect location
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
xipi
n00b
n00b


Joined: 15 Feb 2009
Posts: 3

PostPosted: Sun Feb 15, 2009 2:17 pm    Post subject: Ebuild digest downloads package from incorrect location Reply with quote

Hi,

I've just installed Sabayon 4.1 r1 x86-32, and I'm in the process of adding some ebuilds in my local portage tree that are not in official portage.

I've tried with ebuilds for gnome-commander and xoscope applications
, and I'm finding following trouble:

in /usr/local/portage, when I do

# ebuild xoscope-1.12.ebuild digest

in order to generate its manifest, it DOES NOT download the package from correct location. I mean, although SRC_URI in the ebuild itself tells a correct location, ebuild first tries to download from official gentoo mirrors. It gets several 404, and keeps trying other mirrors, until one of them (http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles), happens to answer a 200 and gives back an HTML telling something like "the page you're looking for is not here, dude". Thus, ebuild downloads this HTML, and stores it in /usr/portage/distfiles with filename 'xoscope-1.12.tgz'. I.e., we have an HTML named like a package now. Then, generates the checksum and takes the size of this HTML as the one it has to expect from the package.

This results in that, when doing:

# emerge xoscope

It does not download it (as the "package", though corrupted, is already in /usr/portage/distfiles), tries to unpack it, and obviously fails (as it is an HTML).

I tried removing the corrupted file from /usr/portage/distfiles. What then emerge does is downloading it (this time, from the correct location), but as the size and checksum does not fit with the Manifest generated by the ebuild, it does not install it.

In front of this issue, I wonder several questions:

-Where are located the list of gentoo mirrors that portage is using on my system? (one idea is that, if I delete the infamious server that answer with a 200 to an invalid URL, maybe 'ebuild' command will end up downloading the package from the correct location)

-Is there any reason for which 'ebuild' first tries to download the package from official gentoo mirrors rather than the SRC_URI specified in the ebuild i've placed? I can't see the sense in that (if I placed the ebuild myself, is because it is NOT in the official gentoo mirrors).

-Is there any command to cleanup all what 'ebuild whatever.ebuild digest' has done? (i.e., downloading the package and creating the Manifest)

Thanks and greetings,
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Feb 15, 2009 2:36 pm    Post subject: Re: Ebuild digest downloads package from incorrect location Reply with quote

xipi wrote:
Hi,

I've just installed Sabayon 4.1 r1 x86-32, and I'm in the process of adding some ebuilds in my local portage tree that are not in official portage.


Sabayon is not Gentoo, the ebuild you are using is not in portage either, so moved to unsupported software.

Quote:

-Is there any reason for which 'ebuild' first tries to download the package from official gentoo mirrors rather than the SRC_URI specified in the ebuild i've placed? I can't see the sense in that (if I placed the ebuild myself, is because it is NOT in the official gentoo mirrors).


It my memory serves correctly, RESTRICT="nomirror" should sort that out. I can't be more concrete about the rest of the problem without seeing the ebuild (not that I am a master at ebuilding anyway

Quote:

-Is there any command to cleanup all what 'ebuild whatever.ebuild digest' has done? (i.e., downloading the package and creating the Manifest)


Why not just rm them?
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43571
Location: 56N 3W

PostPosted: Sun Feb 15, 2009 2:59 pm    Post subject: Reply with quote

xipi,

Your mirror list is in /etc/make.conf. If its missing you are using the defualt gentoo mirror, which should never answer with a 200 for a file its not got.

Get mirrorselect and audition all the official Gentoo mirrors for speed. It will put the the fastest mirrors in your mirror list.
You can choose how many you have.

The mirrors are checked before the source URI or there would be no point in having mirrors at it.
Its considered impolite to use the source URI if you can find a mirror. After all, the whole point of mirroring is to deduce the load on the real source.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14071

PostPosted: Sun Feb 15, 2009 3:09 pm    Post subject: Reply with quote

If you found that mirror through the official Gentoo mirror list, you should contact the server operator and ask them to fix their configuration. Serving an error page using an HTTP 200 status is wrong, as evidenced by what it did to your digest attempt.

For a local ebuild, you may find it useful to RESTRICT="mirror" to prevent usage of the Gentoo mirrors. You should remove this line if you submit the ebuild for official inclusion.
Back to top
View user's profile Send private message
xipi
n00b
n00b


Joined: 15 Feb 2009
Posts: 3

PostPosted: Sun Feb 15, 2009 3:47 pm    Post subject: Reply with quote

Thanks,

it worked adding some mirrors in GENTOO_MIRRORS in my make.conf, as per output of mirrorselect, and emerge worked fine.

I've emailed also the guy at http://gd.tuwien.ac.at so that he checks if his configuration is fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum