last stable version of spring with git

last stable version of spring with git

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

last stable version of spring with git

Post 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
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: last stable version of spring with git

Post by koshi »

git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: last stable version of spring with git

Post 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.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: last stable version of spring with git

Post 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
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post by feldmaus »

koshi wrote:
hoijui wrote:and it should work the same way with springlobby.
it won't actually, see the tag list: http://sl.pastebin.com/W5gPn8HJ
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
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: last stable version of spring with git

Post by koshi »

I meant it's not going to get you latest
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: last stable version of spring with git

Post by hoijui »

could it be an idea nae, to use use the first part of git describe to obtain the tag?

Code: Select all

git describe | sed -e "s/-.*//g"
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: last stable version of spring with git

Post 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.
User avatar
jandd
Posts: 17
Joined: 05 Jan 2010, 13:30

Re: last stable version of spring with git

Post 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.
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
User avatar
jandd
Posts: 17
Joined: 05 Jan 2010, 13:30

Re: last stable version of spring with git

Post 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

Code: Select all

APT::Default-Release "stable";
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!
feldmaus
Posts: 9
Joined: 24 Apr 2009, 00:32

Re: last stable version of spring with git

Post 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
Post Reply

Return to “Linux”