Page 1 of 1
last stable version of spring with git
Posted: 13 Apr 2010, 22:17
by feldmaus
Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Re: last stable version of spring with git
Posted: 13 Apr 2010, 22:21
by koshi
git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
Re: last stable version of spring with git
Posted: 13 Apr 2010, 22:40
by feldmaus
koshi wrote:git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
Hi koshi,
and how do i have to change this line?
git clone git://github.com/spring/spring.git
Regards Markus
Re: last stable version of spring with git
Posted: 13 Apr 2010, 23:04
by feldmaus
How does this look for springlobby ?
git clone git://springlobby.info/git/buildbot/springlobby.git
and than
git checkout $(git tag -l | tail -n 1)
regards Markus
Re: last stable version of spring with git
Posted: 13 Apr 2010, 23:24
by feldmaus
koshi wrote:git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
I get the following,
feld-bert:/opt/spring# git checkout $(git tag -l | tail -n 1)
Note: moving to "0.81.2.1" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 884a107... bumped version to 0.81.2.1
But when i do,
feld-bert:/opt/spring# git tag -l | tail -n 1
0.81.2.1
feld-bert:/opt/spring# git checkout 0.81.2.1
HEAD is now at 884a107... bumped version to 0.81.2.1
It seems to work?
regards Markus
Re: last stable version of spring with git
Posted: 14 Apr 2010, 00:13
by hoijui
it worked the first time already, the second time the output was just different cause you were not in a branch to begin with. if you execute koshis command again, it should give the same output.
and it should work the same way with springlobby.
Re: last stable version of spring with git
Posted: 14 Apr 2010, 00:22
by koshi
hoijui wrote:and it should work the same way with springlobby.
it won't actually, see the tag list:
http://sl.pastebin.com/W5gPn8HJ
Re: last stable version of spring with git
Posted: 14 Apr 2010, 00:27
by feldmaus
I got
feld-bert:/opt/springlobby# git checkout $(git tag -l | tail -n 1)
HEAD is now at a112d0a... Merge commit 'bd/master'
regards Markus
Re: last stable version of spring with git
Posted: 14 Apr 2010, 00:29
by koshi
I meant it's not going to get you latest
Re: last stable version of spring with git
Posted: 14 Apr 2010, 01:20
by hoijui
could it be an idea nae, to use use the first part of
git describe to obtain the tag?
Re: last stable version of spring with git
Posted: 14 Apr 2010, 11:50
by feldmaus
Is <master> the latest stable version for springlobby?
So i need to <git-checkout master> ?
And how to uninstall this files (spring and springlobby) ?
And where is <unitsync.so> ? I compiled the latest stable spring correctly over git+cmake.
regards Markus
Re: last stable version of spring with git
Posted: 14 Apr 2010, 12:32
by hoijui
it is not good to talk about
latest stable, you should say either
latest =
master or
(current) release (= 0.81.2.1 at the moment).
to play online, you need the release, and how to get that is what koshi showed you for spring. this one should work for both spring and SL:
Code: Select all
git checkout $(git describe | sed -e "s/-.*//g")
no guarantees though.
uninstalling only works by manually deleting the files (i guess you used make install). best way is, you do not install into the default location
/usr/local, but rather do something like this:
Code: Select all
INSTALL_DIR=/home/userX/spring_release
mkdir -p ${INSTALL_DIR}
cmake \
-DSPRING_DATADIR="${INSTALL_DIR}" \
-DCMAKE_INSTALL_PREFIX="" \
-DBINDIR=. -DLIBDIR=. -DMANDIR=. -DDATADIR=. -DAIDIR=.
make install DESTDIR=${INSTALL_DIR}
of course you have to edit the INSTAL_DIR in this code, and maybe add more params to cmake.
then you can simply uninstall by deleting
/home/userX/spring_release.
though.. we have a Debian repository which should contain the current spring release.
Re: last stable version of spring with git
Posted: 14 Apr 2010, 12:47
by jandd
feldmaus wrote:Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.
Re: last stable version of spring with git
Posted: 14 Apr 2010, 15:42
by feldmaus
jandd wrote:feldmaus wrote:Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.
I still tried
Code: Select all
deb http://ppa.launchpad.net/spring/ubuntu intrepid main
deb-src http://ppa.launchpad.net/spring/ubuntu intrepid main
but this is not the current version.
My wish is to have a simple way to get the last current version. How to modify my /etc/apt/sources.list to get only the spring package from debian testing and the rest from debian stable ? I think there will be dependancy problems.
regards Markus
Re: last stable version of spring with git
Posted: 14 Apr 2010, 19:45
by jandd
feldmaus wrote:jandd wrote:feldmaus wrote:I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.
I still tried
Code: Select all
deb http://ppa.launchpad.net/spring/ubuntu intrepid main
deb-src http://ppa.launchpad.net/spring/ubuntu intrepid main
but this is not the current version.
The current version of spring is packaged in the official Debian unstable repository. You can add
Code: Select all
deb http://ftp.de.debian.org/debian unstable main
to your /etc/apt/sources.list (replace ftp.de.debian.org with a mirror close to you).
If you don't want your whole system to be upgraded to Debian unstable you should also add a line
to your /etc/apt/apt.conf (create this file if it does not exist).
To install spring and springlobby from unstable you run
Code: Select all
aptitude -t unstable spring springlobby
this command will also get recent versions of spring's dependencies from the Debian repositories if the versions in Lenny are not recent enough.
Disclaimer: Please be aware that packages from unstable are not as well tested as those from a stable release. If you don't know what you are doing or what you are asked by aptitude please ask!
Re: last stable version of spring with git
Posted: 14 Apr 2010, 21:35
by feldmaus
unstable, that is not good. There are to many dependencies. So this is not a good idea? A backport would be better.
regards Markus