On Tue, May 04, 2004, Aaron Bostick wrote:

> I was able to get the apache 2.0.49 from current to compile cleanly on
> my gentoo 1.4.3 by adding --with-berkeley-db=/opkg where /opkg is the
> openpkg root.
>
> For whatever reason, without telling it where to look, it wants to link
> -ldb4.1 but when I pass the --with it links as -ldb, and that works.

Ok, I've taken over this: http://cvs.openpkg.org/chngview?cn=16366
Thanks for your feedback.

> My next question is how do add this --with command as a define so I can
> compile my apache2 using "openpkg build apache2 | sh -"?
>
> I tried:
> openpkg build -Dapache2::with_berkeley_db=/opkg apache2 | sh -
>
> and:
>
> openpkg build -Dapache2::with-berkeley-db=/opkg apache2 | sh -
>
> but neither passed the argument to the configure script?  Do I have to
> modify the .spec file for this?

Yes, you have to modify the .spec for such changes. You can only use
the RPM --with and --without options to change the %option parts of our
.spec files.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to