Gentoo Archives: gentoo-web-user

From: Dirk Tilger <dirk@××××××.de>
To: gentoo-web-user@l.g.o
Subject: [gentoo-web-user] Making use of webapp optional
Date: Sun, 04 Mar 2007 07:57:45
Message-Id: 20070304075610.GA13389@miriup.de
1 Hi guys,
2
3 I'm trying to enhance the mapserver ebuild to support building no CGI at
4 all. The software can be built as extension for many programming
5 languages and a CGI is not strictly necessary.
6
7 It was suggested in #gentoo-web on freenode that I should use the 'cgi'
8 USE flag for this purpose. I wrapped all calls to webapp functionality
9 with `if use cgi` or an equivalent, but then I'm getting at the very end
10 of the build process:
11
12 | >>> Original instance of package unmerged safely.
13 | *
14 | * This ebuild did not call webapp_src_install() at the end
15 | * of the src_install() function
16 | *
17 | * Please log a bug on http://bugs.gentoo.org
18 | *
19 | * You should use emerge -C to remove this package, as the
20 | * installation is incomplete
21 | *
22 |
23 | !!! ERROR: sci-geosciences/mapserver-4.10.0 failed.
24 | Call stack:
25 | ebuild.sh, line 1595: Called qa_call 'pkg_postinst'
26 | environment, line 4827: Called pkg_postinst
27 | ebuild.sh, line 1304: Called webapp_pkg_postinst
28 | webapp.eclass, line 462: Called die
29 |
30 | !!! Ebuild did not call webapp_src_install() - report to http://bugs.gentoo.org
31 | !!! If you need support, post the topmost build error, and the call stack if relevant.
32 | !!! A complete build log is located at '/var/tmp/portage/sci-geosciences/mapserver-4.10.0/temp/build.log'.
33 |
34 | !!! FAILED postinst: 1
35 | !!! This ebuild is from an overlay: '/home/dirk/overlay'
36
37 When I do run the webapp_src_install() function, I get at the end:
38
39 | * Running //usr/sbin/webapp-config -I -h localhost -u root -d /mapserver mapserver 4.10.0
40 | * Fatal error: Your configuration file sets the server type "Apache"
41 | * Fatal error: but the corresponding package does not seem to be installed!
42 | * Fatal error: Please "emerge >=net-www/apache-1.3" or correct your settings.
43 | * Fatal error(s) - aborting
44 |
45 | * Running //usr/sbin/webapp-cleaner -p -C mapserver
46
47 The only solution I have found so far is to wrap 'inherit webapp' with
48 `use cgi` everything works, but then my ebuild gets rejected, because
49 that would prevent metacaching as was pointed out to me at bugzilla.
50
51 Any suggestions would be highly appreciated.
52 Thanks in advance,
53 Dirk.
54 --
55 gentoo-web-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-web-user] Making use of webapp optional Renat Lumpau <rl03@g.o>