On Fri, Mar 19, 2004, Mike's List wrote:

> Now that I know how to build apache with php/mysql enabled, I need to add
> imap to apache and build php with gettext support...
> 
> This is how apache was built,
> 
> openpkg rpm --rebuild --define 'with_mod_php yes' --define \
> 'with_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm
> 
> ...w/additional support for imap w/in apache, do I just add the below?
> 
>       --define 'with_mod_php_mysql_imap yes'

You remember how to find the valid options ?
-> http://marc.theaimsgroup.com/?l=openpkg-users&m=107950470830001&w=2

"rpm -qip" is for querying rpm archives (e.g. to find the defaults). You
can also list the options of installed packages (and the current settings)
with "rpm -qi pkg" or with "rpm -q --provides pkg" (e.g. "rpm -qi apache"
see man rpm).

So, "with_mod_php_mysql_imap" does not look like a valid option.


> openpkg rpm --rebuild --define 'with_mod_php yes' --define \
> 'with_mod_php_mysql yes' --define 'with_mod_php_mysql_imap yes' \
> ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm
> 
> ...to build PHP with gettext enable do I just do the below?
> 
> openpkg rpm --rebuild --define 'with_mod_gettext yes' \
> ~mike/openpkg/src/php-4.3.4-2.0.0.src.rpm
>
> The key part is --define 'with_mod_<module> yes' and if there's additional
> module you added onto the second definition and third and so on? (like the
> apache example above?)

I'm not quite sure, whether i understand this question. When you have
built e.g. apache with two options and you want another option then you
have to specify all three options in the new build, not only the additional
one. Generally, you have to specify _all_ options that are different from
the defaults in each build.
Also, you have to use "rpm --force -Uvh" to install the modified
binary package.
Did someone already mention openpkg-tool ? ;-)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to