poker-engine 1.3.6

A new release of poker-engine fixing minor bugs was published and the corresponding package uploaded to fix a bug related to the use of use dh_python2. The support of python2.7 for pypoker-eval was considered but turns out to be unnecessary.

poker-engine 1.3.6

This minor upstream version was completed together with a packaging bug fix to use dh_python2 instead of python-central by following the proposed instructions.

Debian GNU/Linux

The submit.sh script from the latest packaging-farm version was used because it implements the conventions followed in the pokersource SVN tree. The environment variables were set as follows:

poker-engine:
	VCS_ROOT=svn+ssh://${GNA_LOGIN}@svn.gna.org/svn/pokersource \
	PACKAGE=$@ \
	SMP=-j1 \
	EXCLUDE=-i'(Makefile|autom4te.cache/output.0|autom4te.cache/output.1|autom4te.cache/requests|autom4te.cache/traces.0|autom4te.cache/traces.1|config.log|config.status|gentoo/dev-games/poker-engine/poker-engine-1.0.20-r1.ebuild|gentoo/dev-games/poker-engine/poker-engine-1.0.22-r1.ebuild|po/Makefile|poker-engine.pc|pokerconfigupgrade|pokerconfigupgrade.8|pokerengine/Makefile|tests/Makefile|tests/allin.py|tests/blinds.py|tests/buyin.py|tests/chips.py|tests/deal.py|tests/eval.py|tests/history.py|tests/libxml2leak.py|tests/muck.py|tests/positions.py|tests/run|tests/sit.py|tests/test-game.py|tests/test-gamehistory.py|tests/test-i18n.py|tests/test-pokercards.py|tests/test-pokerchips.py|tests/test-pokerengineconfig.py|tests/test-pokerplayer.py|tests/test-pokerprizes.py|tests/test-pokerrake.py|tests/test-pokertournament.py|tests/test-version.py|tests/tournament.py|tests/upgrades.py)' \
	bash ${PACKAGING_FARM_LIBDIR}/debian/submit.sh ${POKERSOURCE_DEBUILD_OPTIONS}
	rm -fr $@

The EXCLUDE variable was set to ensure that spurious files are not added to the diff file, as was the case for the 1.3.5 package. The /etc/packaging-farm/packaging-farm.conf file was modified to take advantage of the latest features introduced by packaging-farm: a simpler submission process and multi-architecture support.
The latest pokersource package files were retrieved from Debian GNU/Linux unstable using the make archives target with the following Makefile:

OFFICIAL_PACKAGES=poker-eval pypoker-eval poker-engine poker-network
PACKAGES=${OFFICIAL_PACKAGES} pokersource

include /usr/lib/packaging-farm/submit/Makefile

$(eval $(call OFFICIAL,poker-eval,unstable))
$(eval $(call OFFICIAL,pypoker-eval,unstable))
$(eval $(call OFFICIAL,poker-engine,unstable))
$(eval $(call OFFICIAL,poker-network,unstable))
$(eval $(call OFFICIAL,pokersource,))

The package produced by the packaging-farm was submitted to the official Debian GNU/Linux repositories with:

loic@pokerdev:/usr/src/download$ make DRY= sync
...
loic@pokerdev:/usr/src/download$ make PACKAGES=poker-engine debian/official
for package in poker-engine ; do \
		make sign/$package ; \
		/usr/lib/packaging-farm/debian/submit-official.sh  $package ; \
	done
make[1]: Entering directory `/usr/src/download'
if [ "497A176D" != "UNKNOWN_GPGKEY" ] ; then \
		debsign -k497A176D poker-engine/gnulinux/debian/i386/unstable/src/*.changes ; \
	fi
The .changes file is already signed.
Would you like to use the current signature? [Yn]y
Leaving current signature unchanged.
make[1]: Leaving directory `/usr/src/download'
Do you want to upload poker-engine_1.3.6-1.dsc in replacement of  poker-engine-1.3.5-1 to Debian GNU/Linux ?
1) yes
2) no
3) binaries
#? 1
dupload note: no announcement will be sent.
Checking signatures before upload......signatures are ok
Uploading (ftp) to ftp-master.debian.org:/pub/UploadQueue
[ job poker-engine_1.3.6-1_i386 from poker-engine_1.3.6-1_i386.changes
 poker-engine_1.3.6-1.dsc, size ok, md5sum ok, sha1sum ok, sha256sum ok
 poker-engine_1.3.6-1.diff.gz, size ok, md5sum ok, sha1sum ok, sha256sum ok
 python-poker-engine_1.3.6-1_all.deb, size ok, md5sum ok, sha1sum ok, sha256sum ok
 poker-engine_1.3.6.orig.tar.gz, size ok, md5sum ok, sha1sum ok, sha256sum ok
 poker-engine_1.3.6-1_i386.changes ok ]
Uploading (ftp) to ftp-master (ftp-master.debian.org)
+ FTP passive mode selected
[ Uploading job poker-engine_1.3.6-1_i386
 poker-engine_1.3.6-1.dsc 1.1 kB, ok (1 s, 1.14 kB/s)
 poker-engine_1.3.6-1.diff.gz 3.4 kB, ok (1 s, 3.35 kB/s)
 python-poker-engine_1.3.6-1_all.deb 93.8 kB, ok (2 s, 46.92 kB/s)
 poker-engine_1.3.6.orig.tar.gz 291.9 kB, ok (3 s, 97.31 kB/s)
 poker-engine_1.3.6-1_i386.changes 1.9 kB, ok (1 s, 1.89 kB/s) ]

gna.org

After waiting 24h for the package to be distributed to all Debian GNU/Linux mirrors, it was uploaded to gna with the same Makefile that was used to run make archives above:

make upload-gna

which requires that the uploaded files are GPG signed by a member of the pokersource gna project.

freshmeat

A new release was submitted for poker-engine freshmeat entry. The ChangeLog was copy/pasted for versions 1.3.5 and 1.3.6 because the last announced verion was 1.3.4 : no announcement was made for version 1.3.5. The direct link to the sources updated.

pypoker-eval

The pypoker-eval library was uploaded to Debian GNU/Linux before python-2.7 was available.

loic@bet:~/tmp/pypoker-eval$ python2.7
Python 2.7.1+ (r271:86832, Mar  7 2011, 21:14:46)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pokereval
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pokereval
>>>
loic@bet:~/tmp/pypoker-eval$ python2.6
Python 2.6.6 (r266:84292, Sep 15 2010, 14:52:42)
[GCC 4.4.5 20100909 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pokereval
>>>

In ubuntu it was rebuilt to include python2.7. However, in Debian GNU/Linux, pyhton2.7 is not yet supported:

$ pyversions -s
python2.5 python2.6

pypoker-eval does not need to be rebuilt.

pbuilder broken

After pbuilder failed with the following

$ sudo pbuilder --create --distribution sid --basetgz /var/cache/pbuilder/sid.tgz
I: Distribution is sid.
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
E: Release signed by unknown key (key id ED4B06F473041FA)
E: debootstrap failed

The debian keyring was updated

apt-get install debian-keyring

But it did not fix the issue. After reading related bug reports and trying various tricks, the --debug
flag on pbuilder gave a useful hint:

sudo pbuilder --create --debug --basetgz /var/cache/pbuilder/sid.tgz
...
+ debootstrap --include=apt --keyring=/etc/apt/trusted.gpg --keyring /usr/share/keyrings/debian-archive-keyring.gpg sid . http://ftp.fr.debian.org/debian/

After installing debian-archive-keyring

apt-get install debian-archive-keyring

pbuilder was successfully run to re-create a virgin sid tarbal.

This entry was posted in pokersource. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>