I agree, it would be fantastic to have a repo with all this stuff including
recent nginx builds. I'm happy to help out packaging. I'll give this upgrade
to 0.6 a shot and let you know how it goes.
--Stephen
On Fri, Nov 6, 2009 at 3:27 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>
> Well,
> You have in there the php-0.6.3 (with embedded libevent). That's all
> the debian/patches/fpm.patch file that comes with it there. We would
> ideally like to update to the current version, but as you have
> discovered it still works!
>
> Its mostly just small configuration improvements, etc. that would come
> with the current 0.6. Another thing is that I originally didn't
> properly VCS branch off the official. So its missing the latest
> updates from Chuck (Chuck Short is the official php5 ubuntu-main
> source package maintainer).
>
> Just don't worry about it.
>
> Perhaps there are more suitable unofficial PPA archives where we can
> upload it to, please let me know? It would be great to have it all
> along with someone else's PPA particularly including an edge version
> of nginx, and maybe similar grouped / related packages like php
> extensions, etc?
>
>
> Best regards
>
> dreamcat4
> dreamcat4@gmail.com
>
> On Fri, Nov 6, 2009 at 11:06 PM, Stephen Crosby <stevecrozz@gmail.com>
> wrote:
> > Nice, it actually works!
> >
> > I replaced the contents of apt-get source php5 with the debian folder
> from
> > your git repo and did a test compile and it went very smoothly. I'm not
> sure
> > if I'm qualified to maintain a package that other people rely on, but we
> can
> > talk about it some more.
> >
> > By the way, it seems to work fine already... what kind of update did you
> > want to make?
> >
> > --Stephen
> >
> > On Fri, Nov 6, 2009 at 1:19 PM, dreamcat four <dreamcat4@gmail.com>
> wrote:
> >>
> >> On Fri, Nov 6, 2009 at 9:02 PM, Stephen Crosby <stevecrozz@gmail.com>
> >> wrote:
> >> > Nevermine, now I see it:
> >> > https://launchpad.net/~dreamcat4/+archive/testinghttps://launchpad.net/%7Edreamcat4/+archive/testing
> >> >
> >> > I don't know why I didn't see it before. I guess there's no need for
> me
> >> > to
> >> > build my own since you've already done the hard work. Will you be
> >> > maintaining it with security updates and such?
> >>
> >>
> >> The beauty is that Ubuntu php5 main is here:
> >> https://launchpad.net/ubuntu/+source/php5
> >>
> >> They provide all the security update. We just use their ~orig.tar.gz +
> >> diff.gz and can modify / branch / propose merges on top.
> >>
> >> https://launchpad.net/ubuntu/+source/php5/5.2.10.dfsg.1-2ubuntu6.1
> >>
> >> I'd be very grateful if you would wish to informally take over
> >> maintaining as such the unofficial PPA package. Honestly i was going
> >> to update it but never go around to it. Please let me know for any
> >> other issue when you reach them. I'd be happy to help.
> >>
> >>
> >> Best regards,
> >>
> >> dreamcat4
> >> dreamcat4@gmail.com
> >>
> >> > --Stephen
> >> >
> >> > On Fri, Nov 6, 2009 at 1:00 PM, Stephen Crosby <stevecrozz@gmail.com>
> >> > wrote:
> >> >>
> >> >> Dreamcat,
> >> >>
> >> >> Great, I already have my own PPA ready to take a php5 with fpm
> package
> >> >> as
> >> >> soon as I can build one. Have you already done it in your own PPA?
> and
> >> >> is it
> >> >> public?
> >> >>
> >> >> --Stephen
> >> >>
> >> >> On Fri, Nov 6, 2009 at 12:45 PM, dreamcat four <dreamcat4@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> I think so. Yeah, "Step #7" here:
> >> >>>
> >> >>> http://dreamcat4.jottit.com/php5_-_packaging_fpm_for_ubuntu_9.10
> >> >>>
> >> >>> It also gives the steps for uploading to PPA build farm. If you
> >> >>> haven't make yourself a GPG key yet, then i'd recommend just not to
> >> >>> set the passphrase! Its a PITA and a hassle to revoke those things
> >> >>> afterward.
> >> >>>
> >> >>> On Fri, Nov 6, 2009 at 8:29 PM, Stephen Crosby <
> stevecrozz@gmail.com>
> >> >>> wrote:
> >> >>> > Dreamcat,
> >> >>> >
> >> >>> > I didn't realize you had an existing effort here. Does this
> actually
> >> >>> > compile
> >> >>> > with dpkg-buildpackage?
> >> >>> >
> >> >>> > --Stephen
> >> >>> >
> >> >>> > On Fri, Nov 6, 2009 at 12:17 PM, dreamcat four <
> dreamcat4@gmail.com>
> >> >>> > wrote:
> >> >>> >>
> >> >>> >> Allright,
> >> >>> >> Well the answer is simply that the "php-build-dir' path you
> >> >>> >> specifed
> >> >>> >> isn't pointing to any php build directory containing the proper
> php
> >> >>> >> object files. So that's whats missing.
> >> >>> >>
> >> >>> >> Myself, I currently have no better suggestion than to update the
> >> >>> >> existing / outdated 0.6.3 broken rules file. It just seems to me
> as
> >> >>> >> a
> >> >>> >> little easier that way? Its probably not as half as bad as
> starting
> >> >>> >> from scratch.
> >> >>> >>
> >> >>> >> Link:
> >> >>> >> http://github.com/dreamcat4/php5-5.2.10.dfsg.1
> >> >>> >>
> >> >>> >> Key lines to update:
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> http://github.com/dreamcat4/php5-5.2.10.dfsg.1/blob/master/debian/control#L83
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> http://github.com/dreamcat4/php5-5.2.10.dfsg.1/blob/master/debian/rules#L297
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> http://github.com/dreamcat4/php5-5.2.10.dfsg.1/blob/master/debian/rules#L486
> >> >>> >>
> >> >>> >> Whats' missing:
> >> >>> >> * add libevent .deb dependancy
> >> >>> >> * move to integrated compilation
> >> >>> >> * update fpm.patch to revision 103
> >> >>> >> * update the install files phase
> >> >>> >>
> >> >>> >> Should build again on the launchpad ppa build farm after those
> >> >>> >> tweaks.
> >> >>> >>
> >> >>> >> The libevent-dev dependancy just goes in control file listed
> under
> >> >>> >> php5-fpm target.
> >> >>> >> (and add --with-libevent=/usr in rules file).
> >> >>> >>
> >> >>> >> On Fri, Nov 6, 2009 at 5:40 PM, Stephen Crosby
> >> >>> >> <stevecrozz@gmail.com>
> >> >>> >> wrote:
> >> >>> >> > dreamcat4 requested this error log which is attached.
> >> >>> >> >
> >> >>> >> > Here's my build log (after my configure hacks).
> >> >>> >> >
> >> >>> >> > By the way, I don't think I would have a problem creating my
> own
> >> >>> >> > .deb
> >> >>> >> > package. But that's not what I'm trying to do. I want to add it
> >> >>> >> > to a
> >> >>> >> > PPA
> >> >>> >> > so
> >> >>> >> > it can be built automatically and easily by launchpad's build
> >> >>> >> > system.
> >> >>> >> > Which
> >> >>> >> > means the build can only rely on other packages, not source
> code.
> >> >>> >> > If
> >> >>> >> > the
> >> >>> >> > build does actually depend on something that isn't available as
> a
> >> >>> >> > package,
> >> >>> >> > then that's where we'll have to start (creating a package for
> >> >>> >> > that).
> >> >>> >> >
> >> >>> >> > It sounds like dreamcat4 also mentioned building the main php5
> >> >>> >> > package
> >> >>> >> > and
> >> >>> >> > php5-cgi with fpm which might be easier. That was actually my
> >> >>> >> > first
> >> >>> >> > attempt
> >> >>> >> > but I ran into some other problems. We can get into that if we
> >> >>> >> > need
> >> >>> >> > to
> >> >>> >> > also.
> >> >>> >> >
> >> >>> >> > --Stephen
> >> >>> >> >
> >> >>> >> > On Fri, Nov 6, 2009 at 3:20 AM, dreamcat four
> >> >>> >> > <dreamcat4@gmail.com>
> >> >>> >> > wrote:
> >> >>> >> >>
> >> >>> >> >> Hi Steven,
> >> >>> >> >>
> >> >>> >> >> I became involved with this project for similar reasons /
> >> >>> >> >> motivation.
> >> >>> >> >> So I'd love to help you fix these error. You might find it
> >> >>> >> >> tricky
> >> >>> >> >> to
> >> >>> >> >> compile fpm without the php object files however. These aren't
> >> >>> >> >> provided by either php5-dev of php5-common. That's really at
> the
> >> >>> >> >> heart
> >> >>> >> >> of the problem.
> >> >>> >> >>
> >> >>> >> >> Can you please attach the full error log ?
> >> >>> >> >>
> >> >>> >> >> Also; Php-dev package is used to compile php extensions
> >> >>> >> >> otherwise
> >> >>> >> >> known as php modules. It might help to know that usually the
> >> >>> >> >> approach
> >> >>> >> >> for a SAPI component such as php-fpm is to modify the php5
> >> >>> >> >> source
> >> >>> >> >> package. This applies the debian patch set including all of
> the
> >> >>> >> >> security fixes.
> >> >>> >> >>
> >> >>> >> >>
> >> >>> >> >> Best regards,
> >> >>> >> >>
> >> >>> >> >> dreamcat4
> >> >>> >> >> dreamcat4@gmail.com
> >> >>> >> >>
> >> >>> >> >> On Thu, Nov 5, 2009 at 11:53 PM, stevecrozz
> >> >>> >> >> <stevecrozz@gmail.com>
> >> >>> >> >> wrote:
> >> >>> >> >> >
> >> >>> >> >> > I'm looking at the possibilities for packaging php-fpm for
> >> >>> >> >> > debian/
> >> >>> >> >> > ubuntu. I'm running into problems because the php-fpm build
> >> >>> >> >> > process
> >> >>> >> >> > as
> >> >>> >> >> > documented relies on source code from php not just compiled
> >> >>> >> >> > object
> >> >>> >> >> > files. With every other debian/ubuntu package, you can
> simply
> >> >>> >> >> > add
> >> >>> >> >> > a
> >> >>> >> >> > build dependency on *-dev packages such as php5-dev. Here's
> >> >>> >> >> > the
> >> >>> >> >> > manifest for php5-dev so you can see what it provides:
> >> >>> >> >> >
> >> >>> >> >> > http://packages.ubuntu.com/lucid/i386/php5-dev/filelist
> >> >>> >> >> >
> >> >>> >> >> > I just tried using:
> >> >>> >> >> > --with-php-src=/usr/include/php5 \
> >> >>> >> >> > --with-php-build=/usr/lib/php5/build \
> >> >>> >> >> >
> >> >>> >> >> > I got it to compile a bunch of it just fine (after hacking
> >> >>> >> >> > around
> >> >>> >> >> > in
> >> >>> >> >> > configure), but it fails while doing this with a lot of
> >> >>> >> >> > 'undefined
> >> >>> >> >> > references'.
> >> >>> >> >> > $ gcc -Wall -Wpointer-arith -Wno-unused-parameter
> >> >>> >> >> > -Wunused-variable -
> >> >>> >> >> > Wunused-value -fno-strict-aliasing -g -O2 -Wl,-z -Wl,defs -o
> >> >>> >> >> > php_fpm
> >> >>> >> >> > -
> >> >>> >> >> > Wl,--export-dynamic cgi/.libs/libsapi.a fpm/.libs/libfpm.a
> >> >>> >> >> > /usr/lib/
> >> >>> >> >> > gcc/i486-linux-gnu/4.4.1/../../../../lib/libevent.a
> /usr/lib/
> >> >>> >> >> > libxml2.so -lrt
> >> >>> >> >> >
> >> >>> >> >> > Any expert opinions on how to proceed would be welcome.
> >> >>> >> >> >
> >> >>> >> >> > --Stephen
> >> >>> >> >> >
> >> >>> >> >
> >> >>> >> >
> >> >>> >
> >> >>> >
> >> >>
> >> >
> >> >
> >
> >
>