[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to have automated versionning with the php5-cli (=XXX) | php5-cgi (=XXX) | libapache2-mod-php5 (=XXX)



On 29/01/2008, Mike Hommey <mh@glandium.org> wrote:
> On Tue, Jan 29, 2008 at 05:14:07PM +0800, Thomas Goirand <thomas@goirand.fr> wrote:
> > Hi,
> >
> > I'm trying to build a package for eaccelerator. As most of the time, we
> > do put things in production on our servers BEFORE attempting to have
> > them sponsored into Debian, so there is less worries.
> >
> > With this eaccelerator package, we had quite an issue the last time php5
> > was upgraded. When restarting apache, there was this warning:
> >
> > PHP Warning:  [eAccelerator] This build of "eAccelerator" was compiled
> > for PHP version 5.2.0-8+etch9. Rebuild it for your PHP version
> > (5.2.0-8+etch10) or download precompiled binaries.
> >
> > so we couldn't restart apache without either deactivating eaccelerator,
> > or rebuilding it.
> >
> > Of course, we could have write something like this:
> >
> > Package: php5-eaccelerator
> > [...]
> > Depends: ${misc:Depends}, libapache2-mod-php5 (=5.2.0-8+etch9) |
> > php5-cgi (=5.2.0-8+etch9) | php5-cli (=5.2.0-8+etch9)
> >
> > so then dependencies would have prevent upgrading php without an
> > up-to-date version of eaccelerator. This is quite fine for us in Etch,
> > as we can manage versions when they come out, and as there is not so
> > many updates (just some security one not so often). But this is
> > absolutely not manageable for having my package sponsored and uploaded
> > to SID.
> >
> > So how can I make it so I have this php5 package version automated in my
> > dependencies?
>
> Subsidiary question: Why does eaccelerator need to be updated for a minor
> update of php (not even moving upstream version) ?

It is just eaccelerator being dummy. I guess they added that dummy
check so when ABI changes occur the extension is recompiled.

You should either patch the code so no such dummy check is performed
at all or add something like ${php:Depends} in the package's control
file and on rules do:

echo "php:Depends=php5-common (=`dpkg-query -W
--showformat='${Version}\n' php5-common`" >>
debian/package-name.substvars

This of course must be done before dh_gencontrol is called.

P.D. is it the eaccelerator packager what you are trying to package or
is it the accelerator extension itself? In case you are working on the
latter please search the archives because it is not currently possible
to redistribute it because of copyright problems.

>
> Mike
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Say NO to Microsoft Office broken standard.
See http://www.noooxml.org/petition


Reply to: