Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Backport megaglest from sid to wheezy

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Backport megaglest from sid to wheezy

#1 Post by kedaha »

In case anyone's interested, here are some notes for backporting the spectacular 3D multi-player real time strategy game from megaglest.org.
The current stable version 3.6.0.3-1.2 but a newer version (3.7.1-2 at the time of posting) is available in sid and isn't difficult to backport. The later version has improvements over the version in wheezy; for example, it allows games to be saved as in Glest Advanced Engine or GAE. (For further details of GAE for Debian, please see: forums.debian.net/viewtopic.php?t=63527).
Just a reminder for any new users who may wonder why not just install directly from the sid repository, as noted at wiki.debian.org/DebianSoftware#Newer_Software_For_Debian_Stable:
If you need something that is not in backports, or something even newer than what's in backports, a good option is to backport the newer package yourself from the Debian sid/unstable release.
And also:
Backporting (recompiling and repackaging) is the only safe way to install packages from Debian Sid or Debian Testing on a Debian stable system. Do not install such packages without backporting. Attempting to "mix" releases, especially by updating your sources.list file, is a sure way to break your system.
Before doing so, it is advisable to have a look at the hardware requirements at README.txt. For example, it works very well on NVIDIA GT218 [GeForce210] (revb a2) (prog-if 00 [VGA controller] with the wheezy default xserver-xorg-video-nouveau display driver. Note also that it can take a long time to build the deb packages, even with a fairly powerful machine.
Add ONLY a "deb-src ..." line for sid to your sources.list file. One way to do it is:

Code: Select all

# echo "deb-src http://ftp.us.debian.org/debian unstable main" >> /etc/apt/sources.list && apt-get update
or edit /etc/apt/sources.list file directly or add the line via synaptic.

Code: Select all

# apt-get update && apt-get install build-essential
# apt-get build-dep megaglest
# exit
Continue as your user (not root!):

Code: Select all

$ mkdir megaglest && cd megaglest
The following notes assume working in the directory created, i.e., megaglest or whatever name it is given.

Code: Select all

$ apt-get -b source megaglest
Now the ls command will list:

Code: Select all

$ ls
megaglest-3.7.1                  megaglest_3.7.1-2.dsc
megaglest_3.7.1-2_amd64.changes  megaglest_3.7.1.orig.tar.xz
megaglest_3.7.1-2_amd64.deb      megaglest-dbg_3.7.1-2_amd64.deb
megaglest_3.7.1-2.debian.tar.gz
However, it can't be installed for the present because megaglest depends on megaglest-data (>= 3.7.1) so this needs to be made the same way:
As root:

Code: Select all

# apt-get build-dep megaglest-data
# exit
As youruser:

Code: Select all

$ apt-get -b source megaglest-data
The ls command now shows:

Code: Select all

user@localhost:~/megaglest$ ls
megaglest-3.7.1                  megaglest_3.7.1-2.dsc           megaglest-data_3.7.1-1_amd64.changes     megaglest-data_3.7.1.orig.tar.xz
megaglest_3.7.1-2_amd64.changes  megaglest_3.7.1.orig.tar.xz     megaglest-data_3.7.1-1.debian.tar.gz     megaglest-dbg_3.7.1-2_amd64.deb
megaglest_3.7.1-2_amd64.deb      megaglest-data-3.7.1            megaglest-data_3.7.1-1.dsc
megaglest_3.7.1-2.debian.tar.gz  megaglest-data_3.7.1-1_all.deb  megaglest-data_3.7.1.orig-source.tar.xz
Now both packages may be installed using the dpkg command, for example:

Code: Select all

$ su -c "dpkg -i megaglest_3.7.1-2_amd64.deb megaglest-data_3.7.1-1_all.deb"
Done!
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

Post Reply