LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2017, 12:51 PM   #1
dedec0
Member
 
Registered: May 2007
Posts: 642

Rep: Reputation: 27
Question Adanaxis game: Installed package + problem in making tests in source (maybe a wrong path problem, possibly related to Ruby language)


Hello (:

A few days ago, root installed adanaxisgpl package (version 1.2.5.dfsg.1-6+b2) and adanaxisgpl-data (1.2.5.dfsg.1-6) in this Debian 9 machine. After a few frustrating moments (the game is very good! Space war action in four dimensional environment), I imagined a few things that could be changed in source.

This project is not really maintained anymore by its original developers, so my usual steps of [downloading source from "root" page + compiling + changing + compiling + testing] were not exactly there.

I decided to use, for the first time in my life, direct CLI Debian commands to get the source, dependencies and to compile things.

The important commands we have made are, if I do not miss any:

Code:
mkcd /dev/shm/adanaxis            # mkdir + cd
apt-get source adanaxisgpl
apt-get source adanaxisgpl-data
cd adanaxisgpl-1.2.5.dfsg.1
dpkg-checkbuilddeps               # showed dependencies, all were installed
dpkg-buildpackage -us -uc         # does *not* work if source is changed
vim [...]                         # change source files
dpkg-source --commit              # necessary after any change
dpkg-buildpackage -us -uc         # does *not* work if source is changed
## debuild -us -uc                # also tried, but chose the previous
./debian/adanaxisgpl/usr/games/adanaxisgpl
# repeat last 4 commands as needed
Changing C++ files and testing them with compiled './adanaxisgpl' was fairly easy.

Now, there are a few changes that we want to test before "installing" (may be manually, anyway). These changes are in files for each level. These files are inside the source folders, but also in some files created by above commands:

Code:
# cd /dev/shm/adanaxis/adanaxisgpl-1.2.5.dfsg.1

# some regex syntax below, just to show which files are important (3 of them)

./data-adanaxis/spaces/level([0-9]+)/(*xml|*txt|*rb)
# just 3 files, one for each extension

./.pc/
# What is this folder? May I remove folders that were created here when 
# I commited source changes? (idea: discard a folders/package with some changes 
# to make another folder/package with these changes and others, with another 
# commit)

./debian/tmp/usr/share/games/adanaxisgpl/spaces/level([0-9]+)/(*.xml|*.txt|*.rb)

./debian/adanaxisgpl-data/usr/share/games/adanaxisgpl/spaces/level([0-9]+)/(*.xml|*.txt|*.rb)
The problem: I have changed these XML, TXT and RB files╣ but, when I run the compiled game it will not read and use them! It will read the files installed in the whole system instead. How do I change that fact? The game is a mix of C++ and Ruby (and nothing else but several libraries, I think), but I do not know what to do now.

╣ I changed these files a a way that it would be possible to know which of them was being used with in a "run compiled game".

Is this situation a consequence of the commands we used? They use fakeroot, which needed to be installed - but I do not know what that really changes, if anything. If that is true, what should I do instead?

Another question, just to use the thread which gave me it. When I searched documentation (or pages) for the above commands, the most useful ideas I found were in a Debian page that says "obsolete". But I cannot find a current page about that subject. May you help that? The pages I meant are also found by searching (debian "APT HOWTO"), which give us:

debian.org/doc/manuals/apt-howto/index.en.html

debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html

(also found by searching working with debian package sources)

There is also another document:

https://wiki.debian.org/BuildingTutorial

or

https://wiki.debian.org/pt_BR/BuildingTutorial

But this seemed harder, more commands, and I opted for the other set.

If you know a good book or material (preferably free) about those Debian things, please point.

Something I forgot to ask, but is good to write here: the steps I described build a new package with made changes. Instead of keeping that deb file, which is a fairly big file, I would like to keep just diffs for all source changes I have made. How should I do? (of course, this may also be answered by some pointed material)

Last edited by dedec0; 11-26-2017 at 09:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong bash path for installed software irvken Linux - Software 2 02-21-2013 10:02 AM
mplayer problem New_Face failed. Maybe the font path is wrong matters Slackware 2 01-12-2009 06:28 PM
gpar2, installed wrong package help please lizard_king825 Linux - Software 2 10-29-2006 07:59 PM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 08:05 PM
problem making slackware package busbarn Programming 3 07-21-2004 09:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration