poker-network mysql installation issue

Bug #138836 reported by Johan Euphrosine
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poker-network (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

 Scott Kitterman wrote on 2007-09-08:

First install attempt:

Selecting previously deselected package poker-web.
(Reading database ... 142988 files and directories currently installed.)
Unpacking poker-web (from poker-web_1.1.1-1ubuntu2_all.deb) ...
.: 15: Can't open /usr/share/dbconfig-common/dpkg/config.mysql
dpkg: error processing poker-web_1.1.1-1ubuntu2_all.deb (--install):
 subprocess pre-installation script returned error exit status 2
/var/lib/dpkg/tmp.ci/postrm: line 28: /usr/share/dbconfig-common/dpkg/postrm.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 1

Second install attempt:

$ sudo dpkg -i poker-web_1.1.1-1ubuntu2_all.deb
(Reading database ...
dpkg: serious warning: files list file for package `poker-web' missing, assuming package has no files currently installed.
143409 files and directories currently installed.)
Preparing to replace poker-web 1.1.1-1ubuntu2 (using poker-web_1.1.1-1ubuntu2_all.deb) ...
.: 15: Can't open /usr/share/dbconfig-common/dpkg/config.mysql
dpkg: error processing poker-web_1.1.1-1ubuntu2_all.deb (--install):
 subprocess pre-installation script returned error exit status 2
/var/lib/dpkg/tmp.ci/postrm: line 28: /usr/share/dbconfig-common/dpkg/postrm.mysql: No such file or directory
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 poker-web_1.1.1-1ubuntu2_all.deb

Please test on a system that does not have mysql installed, update the fix, and resubscribe UUS.

 Daniel Holbach wrote 6 minutes ago:

Does it depends on mysql?

description: updated
description: updated
Revision history for this message
Johan Euphrosine (proppy) wrote :

The following commands reproduce the problem highlighted above:

sudo debootstrap gutsy poker-network-mysql-installation-issue-gutsy
sudo chroot poker-network-mysql-installation-issue-gutsy/
locale-gen en_US.UTF-8
cat /etc/apt/sources.list | sed s/deb/deb-src/ >> /etc/apt/sources.list
cat /etc/apt/sources.list | sed s/main/universe/ > /etc/apt/sources.list.d/universe.list
apt-get install dpkg-dev devscripts
apt-get source poker-network
apt-get build-dep poker-network
apt-get install wget
wget http://launchpadlibrarian.net/9163078/poker-network_1.1.1-1ubuntu2.patch
patch -p0 < poker-network_1.1.1-1ubuntu2.patch
cd poker-network-1.1.1/
debuild -us -uc
cd ..
dpkg -i *.deb

Revision history for this message
Johan Euphrosine (proppy) wrote :

Daniel Holbach wrote 6 minutes ago:

>
> Does it depends on mysql?

root@nekun:/usr/src# cat poker-network-1.1.1/debian/control | grep mysql-server
Suggests: mysql-server

Revision history for this message
Johan Euphrosine (proppy) wrote :

dpkg -i *poker-network*.deb
dpkg -i *poker-web*.deb

Works fine, I believe this may be a dependencies problem.

Revision history for this message
Johan Euphrosine (proppy) wrote :

> .: 15: Can't open /usr/share/dbconfig-common/dpkg/config.mysql

I believe dbconfig-common is missing
As the package depends on it, it should output this message right ?:
dpkg: dependency problems prevent configuration of poker-web:
 poker-web depends on dbconfig-common; however:
  Package dbconfig-common is not installed.

Revision history for this message
Johan Euphrosine (proppy) wrote :

poker-web does depend upon dbconfig-common
Package: poker-web
Section: web
Priority: optional
Architecture: all
Pre-Depends: debconf
Depends: ${misc:Depends}, dbconfig-common, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext

Revision history for this message
Johan Euphrosine (proppy) wrote :

 Cesare Tirabassi wrote 24 minutes ago: (permalink)

> Does it depends on mysql?

There are 3 binary packages: python-poker-network, python-poker2d and poker-web

python-poker-network is the poker server and also includes the client libraries.
It depends on mysql-client and suggests mysql-server.

python-poker2d is the GTK poker client; it depends indirectly on mysql since it depends on python-poker-network.

poker-web is the Web interface to a poker-network server: it only suggests mysql-client

Revision history for this message
Johan Euphrosine (proppy) wrote :

Unpacking poker-web (from poker-web_1.1.1-1ubuntu2_all.deb) ...
.: 15: Can't open /usr/share/dbconfig-common/dpkg/config.mysql
dpkg: error processing poker-web_1.1.1-1ubuntu2_all.deb (--install):
 subprocess pre-installation script returned error exit status 2

Does this suggest a Pre-depends: dbconfig-common, so that dbconfig is present *before* pre-installation step ?

Revision history for this message
Johan Euphrosine (proppy) wrote :

From debian policy:
    Pre-Depends are also required if the preinst script depends on the named package. It is best to avoid this situation if possible.

Revision history for this message
Johan Euphrosine (proppy) wrote :

Following debdiff should solve both #137573 and #138836.

Revision history for this message
Johan Euphrosine (proppy) wrote :

Withdrawed Cesare Tirabassi changes from the patch, as he suggested.

Revision history for this message
Johan Euphrosine (proppy) wrote :

Use patch -p4 for the patch to apply correctly

Revision history for this message
Johan Euphrosine (proppy) wrote :

poker-network (1.1.1-1ubuntu2) gutsy; urgency=low

  * Fix poker-web installation issue (LP: #138836):
    - Add dbconfig-common (preinst required) as Pre-Depends

  * Fix SIGSEGV on start-up for poker2d (LP: #137573):
    - Add simple-patchsys.mk to debian/rules
    - Add 00-fix-double-initdisplay.patch patch in debian/patches
    - Add 01-fix-glade-autoconnect.patch in debian/patches

 -- Johan Euphrosine <email address hidden> Wed, 12 Sep 2007 18:01:32 +0200

Changed in poker-network:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.