Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249443 - [php overlay] Inclusion request for dev-php5/pecl-haru
Summary: [php overlay] Inclusion request for dev-php5/pecl-haru
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PHP Bugs
URL: http://libharu.org/
Whiteboard:
Keywords:
: 319681 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-01 07:37 UTC by Max Nokhrin
Modified: 2010-09-26 18:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Nokhrin 2008-12-01 07:37:29 UTC
It seems libharu can be built into php. The following article describes the steps outside of portage env: http://devzone.zend.com/article/4044-Dynamically-Generating-PDF-Files-with-PHP-and-Haru- 

It seems all is necessary is to make sure libharu is emerged and to add --with-haru=/usr/local to the build string.

Reproducible: Always
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-08-09 16:33:32 UTC
Wow, this bug is ancient. I'm sorry for not replying sooner. I've added pecl-haru to the overlay. If testing's fine, I'll migrate it to the main tree.
Comment 2 Max Nokhrin 2010-08-09 16:34:46 UTC
Thanks Matti! I'll do some testing and report back!
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-08-10 21:49:07 UTC
*** Bug 319681 has been marked as a duplicate of this bug. ***
Comment 4 Max Nokhrin 2010-08-10 22:29:16 UTC
Seems like a small bug:

lastochka ~ # emerge -av pecl-haru

These are the packages that would be merged, in order:

Calculating dependencies - * Digest verification failed:
 * /var/lib/layman/php/dev-php5/pecl-haru/pecl-haru-1.0.0.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 680
 * Expected: 651
Comment 5 Max Nokhrin 2010-08-10 22:31:09 UTC
Although it's weird, the Manifest for the package has the correct size:

EBUILD pecl-haru-1.0.0.ebuild 651 RMD160

Not sure where it's getting 680 from?
Comment 6 Max Nokhrin 2010-08-10 22:35:16 UTC
Sorry, a bit tired :)

Sorry this isn't a patch, but here's the correct line for the Manifest:

EBUILD pecl-haru-1.0.0.ebuild 680 RMD160 25df20a1a65938316273b495d4b5a5b8009343bc SHA1 28340bc32dfcc4da05b5f7f96fec68fe58f606b9 SHA256 34baf135831a8e8132f627b6fdb37aa3975fda87c73d496ce7a48d40db6b3495
Comment 7 Max Nokhrin 2010-08-10 22:48:04 UTC
I confirm pecl-haru builds just fine on amd64. 
Comment 8 Max Nokhrin 2010-08-11 07:52:17 UTC
As I understand, the php ebuild now needs to be changed to reflect the new haru USE flag? I'm not great at this part, but I've tried to add the flag in the ebuild.  I can get it to appear in the list when doing a merge, but I can't get it to add the --with-haru=<path/to/haru> when doing ./configure. If someone can point me to where that should be added, I can post .patch files shortly.
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2010-08-11 09:17:00 UTC
Quite probable that I broke the Manifest. Sorry about that, I'll fix it later today. And no, you don't need anything in PHP. Just emerge pecl-haru. It'll be added to php as an extension (shared library object) and gets loaded when you start PHP.
Comment 10 Max Nokhrin 2010-08-11 13:51:29 UTC
Ah I see, I guess I missed the restart of apache post install. All works now. I'll do a few more tests and report back here shortly. Thanks!
Comment 11 Max Nokhrin 2010-09-01 06:06:07 UTC
Sorry for the delay in getting back. All works great for me. Just in case:

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.31-gentoo-r6 x86_64)

Thanks!
Comment 12 Max Nokhrin 2010-09-11 06:55:32 UTC
Matti, can you please commit the Manifest with correct checksums?
Comment 13 Ole Markus With (RETIRED) gentoo-dev 2010-09-26 18:26:20 UTC
Seems to be working fine here, so commited.