On Fri, Jul 24, 2009, Alex Huth wrote:

> sorry for asking maybe simple questions, but after reading the manual and
> searching the web for hours i can't get a solution. I am at a new job, never
> used openpkg and have to get a new module into a existing apache asap.
>
> Here what i have done so far:
>
> 1. openpkg rpm -Uvh apache-2.2.11-20090201.src.rpm
>
> 2. rebuild as user admin in apache source tree
>
> openpkg rpm --rebuild "--enable-layout=GNU" "--prefix=/adm" "--
> sysconfdir=/adm/etc/apache2" "--libexecdir=/adm/libexec/apache2" "--with-
> mpm=prefork" "--enable-suexec" "--with-suexec-bin=/adm/sbin/suexec" "--
> with-suexec-caller=admin-n" "--with-suexec-userdir=public_html" "--with-
> suexec-lofile=/adm/var/apache/log/suexec.log" "--enable-ssl" "--with-
> ssl=/adm" "--enable-proxy" "--enable-proxy-connect" "--enable-proxy-http"
> "--enable-proxy-ftp" "--enable-file-cache" "--enable-so" "--enable-spelling"
> "--enable-rewrite" "--enable-headers" "--enable-info" "--enable-mime-magic"
> "--enable-vhost-alias" "--enable-auth-dbm" "--disable-shared" "--disable-
> threads" "--with-dbm=db42" "--with-berkley-db=/adm" "--with-expat=/adm" "--
> with-iconv=/adm" "--enable-deflate" apache-2.2.11-20090201.src.rpm
> --enable-layout=GNU: unknown option
>
> Then i have read in the group that i should use build -D instead of rpm --
> rebuild. OK, here we go now as root:
>
> /adm/bin/openpkg build -D "--enable-layout=GNU" "--prefix=/adm" "--
> sysconfdir=/adm/etc/apache2" "--libexecdir=/adm/libexec/apache2" "--with-
> mpm=prefork" "--enable-suexec" "--with-suexec-bin=/adm/sbin/suexec" "--
> with-suexec-caller=admin-n" "--with-suexec-userdir=public_html" "--with-
> suexec-lofile=/adm/var/apache/log/suexec.log" "--enable-ssl" "--with-
> ssl=/adm" "--enable-proxy" "--enable-proxy-connect" "--enable-proxy-http"
> "--enable-proxy-ftp" "--enable-file-cache" "--enable-so" "--enable-spelling"
> "--enable-rewrite" "--enable-headers" "--enable-info" "--enable-mime-magic"
> "--enable-vhost-alias" "--enable-auth-dbm" "--disable-shared" "--disable-
> threads" "--with-dbm=db42" "--with-berkley-db=/adm" "--with-expat=/adm" "--
> with-iconv=/adm" "--enable-deflate" apache-2.2.11-20090201.src.rpm
> # operating with OpenPKG instance /adm
> # operating with OpenPKG RPM /adm/bin/openpkg rpm
> # fetching XML/RDF index from URL
> ftp://ftp.openpkg.org/stable/2/00INDEX.rdf
> # using internal XML/RDF parser
> openpkg:build:FATAL: an I/O error occured
>
> That's now the point where i need the help! How can i get the additional
> modul into the apache? Where is my failure?

Errr.... your problem simply is that you intermix Apache "configure"
options, "openpkg rpm" options and "openpkg build" options. You can't
just pass an Apache "configure" option to the packaging infrastructure.
You can only enable with "openpkg build -D with_mod_xxx" or "openpkg
rpm --with mod_xxx" what the packaging of Apache explicitly supports.
"openpkg rpm -qpi apache*src.rpm" tells you what this is under
"Provides". For building and installing an Apache with mod_ssl enabled
you have to use "openpkg build -D with_mod_ssl apache | sh". But if you
want to "enable" a custom module (which the packaging doesn't know) you
would first have to extend the packaging. There you cannot expect a
simple option to pass...

                                       Ralf S. Engelschall
                                       r...@engelschall.com
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to