Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuilds, SRC_URI and server redirects
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Feb 12, 2013 9:40 pm    Post subject: Ebuilds, SRC_URI and server redirects Reply with quote

Posting here because my concern is with the SRC_URI in some ebuilds continuing to work if I try something...

I host some orphaned tarballs on audiodef.com. Some of those were adopted in the pro-audio overlay. I want to move my hosted tarballs to gentoostudio.org, but I don't want to re-orphan anything. So if I move the tarballs, can I use a server redirect? If so, what is the best way to do that so that wget follows the redirect and fetches the moved tarball?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Wed Feb 13, 2013 8:03 am    Post subject: Reply with quote

If it is a server redirect at the HTTP level, and the filenames stay the same, it should work. Anything that involves HTML in any way will likely not work.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Feb 13, 2013 10:48 pm    Post subject: Reply with quote

If both domains are on the same server, would a fs symbolic link work?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Thu Feb 14, 2013 10:41 am    Post subject: Reply with quote

Well, portage (or more precisely wget/curl) only talks to your http/ftp server, it doesn't know anything about the underlying filesystem. How the server treats your symlink depends on its configuration.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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