Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151857 - app-text/refbase-0.8.0 should check that php has pcre, session, and mysql; works on amd64
Summary: app-text/refbase-0.8.0 should check that php has pcre, session, and mysql; wo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-10-18 11:23 UTC by Richard Karnesky
Modified: 2008-02-12 19:23 UTC (History)
3 users (show)

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


Attachments
refbase ebuild modified with ~amd64 and with check for php USE (refbase-0.8.0.ebuild,1012 bytes, text/plain)
2006-10-18 11:24 UTC, Richard Karnesky
Details
ebuild with fixed inherit and header (refbase-0.8.0.ebuild,921 bytes, application/octet-stream)
2006-10-18 11:36 UTC, Richard Karnesky
Details
ignore this one (refbase-0.8.0-r1.ebuild.diff,1.34 KB, patch)
2006-10-18 11:48 UTC, Jakub Moc (RETIRED)
Details | Diff
ignore this one (refbase-0.8.0-r1.ebuild.diff,1.06 KB, patch)
2006-10-18 15:11 UTC, Jakub Moc (RETIRED)
Details | Diff
refbase-0.8.0-r1.ebuild.diff (now) (refbase-0.8.0-r1.ebuild.diff,1.57 KB, patch)
2006-10-18 15:13 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Karnesky 2006-10-18 11:23:29 UTC
I've updated the ebuild to check for pcre, session, and mysql support in PHP (all of which are required) and have also added the ~amd64 keyword.

Other possible ebuild improvements for the future:
* patch install.php to give default paths for bibutils and mysql (though refbase-0.9.0 will already have this functionaliyu)
* automate the sql installation so that install.php doesn't need to be used.
* add unicode USE flag and, if present, check that php was installed with unicode support.
Comment 1 Richard Karnesky 2006-10-18 11:24:35 UTC
Created attachment 99957 [details]
refbase ebuild modified with ~amd64 and with check for php USE
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-18 11:30:36 UTC
Comment on attachment 99957 [details]
refbase ebuild modified with ~amd64 and with check for php USE

Missing inherit there...
Comment 3 Richard Karnesky 2006-10-18 11:36:15 UTC
Created attachment 99958 [details]
ebuild with fixed inherit and header

Thanks.  The header was also screwed up.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-18 11:48:38 UTC
Created attachment 99959 [details, diff]
ignore this one

proper fix for the ebuild

- fix (R)DEPEND (nothing should depend on webapp-config directly, the rest are RDEPENDS only, use need_php instead)
- check for all needed php use flags at once, run webapp_pkg_setup as well, otherwise the ebuild will fail
- do not install COPYING and INSTALL in dodoc
Comment 5 Richard Karnesky 2006-10-18 11:55:52 UTC
Nice fix.

Is there any reason not to have the "~amd64" keyword?  It appears that the ebuild of app-text/bibutils that is in portage is missing it too, but the ebuild which was in bugzilla had it & bibutils also works on amd64.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-18 12:00:39 UTC
I don't have an amd64, so I can't keyword it.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-18 12:02:24 UTC
Why do the PHPCHECKNODIE="yes" when you repeat the same message the eclass uses?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-10-18 12:09:53 UTC
(In reply to comment #7)
> Why do the PHPCHECKNODIE="yes" when you repeat the same message the eclass
> uses?

So that the ebuild doesn't die 3 times if the user has none of the flags set for PHP? Feel free to suggest a better solution... 

(On a side note, why does this even RDEPEND on mysql unconditionally? Can't use remote DB, or?)
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-18 14:18:40 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Why do the PHPCHECKNODIE="yes" when you repeat the same message the eclass
> > uses?
> 
> So that the ebuild doesn't die 3 times if the user has none of the flags set
> for PHP? Feel free to suggest a better solution... 

3 times? How can something die 3 times? The implementation of require_php_with_use() doesn't look like it would die 3 times (although I'm unsure what that means).

> (On a side note, why does this even RDEPEND on mysql unconditionally? Can't use
> remote DB, or?)

That's a rare use case, imho, and not worth considering unless you have a clean way to do it that's already in use elsewhere (I know this isn't the only webapp that uses a DB).
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-10-18 15:11:41 UTC
Created attachment 99970 [details, diff]
ignore this one

(In reply to comment #9)
> The implementation of require_php_with_use() doesn't look like it would die 3
> times (although I'm unsure what that means).

Sigh, because I've attached wrong version of the patch. Read the one attached above. Can't do that otherwise with the eclass if you want to avoid potentially dying repeatedly.

> > (On a side note, why does this even RDEPEND on mysql unconditionally? Can't use
> > remote DB, or?)
> 
> That's a rare use case, imho, and not worth considering unless you have a clean
> way to do it that's already in use elsewhere (I know this isn't the only webapp
> that uses a DB).

mysql? ( >=dev-db/mysql-4.1 )

See http://www.gentoo.org/proj/en/webapps/webapp-eclass.xml. This only needs support for MySQL in PHP, the DB can be anywhere else so there's not much point in forcing it on users.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-10-18 15:13:45 UTC
Created attachment 99971 [details, diff]
refbase-0.8.0-r1.ebuild.diff (now)

Urgh, not my day with attachments really.
Comment 12 Richard Karnesky 2006-10-25 15:29:11 UTC
The patched ebuild worksforme on amd64 and x86.

Also: refbase-0.9.0 has been released & the ebuild works when version bumped.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-25 23:02:09 UTC
Slight variation on #99959 is the way to go, minus the NODIE stuff. Discussed this w Jakub on IRC after noting that refbase supports php-mysql only, not mysqli.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 20:05:40 UTC
<snip>
-require_php_with_use mysql
+require_php_with_use mysql pcre session
</snip>

for the current ebuild... anyone? getting really stale.
Comment 15 Markus Dittrich (RETIRED) gentoo-dev 2008-02-12 19:23:56 UTC
Thanks much for the reminder! I just added the additional
checks and bumped to refbase-0.9.0.

cheers,
Markus