php4-yaz won't install (broken dependency)

Bug #58564 reported by Niki Kovacs
6
Affects Status Importance Assigned to Milestone
php4-yaz (Ubuntu)
Invalid
Undecided
Unassigned
Dapper
Fix Released
Medium
Daniel T Chen

Bug Description

Binary package hint: php4-yaz

Configuration: Ubuntu 6.06 LTS, LAMP server consisting of apache2, mysql-server-4.1 and php4.

PHP4 extension php4-yaz (needed for a public library management web-app) refuses to install. Here's the output:

root@fujitsu:/home/kikinovak# apt-get install php4-yaz
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php4-yaz: Depends: phpapi-20020918 but it is not installable
E: Broken packages

Revision history for this message
Michael Bienia (geser) wrote :

Here is a fix for it.

diff -u php4-yaz-1.0.4/debian/rules php4-yaz-1.0.4/debian/rules
--- php4-yaz-1.0.4/debian/rules
+++ php4-yaz-1.0.4/debian/rules
@@ -10,7 +10,7 @@

 PHPIZE = /usr/bin/phpize

-PHPAPIVERSION := $(shell egrep '\#define PHP_API_VERSION ' /usr/include/php4/main/php.h | sed -e 's/\#define PHP_API_VERSION //')
+PHPAPIVERSION := $(shell php-config4 --phpapi)

 CFLAGS = -Wall -g

Changed in php4-yaz:
status: Unconfirmed → Confirmed
Revision history for this message
Michael Bienia (geser) wrote :

Here is a debdiff for dapper-updates.

Revision history for this message
Niki Kovacs (contact-kikinovak) wrote :

Erm... sorry, but I'm new to this, and I don't quite know what to do with the changes you submitted. (BTW, I'm impressed by the speed of your reaction...)

What do I have to do to get php4-yaz to work on a Ubuntu install (both Server and desktop)?

Thanks.

Revision history for this message
Niki Kovacs (contact-kikinovak) wrote :

Thinking of it... how much time would it take so I can simply issue 'apt-get update && apt-get upgrade' to be able to install php4-yaz correctly?

Revision history for this message
Michael Bienia (geser) wrote :

These changes are primary interesting for the ubuntu developer reviewing this fix.
But if you know how to rebuild a package you could use it to create a fixed package for you.

It depends on how fast I can find a developer review this change and upload it till a fixed package will be available on the servers.

Revision history for this message
Niki Kovacs (contact-kikinovak) wrote :

Unfortunately I don't really know how to create a fixed package, and I guess I will have to wait until it will be made available on the servers.

In the meantime, do you think you could send me the fixed .deb by mail attachment (<email address hidden>), so I could simply install it with dpkg -i? Normally I'm not the kind of person who is in a hurry for doing things, but this time, it's really crucial. I have until Monday afternoon to 1) install a local version of the public library management webapp PMB (http://www.sigb.net) 2) learn how to use it and 3) convince the mayor of our town to use free software for managing the library. Fact is, if he's not convinced, the Windows-solution is looming in the background. Usually, things are rather quiet round here, but this time, you see I'm really sitting on needles, as we say in my native Austria. Anyway, you'd be doing me a big favour.

Cheers.

Revision history for this message
Michael Bienia (geser) wrote :

I can't currently build packages suitable for dapper.

But you can download the (broken) package and tell dpkg to ignore the dependencies.
Make sure that you have the other dependecies installed.

A small howto:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/php4-yaz/php4-yaz_1.0.4-1build1_i386.deb
sudo apt-get install libwrap0 libxml2 libyaz
# the other dependencies should already be installed
dpkg -i --force-depends php4-yaz_1.0.4-1build1_i386.deb

If you have an AMD64 replace i386 with amd64.

Revision history for this message
Niki Kovacs (contact-kikinovak) wrote :

Thanks for the detailed answer. It worked in the way that I could install php4-yaz, but now I have a new problem. Everytime I want to install a new package on the server, apt-get informs me that something is broken, and that php4-yaz will be removed.

Of course, I can always a) remove php4-yaz b) install the package I want, and c) reinstall php4-yaz using dpkg -i --force-depends. But this is a bit of a PITA.

Is there any way to make apt-get just ignore this? I tried apt-get -f install, but it insists on wanting to remove php4-yaz.

Revision history for this message
Niki Kovacs (contact-kikinovak) wrote :

Well, I searched around quite a bit, and found a solution: 'equivs' is a dirty hack which permits to create a 'ghost' phpapi package, so php4-yaz can install normally.

Cheers.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Accepted:
 OK: php4-yaz_1.0.4-1ubuntu0.1.dsc
     -> Component: universe Section: web
 OK: php4-yaz_1.0.4-1ubuntu0.1.diff.gz
This upload awaits approval by a distro manager

********* *BEGIN ENCRYPTED or SIGNED PART* *********

Format: 1.7
Date: Sat, 2 Sep 2006 14:25:08 +0200
Source: php4-yaz
Binary: php4-yaz
Architecture: source
Version: 1:1.0.4-1ubuntu0.1
Distribution: dapper-updates
Urgency: low
Maintainer: David Everly <email address hidden>
Changed-By: Michael Bienia <email address hidden>
Description:
 php4-yaz - php/yaz z39.50 module
Changes:
 php4-yaz (1:1.0.4-1ubuntu0.1) dapper-updates; urgency=low
 .
   * debian/rules: use php-config4 --phpapi to determine the php
     api version
Files:
 79881c821500d688e7f74b1a136d6f14 703 web optional php4-yaz_1.0.4-1ubuntu0.1.dsc
 b62ba8feda1d04f79847ff442289a09d 8010 web optional php4-yaz_1.0.4-1ubuntu0.1.diff.gz

********** *END ENCRYPTED or SIGNED PART* **********

==

Announcing to <email address hidden>

Thank you for your contribution to Ubuntu.

Changed in php4-yaz:
assignee: nobody → crimsun
importance: Untriaged → Medium
status: Unconfirmed → Fix Committed
status: Confirmed → Rejected
Rolf Leggewie (r0lf)
Changed in php4-yaz (Ubuntu Dapper):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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