Bug 5805 - zoneminder's postun fails
Summary: zoneminder's postun fails
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 14:26 CEST by Thierry Vignaud
Modified: 2012-05-12 17:23 CEST (History)
0 users

See Also:
Source RPM: zoneminder
CVE:
Status comment:


Attachments

Description Thierry Vignaud 2012-05-09 14:26:19 CEST
zoneminder's postun fails as it assumes MySQL is up & running:

# urpme php-mysql
To satisfy dependencies, the following 2 packages will be removed (9.8MB):
  php-mysql-5.3.12-2.mga2.x86_64
  zoneminder-1.25.0-9.mga2.tainted.x86_64
   (due to missing php-mysql)
Remove 2 packages? (y/N) y
removing php-mysql-5.3.12-2.mga2.x86_64 zoneminder-1.25.0-9.mga2.tainted.x86_64
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.14.2/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
removing package zoneminder-1.25.0-9.mga2.tainted.x86_64
removing package php-mysql-3:5.3.12-2.mga2.x86_64
writing /var/lib/rpm/installed-through-deps.list
Thierry Vignaud 2012-05-09 14:28:37 CEST

Assignee: bugsquad => zen25000

Comment 1 Barry Jackson 2012-05-11 21:27:50 CEST
Hmm - yes.
This is an issue with zmpkg.pl which should really check for mysql and die quietly if it's not running.

Reported upstream.

I have applied a temporary fix to the unit file until an upstream fix is available.

Status: NEW => ASSIGNED

Comment 2 Barry Jackson 2012-05-12 17:23:24 CEST
Closing as fixed.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.