Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64684

Summary: webapp-config should show some signs of progress even without verbose flag
Product: Gentoo Linux Reporter: lenroc
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: minor CC: rockoo
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lenroc 2004-09-19 14:31:49 UTC
Using webapp-config to 'install' web apps into vhosts can take a significant amount of time. Without the "-V" (verbose) flag, there is absolutely 0 output during that process until near the end of the process when there are sometimes configuration questsions, and then at the end when there are post-installation instructions.

As an example, I issued the following command:
webapp-config -I -h localhost -d egroupware egroupware 1.0.00.004

There has been no output for more than 30 minutes.
The only way I know that something isn't broken is that I am checking 'ps x' with another shell to confirm that the process I started is spawning new processes occassionally.

Reproducible: Always
Steps to Reproduce:
1. Emerge a webapp configured to use webapp-config (for example egroupware)
2. Use webapp-config to install/initialize the app (for example with "# webapp-config -I -h nu -d egroupware egroupware 1.0.00.004")
Actual Results:  
Absolutely no output for more ~50 minutes, then the post-install instructions
(or prompts for, e.g., database setup).

Expected Results:  
Some output, such as brief status messages. Some examples:
"Starting installation"
"Copying files"
"Setting permissions"

Alternatively, if it was possible, a progress bar of some sort would be good.
However, I would imagine it would be much more difficult to make one that is
usable/helpful.

I would recommend adding a "quiet" flag to webapp-config to suppress this
output, but not having "quiet" be the default.

In contrast, the "-V" flag is _too_ verbose, listing among other things, _every_
file touched.

As a possible workaround, it would seem that the lines that start with a green
asterisk (when using "-V") would be good lines to print by default.

Portage 2.0.50-r11 (default-ppc-2004.2, gcc-3.4.1, glibc-2.3.3.20040420-r1,
2.6.7-gentoo-r14)
=================================================================
System uname: 2.6.7-gentoo-r14 ppc 740/750
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mtune=powerpc -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=powerpc -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.osuosl.org/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb crypt cups curl curlwrappers dvd ethereal ftp gdbm gif gpm
imap jpeg libwww maildir mime mysql ncurses nls pam pcre perl php png ppc python
readline samba sasl session slang snmp soap sockets spell spl ssl tcpd truetype
usb vhosts xml xml2"
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2005-05-30 03:14:40 UTC
Hi,

I've tweaked the output for webapp-config v1.11.  I hope that's a better 
balance for you.

Best regards,
Stu