Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215852 - rt install fails with USE="lighttpd"
Summary: rt install fails with USE="lighttpd"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 11:30 UTC by Stuart Shelton
Modified: 2008-04-03 07:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-04-02 11:30:49 UTC
The "lighttpd" flag should enable webapps (in thie case, requesttracker) to be installed and run againsr lighttpd rather than Apache.

I have a server which doesn't have apache installed, but has lighttpd and upon which I was attempting 'USE="lighttpd" emerge -v rt'.

This failed with:


 * vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * rt-3.6.6 is not installed - using install mode
 * Running /usr/sbin/webapp-config -I -h localhost -u root -d /rt rt 3.6.6
* 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 >=www-servers/apache-1.3" or correct your settings                                                                                                                   .
* Fatal error(s) - aborting

 * Running /usr/sbin/webapp-cleaner -p -C rt
 * Unused versions of rt detected.
 * To clean, run the following command:
 * emerge -Cav =rt-3.6.6
>>> www-apps/rt-3.6.6 merged.

...

 * Messages for package www-apps/rt-3.6.6:

 * If you are upgrading from an existing _RT2_ installation,
 * stop this ebuild (Ctrl-C now), download the upgrade tool,
 * http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz
 * and follow the included instructions.
 * 
 * (server owned) hostroot/rt-3.6.6/var
 * (info) /usr/portage/www-apps/rt/files/3.4.5/postinstall-en.txt (lang: en)
 * (hook) /usr/portage/www-apps/rt/files/3.4.5/reconfig
 * vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * rt-3.6.6 is not installed - using install mode
 * Running /usr/sbin/webapp-config -I -h localhost -u root -d /rt rt 3.6.6
 * GNU info directory index is up-to-date.


This was a first-time install, so the warning about multiple versions is spurious.

Even though the merge thinks that it has succeeded, nothing has been installed into /var/www/localhost/ - and I don't really want to have to install apache to get this to work when I'm not planning to use it.

emerge --info:

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r6 x86_64 Intel(R) Xeon(R) CPU 3075 @ 2.66GHz
Timestamp of tree: Tue, 18 Mar 2008 12:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap mailwrapper midi mmx mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 ssl tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Stuart Shelton 2008-04-02 11:58:54 UTC
... and after installing Apache, to see what happens, the result is now:

>>> Original instance of package unmerged safely.

 * vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * rt-3.6.6 is not installed - using install mode
 * Running /usr/sbin/webapp-config -I -h localhost -u root -d /rt rt 3.6.6
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
#####



#####

* sed: can't read /var/www/localhost/rt-3.6.6/etc/rt_apache*: No such file or directory
* 

=================================================================
POST-INSTALL INSTRUCTIONS
=================================================================


***********************************************************
Now you need to configure your RT installation.
Please follow the Gentoo install guide found at
http://wiki.bestpractical.com/index.cgi?GentooInstallGuide

Your local config files are located here:
/var/www/localhost/rt-3.6.6/etc/RT_Config.pm
/var/www/localhost/rt-3.6.6/etc/RT_SiteConfig.pm

If you need more help, consider searching the mailing list (Google site:lists.fsck.com )

***********************************************************

NOTE:

Some file locations have changed. Everything is now installed into
/var/www/localhost. RT executables are no longer in /usr/bin
You may need to modify your existing configuration files accordingly.

=================================================================

* Install completed - success

 * Running /usr/sbin/webapp-cleaner -p -C rt
 * Nothing to clean
>>> www-apps/rt-3.6.6 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Messages for package www-apps/rt-3.6.6:

 * Cannot find file /.webapp

 * Messages for package www-apps/rt-3.6.6:

 * If you are upgrading from an existing _RT2_ installation,
 * stop this ebuild (Ctrl-C now), download the upgrade tool,
 * http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz
 * and follow the included instructions.
 * 
 * (server owned) hostroot/rt-3.6.6/var
 * (info) /usr/portage/www-apps/rt/files/3.4.5/postinstall-en.txt (lang: en)
 * (hook) /usr/portage/www-apps/rt/files/3.4.5/reconfig
 * vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * rt-3.6.6 is not installed - using install mode
 * Running /usr/sbin/webapp-config -I -h localhost -u root -d /rt rt 3.6.6
 * GNU info directory index is up-to-date.

... so there's still a couple of errors in there even then.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-04-03 07:37:45 UTC
you need to change your /etc/vhosts/webapp-config configuration file, and set vhost_server to lighttpd