>>> Installing (1 of 1) sys-cluster/ganglia-web-3.5.2 * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * ganglia-web-3.5.2 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia-web ganglia-web 3.5.2 * Creating required directories * Linking in required files * This can take several minutes for larger apps * Files and directories installed * Install completed - success * Running /usr/sbin/webapp-cleaner -p -C /ganglia-web /usr/sbin/webapp-cleaner: line 14: /sbin/functions.sh: No such file or directory * Nothing to clean >>> Recording sys-cluster/ganglia-web in "world" favorites file... * Messages for package sys-cluster/ganglia-web-3.5.2: * (config) htdocs/conf_default.php * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * ganglia-web-3.5.2 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia-web ganglia-web 3.5.2 >>> Auto-cleaning packages...
BTW, to get my old URL working (before gangliua-web was split out of ganglia package) I had to do: /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia ganglia-web 3.5.2 I don't think it makes sense to alter the URL every users has meanwhile already learned to something "gentoo" specific, e.g. ganglia-web.
Thanks for the report. I know what's going on but it didn't strick me that it would hit webapp-config.
(In reply to comment #1) > BTW, to get my old URL working (before gangliua-web was split out of ganglia > package) I had to do: > > /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia ganglia-web 3.5.2 > > I don't think it makes sense to alter the URL every users has meanwhile > already learned to something "gentoo" specific, e.g. ganglia-web. What version of webapp-config are you using? This error isn't reproducable on my end using the latest webapp-config in tree. Octo_Azul ~ # equery l webapp-config * Searching for webapp-config ... [IP-] [ ] app-admin/webapp-config-1.50.16-r4:0 * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * ganglia-web-3.5.2 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia-web ganglia-web 3.5.2 * Creating required directories * Linking in required files * This can take several minutes for larger apps * Files and directories installed * Install completed - success * Running /usr/sbin/webapp-cleaner -p -C /ganglia-web * Nothing to clean >>> sys-cluster/ganglia-web-3.5.2 merged. >>> Recording sys-cluster/ganglia-web in "world" favorites file... * Messages for package sys-cluster/ganglia-web-3.5.2: * (config) htdocs/conf_default.php * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * ganglia-web-3.5.2 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /ganglia-web ganglia-web 3.5.2 >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
I have 1.50.19.
(In reply to comment #4) > I have 1.50.19. Ah, wrong machine. It happened on 1.50.16-r4. $ emerge --info Portage 2.1.10.65 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.4.25-default x86_64) ================================================================= System uname: Linux-3.4.25-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.3 Timestamp of tree: Wed, 16 Jan 2013 15:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.5-r2, 2.7.3-r2, 3.1.3-r1, 3.2.3 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.3.6-r1, 4.5.3-r2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo science x-local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE Nero-EULA-US skype-eula Intel-SDP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -ggdb -pipe -fno-strict-aliasing -mmmx -msse -msse2 -mssse3 -march=native -mtune=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -ggdb -pipe -fno-strict-aliasing -mmmx -msse -msse2 -mssse3 -march=native -mtune=native" DISTDIR="/nfslarge/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news nostrip parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/nfslarge/usr/portage" PORTDIR_OVERLAY="/nfslarge/usr/portage/local/layman/science /nfslarge/usr/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X amd64 apache2 apng berkdb bzip2 cgi crypt cxx fortran gd gdbm gsl hal java jce jpeg kerberos laptop mmx modules mpi mpi-threads mpich mpich2 multilib ncurses nptl nptlonly nsplugin openmp pam pcre png python readline server session sse sse2 ssl svg syslog tcpd threads unicode 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
(In reply to comment #5) > (In reply to comment #4) > > I have 1.50.19. > > Ah, wrong machine. It happened on 1.50.16-r4. > That version sources /etc/init.d/functions.sh if -z ${RC_GOT_FUNCTIONS}. First, I think RC_GOT_FUNCTIONS is cruft from bygone days. But even so, if that string were non-zero length then it would just noe source functons.sh @Martin can you post the results of sed -n '12,16p' /usr/sbin/webapp-cleaner @Devan, look in the git history for the commit that added that line and see what its purpose was.
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > I have 1.50.19. > > > > Ah, wrong machine. It happened on 1.50.16-r4. > > > > That version sources /etc/init.d/functions.sh if -z ${RC_GOT_FUNCTIONS}. > First, I think RC_GOT_FUNCTIONS is cruft from bygone days. But even so, if > that string were non-zero length then it would just noe source functons.sh > > @Martin can you post the results of > > sed -n '12,16p' /usr/sbin/webapp-cleaner > > @Devan, look in the git history for the commit that added that line and see > what its purpose was. http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=blobdiff;f=sbin/webapp-cleaner;h=20ca8bd6fb02db99fbe42f83399a8aef66531338;hp=2d8447ee211361848a59311214305eedce6d4a83;hb=faf6f7329fe3ca52e49e09a8a1ada3387864e8e5;hpb=7b039d404077b69c343b8b58eb3c5db783687eeb Well, it looks like the commit was to add GPL to the directory, but the fix for this bug: https://bugs.gentoo.org/show_bug.cgi?id=177775 was added as well during that. It was a fix for webapp-config looking for the functions.sh in /sbin/ instead of /etc/init.d/.
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > (In reply to comment #4) > > was added as well during that. > > It was a fix for webapp-config looking for the functions.sh in /sbin/ > instead of /etc/init.d/. That's the baselayout 2 upgrade. I think the reporter has some old version of webapp-clean on the filesystem.
$ sed -n '12,16p' /usr/sbin/webapp-cleaner WEBAPP_CONFIG= [[ -z ${RC_GOT_FUNCTIONS} ]] && source /sbin/functions.sh function help() { $ ls -la /usr/sbin/webapp-cleaner -rwxr-xr-x 1 root root 2710 Dec 30 2006 /usr/sbin/webapp-cleaner $ Yes, the machine went through the baselayout upgrade.
$ equery belongs webapp-clean * Searching for webapp-clean ... $ equery belongs webapp-config * Searching for webapp-config ... app-admin/webapp-config-1.50.16-r1 (/etc/vhosts/webapp-config) app-admin/webapp-config-1.50.16-r1 (/usr/sbin/webapp-config) $ I don't have webapp-clean?
(In reply to comment #10) > $ equery belongs webapp-clean > * Searching for webapp-clean ... > $ equery belongs webapp-config > * Searching for webapp-config ... > app-admin/webapp-config-1.50.16-r1 (/etc/vhosts/webapp-config) > app-admin/webapp-config-1.50.16-r1 (/usr/sbin/webapp-config) > $ > > I don't have webapp-clean? That was a typo, sorry. You have some older version which is still looking for funsction.sh in the old location. Can you upgrade to a newer version,webapp-config-1.50.19 should be fine. Later today I will go through the older version on the tree and if any have /sbin/functions.sh, they'll be punted.
1.50.16-r1 still had the old baselayout 1 path. Its off the tree now. Thanks for the report!