Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554062 - www-apps/dokuwiki-20140929d-r1 USE='vhosts' upgrade fails
Summary: www-apps/dokuwiki-20140929d-r1 USE='vhosts' upgrade fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jorge Manuel B. S. Vicetto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-06 08:31 UTC by Neil
Modified: 2015-07-12 20:00 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/temp/die.env (die.env,133.46 KB, text/plain)
2015-07-06 08:31 UTC, Neil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil 2015-07-06 08:31:06 UTC
Updating to www-apps/dokuwiki-20140929d-r1 with USE='vhosts' fails webapp-config reports this is an invalid package version

Reproducible: Always

Steps to Reproduce:
1. emerge -av www-apps/dokuwiki

Actual Results:  
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) www-apps/dokuwiki-20140929d-r1::gentoo
>>> Failed to emerge www-apps/dokuwiki-20140929d-r1, Log file:
>>>  '/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.26, 0.32, 0.52
 * Package:    www-apps/dokuwiki-20140929d-r1
 * Repository: gentoo
 * Maintainer: jmbsvicetto@gentoo.org web-apps@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc gd kernel_linux userland_GNU vhosts
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
* Fatal error: Invalid package version: 20140929d-r1
* Fatal error(s) - aborting
 * ERROR: www-apps/dokuwiki-20140929d-r1::gentoo failed (setup phase):
 *   Could not read settings from webapp-config!
 *
 * Call stack:
 *       ebuild.sh, line  93:  Called pkg_setup
 *       ebuild.sh, line 321:  Called webapp_pkg_setup
 *   webapp.eclass, line 392:  Called webapp_read_config
 *   webapp.eclass, line  60:  Called die
 * The specific snippet of code:
 *         ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could not read settings from webapp-config!"
 *
 * If you need support, post the output of `emerge --info '=www-apps/dokuwiki-20140929d-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/dokuwiki-20140929d-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/temp/die.env'.
 * Working directory: '/usr/lib64/python3.3/site-packages'
 * S: '/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/work/dokuwiki-2014-09-29d' 

Expected Results:  
Expect to emerge and install, even if webapp-config doesn't perform the upgrade (which I've had to perform manually in the past anyway).

# eix webapp-config
[I] app-admin/webapp-config
     Available versions:  1.52-r1 1.53-r2^t (~)1.54 **9999 {+portage PYTHON_TARGETS="pypy python2_7 python3_3 python3_4"}
     Installed versions:  1.54(08:02:21 06/07/15)(portage PYTHON_TARGETS="python2_7 python3_3 -pypy -python3_4")
     Homepage:            http://sourceforge.net/projects/webapp-config/
     Description:         Gentoo's installer for web-based applications
Comment 1 Neil 2015-07-06 08:31:44 UTC
Created attachment 406234 [details]
/var/tmp/portage/www-apps/dokuwiki-20140929d-r1/temp/die.env
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2015-07-11 22:55:14 UTC
Which version of webapp-config are you using?
Comment 3 Devan Franchini (RETIRED) gentoo-dev 2015-07-12 01:23:07 UTC
If you're using 1.54 then I recommend resyncing your tree and installing 1.54-r1. I've added a patch to it which actually handles this same issue:
https://github.com/gentoo/webapp-config/issues/2

Do let me know if this is the same for you. If not I'll have to look further into it. Thanks!
Comment 4 Neil 2015-07-12 07:04:07 UTC
Hi,

Sorry for omitting the version it was =app-admin/webapp-config-1.54.

Synced and updated this morning and the patch you've added has resolved the problem as I've been able to update my dokuwiki install...

# webapp-config -d dokuwiki -h localhost -U dokuwiki 20140929d-r1 
* Upgrading /dokuwiki-20140929d to /dokuwiki-20140929d-r1
*   Installed by root on 2015-04-14 10:56:33
*   Config files owned by 0:0
!time doku.php
!empty data/media_attic
!empty data/media_meta
!empty lib/plugins
!empty data/attic
!empty data/cache
!empty data/index
!empty data/locks
!empty data/media
!empty data/pages
!empty data/meta
!empty lib/tpl
!empty conf
!empty data
!empty lib
--- /var/www/localhost/htdocs/dokuwiki
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
* Install completed - success


Thanks for sorting this so quickly, very much appreciated.

Neil
Comment 5 Devan Franchini (RETIRED) gentoo-dev 2015-07-12 20:00:13 UTC
Thank you for submitting the bug report. I'm glad people are using webapp-config-1.54 already :) I'll be closing this bug now as it's resolved.