pokermania / poker-network

fork of svn repo at http://gna.org/projects/pokersource. Do not use anymore, the repo has been split in several which can be found here https://github.com/pokermania
2 stars 2 forks source link

Debianization problem of the Poker-network package #1

Closed Usr-X closed 12 years ago

Usr-X commented 12 years ago

There is a problem with building the Debian package for poker-network. I downloaded the source code and was able to build and install the Debian packages with dpkg-buildpackage for poker-engine, poker-eval, poker-reflogging and pypoker-eval without an issue. However, when attempting to build the poker-network directory, I received errors.

Here is the command line output:

user-x@userx:~/pokermania-poker-network-983498b/poker-network$ dpkg-buildpackage -rfakeroot -uc -b
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package poker-network
dpkg-buildpackage: source version 2.1.4-3
dpkg-buildpackage: source changed by Andor Goetzendorff 
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build poker-network
 fakeroot debian/rules clean
test -x debian/rules
dh_testroot
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 /usr/bin/make  -C .  -k distclean
make[1]: Entering directory `/home/user-x/pokermania-poker-network-983498b/poker-network'
make[1]: *** No rule to make target `distclean'.
make[1]: Leaving directory `/home/user-x/pokermania-poker-network-983498b/poker-network'
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-check
rm -f debian/stamp-autotools
rmdir --ignore-fail-on-non-empty .
rmdir: failed to remove `.': Invalid argument
make: [makefile-clean] Error 1 (ignored)
dh_clean
rm -f ./*cdbs-*
rm -f debian/stamp-autotools-files
cd . && \
      rm -f intltool-extract intltool-merge intltool-update po/.intltool-merge-cache; \
      if test -d doc; then find doc -name '*.omf.out' -exec rm -f \{\} \; ; fi; \
      if test -d help; then find help -name '*.omf.out' -exec rm -f \{\} \; ; fi
 debian/rules build
test -x debian/rules
mkdir -p "."
touch debian/stamp-autotools-files
chmod a+x /home/user-x/pokermania-poker-network-983498b/poker-network/./configure
chmod: cannot access `/home/user-x/pokermania-poker-network-983498b/poker-network/./configure': No such file or directory
make: *** [debian/stamp-autotools] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
user-x@userx:~/pokermania-poker-network-983498b/poker-network$
tuco86 commented 12 years ago

I pushed some changes. Build has undergone some reworks.. can you try with this and tell me if everything works as expected again?

Usr-X commented 12 years ago

I was able to build and install libpoker-eval, libpoker-eval-dev and python-pypoker-eval but then I received an error when trying to build the poker-reflogging package. Here is the command line output:

root@user-x:/var/www/package-repository/pokermania-poker-network-d16ea94/poker-reflogging# dpkg-buildpackage -rfakeroot -uc -b dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package poker-reflogging dpkg-buildpackage: source version 1.0.1-1 dpkg-buildpackage: source changed by Andor Goetzendorff <andor@pokermania.de> dpkg-buildpackage: host architecture amd64 dpkg-source --before-build poker-reflogging fakeroot debian/rules clean dh clean --buildsystem=python_distutils --with=python2 dh_testdir -O--buildsystem=python_distutils dh_auto_clean -O--buildsystem=python_distutils Traceback (most recent call last): File "setup.py", line 7, in <module> from setup_extensions import TestCommand File "../common/setup_extensions.py", line 31, in <module> from config import config File "../common/config.py", line 43, in <module> raise Exception('couldn\'t find default.json in this or any parent directory') Exception: couldn't find default.json in this or any parent directory dh_auto_clean: python setup.py clean -a returned exit code 1 make: *** [clean] Error 1 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2 root@user-x:/var/www/package-repository/pokermania-poker-network-d16ea94/poker-reflogging#

tuco86 commented 12 years ago

omg.. totaly forgot about updating the remaining setup files.. will fix this in a minute

tuco86 commented 12 years ago

ok.. every build works on my machine again.

Usr-X commented 12 years ago

The download Tarball is not updated yet. Still same files as yesterday?

Usr-X commented 12 years ago

Hey tuco, the Poker-engine build attempt failed after test_pokerplayer fails. Command line output snippet follows:

test_pokerplayer

...............F

FAIL: testPokerPlayerStringRepresentation (tests.test_pokerplayer.PokerPlayerTestCase)

Test Poker Player : String representation

Traceback (most recent call last): File "tests/test_pokerplayer.py", line 158, in testPokerPlayerStringRepresentation self.failUnlessEqual(string[:-2], str(self.player)) AssertionError: 'serial = 8487, name = 2224, fold = 11395, remove_next_turn = 20629, sit_out = 5073, sit_out_next_turn = 2885, sit_requested = 23476, bot = 601, auto = 18375, auto_blind_ante = 119, wait_for = 10936, auto_muck = 20695, missed_blind = 14777, missed_big_blind_count = 8591, blind = 20488, buy_in_payed = 21963, ante = 13670, all_in = 30953, side_pot_index = 25287, seat = 20830, hand = 1125, money = 8045, rebuy = 24322, bet = 32365, dead = 10378, talked_once = 22966, user_data = 7205' != 'serial = 8487, name = 2224, fold = 11395, remove_next_turn = 20629, sit_out = 5073, sit_out_next_turn = 2885, sit_requested = 23476, bot = 601, auto = 18375, auto_blind_ante = 119, wait_for = 10936, auto_muck = 20695, auto_player_policy = simple_bot, auto_player_fold_next_turn = False, missed_blind = 14777, missed_big_blind_count = 8591, blind = 20488, buy_in_payed = 21963, ante = 13670, all_in = 30953, side_pot_index = 25287, seat = 20830, hand = 1125, money = 8045, rebuy = 24322, bet = 32365, dead = 10378, talked_once = 22966, user_data = 7205'


Ran 16 tests in 0.008s

FAILED (failures=1) make[1]: * [override_dh_auto_test] Error 1 make[1]: Leaving directory `/var/www/package-repository/pokermania-poker-network-8f7e412/poker-engine' make: * [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2

tuco86 commented 12 years ago

hmm.. worked for me when i pushed it.. you could disable tests to build it.. just comment out "override_dh_auto_test" in poker-engine/debian/rules.. I will look into the changes of olaf.. and try to fix it..

tuco86 commented 12 years ago

ok.. talked to olaf.. he will fix the failing tests.. if you want faster responses.. I'm on irc freenode #tuco_

ruxkor commented 12 years ago

@Usr-X you're error was caused by a missing call to autoreconf, hence the missing configure file.

Usr-X commented 12 years ago

Hi,

I tried to build the poker-network package again today after the recent changes and ran into another error. The test_proxyfilter fails; so I commented out the override_dh_auto_test in poker-network/debian/rules to bypass the tests. I now get:

dh_install -O--buildsystem=python_distutils cp: cannot stat `debian/tmp/pokeradditions/conf/badwords.txt': No such file or directory dh_install: cp -a debian/tmp/pokeradditions/conf/badwords.txt debian/python-poker-additions/usr/share/poker-network/conf/ returned exit code 1 make: *\ [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

Should I open another issue for this?

tuco86 commented 12 years ago

don't build additions.. they are a submodule and are being soldered out..

Usr-X commented 12 years ago

Thanks, after commenting out additions the poker-network package builds. But I get an install error after trying to install on server. I get:

Setting up python-poker-network (2.2.0-4) ... Traceback (most recent call last): File "/usr/bin/pycentral", line 2372, in main() File "/usr/bin/pycentral", line 2366, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 1509, in run pkg.read_version_info() File "/usr/bin/pycentral", line 909, in read_version_info raise PyCentralError, "package has no field Python-Version" main.PyCentralError: package has no field Python-Version dpkg: error processing python-poker-network (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db ... Processing triggers for ureadahead ... Errors were encountered while processing: python-poker-network