Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use 'git clone' instead of downloading tar files from github #32

Open
ooPo opened this issue Apr 12, 2011 · 8 comments
Open

use 'git clone' instead of downloading tar files from github #32

ooPo opened this issue Apr 12, 2011 · 8 comments

Comments

@ooPo
Copy link
Member

ooPo commented Apr 12, 2011

See topic.

@zeldin
Copy link
Member

zeldin commented Apr 13, 2011

To what end? If you are going to develop one of the packages built by ps3toolchain, I don't think it would be very convenient to use ps3toolchain to build it every time, and so you'd probably have it cloned elsewhere instead (I know I do...)

@ooPo
Copy link
Member Author

ooPo commented Apr 13, 2011

It was a suggestion from a user as grabbing a tar file can apparently be very taxing on the server.

@ghost
Copy link

ghost commented Apr 13, 2011

I think repo would work well here
http://lwn.net/Articles/304488/
e.g.

?xml version="1.0" encoding="UTF-8"?>

manifest>

remote name="ps3dev" fetch="git://github.com/ps3dev/" />

remote name="HACKERCHANNEL" fetch="git://github.com/HACKERCHANNEL/" />

project path="build/gcc" name="gcc-4.5.2-PS3" remote="github" revision="master" /> 

project path="build/binutils" name="binutils-2.20.1-PS3" remote="github" revision="master" />

project path="build/newlib" name="newlib-1.19.0-PS3" remote="github" revision="master" />

project path="build/psl1ght" name="PSL1GHT" remote="HACKERCHANNEL" revision="vertex" />

project path="build/ps3libraries name="ps3libraries" remote="github" revision="a87fcd46c219db6b34b28c5e9f65bbc2ed908a5d" />

/manifest>

(removed leading < )

curl http://android.git.kernel.org/repo >~/bin/repo
chomd a+x ~/bin/repo
mkdir ps3dev;cd ps3dev

repo init -u git://github.com/ps3dev/manifest.git -b master
repo sync

just an example to highlight some of the basics, like ability to pin to a commit

@zeldin
Copy link
Member

zeldin commented Apr 13, 2011

Ok, I figured the tar files would be cached, but if it's undue load on the server it should be avoided of course. Not that a git:// clone is for free either...

I'd suggest using shallow clones if going that way though, since only the tree of head is wanted anyway. I.e. use --depth 1.

Another possibility would be to use git submodules, which has the same commit pinning feature as repo without the need for annoying external python scripts. :-) I don't think they can be shallow though.

@ooPo
Copy link
Member Author

ooPo commented Apr 18, 2011

I'd like to avoid adding extra dependencies like python scripts, etc...

I'm going to assign this a low priority as there's no need for it yet.

@inactive123
Copy link

Related to this issue - the tarball that 009-ps3libraries.sh attempts to download (ps3libraries.tar.gz) is now gone.

Using a git clone statement there allowed me to continue with the toolchain installation -

my local copy of 009-ps3libraries.sh now looks like this -


Download the source code.

git clone git://github.com/ps3dev/ps3libraries.git
cd ps3libraries

Compile and install.

./libraries.sh


IMHO a git clone here should be preferred over an attempt to download a tarball that might no longer exist (such as is the case right now) unless you want to give users the impression that either the project is dead or it's no longer regularly maintained when issues like this happen.

Also, wgetting the URLs to Cairo tarballs/pixman seem to be crawling below acceptable speeds (perhaps the servers it grabs it from are throttled and/or really slow) - perhaps this was a temporary issue because I didn't get it again after trying it out later. IMHO Cairo should only be installed with the toolchain if the user absolutely requires it - in my case for RetroArch I will have no need for it - the toolchain installer should just install the bare essentials or provide some option to install external dependencies optionally.

@ooPo
Copy link
Member Author

ooPo commented Jul 3, 2012

  • The ps3libraries file appears to have returned. Do we have any idea what the 'official' preferred method for downloading source from github is? If we're going to change anything I'd like to do things properly.
  • In ps3libraries you can skip parts by specifying only the steps you want to build. (for example: ./libraries.sh 1 2 3 5 6 8 10 13) Also, if you want to download the file manually and put it into the build directory then it won't get re-downloaded when the script runs.

@ooPo
Copy link
Member Author

ooPo commented Jul 3, 2012

I should also mention that the idea behind ps3libraries was to give the widest variety of ported software available. It normally wouldn't be built more than once by most users so there isn't a lot of reason to be worried about how long it took to build. As more libraries get added this may change but in the meantime I believe that the more we can make available to all developers as a standard suite the better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants