Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12441 - mod_php ebuild misses --with-crack[=DIR] in configure
Summary: mod_php ebuild misses --with-crack[=DIR] in configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-19 09:13 UTC by pasi.valminen
Modified: 2003-05-12 14:25 UTC (History)
0 users

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 pasi.valminen 2002-12-19 09:13:45 UTC
With --with-crack=/path/to/cracklib in configure it is possible to use cracklib
functions with php. By default cracklib is installed in emerge system so there
should be no problems. Just adding craclib in DEPEND and --with-crack=/dir
should work.
Comment 1 pasi.valminen 2002-12-19 09:43:50 UTC
Wasn't that easy. :( Tried to compile it --with-crack but it needs packer.h
header file that is not on my box. 
Comment 2 pasi.valminen 2002-12-19 09:51:48 UTC
The needed packer.h is included with sys-libs/cracklib-2.7-r6 and copying it
into /usr/include seems have helped. The ebuild now passes configure. I'll get
back if it compiles and cracklib functions work.
Comment 3 pasi.valminen 2002-12-19 10:15:27 UTC
Ok. It seems to work! :)

I suggest a new sys-libs/cracklib-2.7-r7 ebuild with the following line in
src_install() function:

cp cracklib/*.h ${D}/usr/include

Maybe just the packer.h is enough but i think it's better be on the safe side
since the files are small. 

Then a new dev-php/mod_php-4.2.3-r3 ebuild with the new craclib-2.7-r7
dependency, so we'll get the headers needed. And then --with-crack into
configure options. No path is needed. 

I compiled mod_php-4.2.3-r2 with these small modifications and cracklib
functions seem to work.
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2003-01-31 17:04:26 UTC
this problem should be resolved -- I think.. packer is in /usr/sbin
Comment 5 pasi.valminen 2003-01-31 17:42:01 UTC
No... It needs packer.h, a header file(!), that comes with cracklib package but is not copied to /usr/include by default. It's all in comment #3. 
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2003-01-31 18:19:51 UTC
ok... I committed a fix.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-12 14:25:39 UTC
I'm bumping the version of this to -r7 as the submitted noted originally, for the new PHP eclass rollout (many people have the old cracklib installed with the /usr/include/packer.h, and I don't want a huge pile of bugs about it).
I've put it in ~x86 for the moment, could you please QA it?