* [gentoo-web-user] Making use of webapp optional
@ 2007-03-04 7:56 Dirk Tilger
2007-03-04 15:03 ` Renat Lumpau
0 siblings, 1 reply; 7+ messages in thread
From: Dirk Tilger @ 2007-03-04 7:56 UTC (permalink / raw
To: gentoo-web-user
Hi guys,
I'm trying to enhance the mapserver ebuild to support building no CGI at
all. The software can be built as extension for many programming
languages and a CGI is not strictly necessary.
It was suggested in #gentoo-web on freenode that I should use the 'cgi'
USE flag for this purpose. I wrapped all calls to webapp functionality
with `if use cgi` or an equivalent, but then I'm getting at the very end
of the build process:
| >>> Original instance of package unmerged safely.
| *
| * This ebuild did not call webapp_src_install() at the end
| * of the src_install() function
| *
| * Please log a bug on http://bugs.gentoo.org
| *
| * You should use emerge -C to remove this package, as the
| * installation is incomplete
| *
|
| !!! ERROR: sci-geosciences/mapserver-4.10.0 failed.
| Call stack:
| ebuild.sh, line 1595: Called qa_call 'pkg_postinst'
| environment, line 4827: Called pkg_postinst
| ebuild.sh, line 1304: Called webapp_pkg_postinst
| webapp.eclass, line 462: Called die
|
| !!! Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org
| !!! If you need support, post the topmost build error, and the call stack if relevant.
| !!! A complete build log is located at '/var/tmp/portage/sci-geosciences/mapserver-4.10.0/temp/build.log'.
|
| !!! FAILED postinst: 1
| !!! This ebuild is from an overlay: '/home/dirk/overlay'
When I do run the webapp_src_install() function, I get at the end:
| * Running //usr/sbin/webapp-config -I -h localhost -u root -d /mapserver mapserver 4.10.0
| * Fatal error: Your configuration file sets the server type "Apache"
| * Fatal error: but the corresponding package does not seem to be installed!
| * Fatal error: Please "emerge >=net-www/apache-1.3" or correct your settings.
| * Fatal error(s) - aborting
|
| * Running //usr/sbin/webapp-cleaner -p -C mapserver
The only solution I have found so far is to wrap 'inherit webapp' with
`use cgi` everything works, but then my ebuild gets rejected, because
that would prevent metacaching as was pointed out to me at bugzilla.
Any suggestions would be highly appreciated.
Thanks in advance,
Dirk.
--
gentoo-web-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-04 7:56 [gentoo-web-user] Making use of webapp optional Dirk Tilger
@ 2007-03-04 15:03 ` Renat Lumpau
2007-03-05 7:00 ` Dirk
0 siblings, 1 reply; 7+ messages in thread
From: Renat Lumpau @ 2007-03-04 15:03 UTC (permalink / raw
To: gentoo-web-user
[-- Attachment #1: Type: text/plain, Size: 694 bytes --]
On Sun, 2007-03-04 at 11:56 +0400, Dirk Tilger wrote:
> Hi guys,
>
> I'm trying to enhance the mapserver ebuild to support building no CGI at
> all. The software can be built as extension for many programming
> languages and a CGI is not strictly necessary.
>
> It was suggested in #gentoo-web on freenode that I should use the 'cgi'
> USE flag for this purpose. I wrapped all calls to webapp functionality
> with `if use cgi` or an equivalent, but then I'm getting at the very end
> of the build process:
Could you attach or pastebin your ebuild?
Best,
--
Renat Lumpau all things web-apps
C6A838DA 04AF B5EE 17CB 1000 DDA5 D3FC 1338 ADC2 C6A8 38DA
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-04 15:03 ` Renat Lumpau
@ 2007-03-05 7:00 ` Dirk
2007-03-05 15:11 ` Renat Lumpau
0 siblings, 1 reply; 7+ messages in thread
From: Dirk @ 2007-03-05 7:00 UTC (permalink / raw
To: gentoo-web-user
On Sun, Mar 04, 2007 at 10:03:09AM -0500, Renat Lumpau wrote:
> On Sun, 2007-03-04 at 11:56 +0400, Dirk Tilger wrote:
> > Hi guys,
> >
> > I'm trying to enhance the mapserver ebuild to support building no CGI at
> > all. The software can be built as extension for many programming
> > languages and a CGI is not strictly necessary.
> >
> > It was suggested in #gentoo-web on freenode that I should use the 'cgi'
> > USE flag for this purpose. I wrapped all calls to webapp functionality
> > with `if use cgi` or an equivalent, but then I'm getting at the very end
> > of the build process:
>
> Could you attach or pastebin your ebuild?
That was the version that ended compilation in:
| * Fatal error: Your configuration file sets the server type "Apache"
| * Fatal error: but the corresponding package does not seem to be installed!
| * Fatal error: Please "emerge >=net-www/apache-1.3" or correct your settings.
| * Fatal error(s) - aborting
http://pastebin.com/893768
The other try had line 302 and line 305 wrapped in `if use cgi`.
Dirk.
--
gentoo-web-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-05 7:00 ` Dirk
@ 2007-03-05 15:11 ` Renat Lumpau
2007-03-06 10:51 ` Dirk
0 siblings, 1 reply; 7+ messages in thread
From: Renat Lumpau @ 2007-03-05 15:11 UTC (permalink / raw
To: gentoo-web-user
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
On Mon, 2007-03-05 at 11:00 +0400, Dirk wrote:
> On Sun, Mar 04, 2007 at 10:03:09AM -0500, Renat Lumpau wrote:
> > On Sun, 2007-03-04 at 11:56 +0400, Dirk Tilger wrote:
> > > Hi guys,
> > >
> > > I'm trying to enhance the mapserver ebuild to support building no CGI at
> > > all. The software can be built as extension for many programming
> > > languages and a CGI is not strictly necessary.
> > >
> > > It was suggested in #gentoo-web on freenode that I should use the 'cgi'
> > > USE flag for this purpose. I wrapped all calls to webapp functionality
> > > with `if use cgi` or an equivalent, but then I'm getting at the very end
> > > of the build process:
> >
> > Could you attach or pastebin your ebuild?
>
> That was the version that ended compilation in:
> | * Fatal error: Your configuration file sets the server type "Apache"
> | * Fatal error: but the corresponding package does not seem to be installed!
> | * Fatal error: Please "emerge >=net-www/apache-1.3" or correct your settings.
> | * Fatal error(s) - aborting
>
> http://pastebin.com/893768
>
pastebin.com doesn't seem to work too well. Could you try elsewhere?
Best,
--
Renat Lumpau all things web-apps
C6A838DA 04AF B5EE 17CB 1000 DDA5 D3FC 1338 ADC2 C6A8 38DA
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-05 15:11 ` Renat Lumpau
@ 2007-03-06 10:51 ` Dirk
2007-03-13 22:34 ` Renat Lumpau
0 siblings, 1 reply; 7+ messages in thread
From: Dirk @ 2007-03-06 10:51 UTC (permalink / raw
To: gentoo-web-user
On Mon, Mar 05, 2007 at 10:11:36AM -0500, Renat Lumpau wrote:
> pastebin.com doesn't seem to work too well. Could you try elsewhere?
http://ostec.org/~dirk/mapserver-4.10.0.ebuild
Dirk.
--
gentoo-web-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-06 10:51 ` Dirk
@ 2007-03-13 22:34 ` Renat Lumpau
2007-03-14 17:45 ` Dirk
0 siblings, 1 reply; 7+ messages in thread
From: Renat Lumpau @ 2007-03-13 22:34 UTC (permalink / raw
To: gentoo-web-user
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
On Tue, 2007-03-06 at 14:51 +0400, Dirk wrote:
> On Mon, Mar 05, 2007 at 10:11:36AM -0500, Renat Lumpau wrote:
> > pastebin.com doesn't seem to work too well. Could you try elsewhere?
>
> http://ostec.org/~dirk/mapserver-4.10.0.ebuild
I'm not sure I see what the problem is. Have you tried wrapping _all_
calls to webapp.eclass functions in use cgi && {} blocks?
Best,
--
Renat Lumpau all things web-apps
C6A838DA 04AF B5EE 17CB 1000 DDA5 D3FC 1338 ADC2 C6A8 38DA
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-web-user] Making use of webapp optional
2007-03-13 22:34 ` Renat Lumpau
@ 2007-03-14 17:45 ` Dirk
0 siblings, 0 replies; 7+ messages in thread
From: Dirk @ 2007-03-14 17:45 UTC (permalink / raw
To: gentoo-web-user
On Tue, Mar 13, 2007 at 06:34:18PM -0400, Renat Lumpau wrote:
> On Tue, 2007-03-06 at 14:51 +0400, Dirk wrote:
> > On Mon, Mar 05, 2007 at 10:11:36AM -0500, Renat Lumpau wrote:
> > > pastebin.com doesn't seem to work too well. Could you try elsewhere?
> >
> > http://ostec.org/~dirk/mapserver-4.10.0.ebuild
>
> I'm not sure I see what the problem is. Have you tried wrapping _all_
> calls to webapp.eclass functions in use cgi && {} blocks?
I tried:
- to wrap all calls
- to wrap all calls that make the CGI being installed
- wrap all calls and 'inherit webapp'
They all showed unwanted side effects.
My goal is to make the dependency on Apache (or any other) webserver
optional for this package.
Dirk.
--
gentoo-web-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-03-14 17:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-04 7:56 [gentoo-web-user] Making use of webapp optional Dirk Tilger
2007-03-04 15:03 ` Renat Lumpau
2007-03-05 7:00 ` Dirk
2007-03-05 15:11 ` Renat Lumpau
2007-03-06 10:51 ` Dirk
2007-03-13 22:34 ` Renat Lumpau
2007-03-14 17:45 ` Dirk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox