Stu, I'm going to comment bugs >>> file (virtual) config.inc.php
*grml* sry, about that one. accidently clicked the submit button. another weird error, when installing mantisbt into /var/www the file config_inc.php which is marked as a config file in the ebuild will get installed as virtual and not config-owned. >>> file (virtual) config_inc.php same happens for phpmyadmin: >>> file (virtual) config.inc.php the old installation from phpmyadmin in /usr/share/webapps worked, after re-emerging i get all config-files marked as virtual. the differnce i found is, that now /usr/share/webapps/${PN}/${PVR}/config-files contains quotes around the filenames.
Yep, the quotes are leading to this. I modified fn_determine_filetype() to print out the values it checks: "htdocs/config.inc.php" htdocs/config.inc.php >>> file (virtual) config.inc.php And these values don't match each other. The attached patch applied to webapp-config makes webapp-config to correctly mark config-files. I suppose the same applies to fn_determine_dirtype() as well. Another way would be to strip off the quotes with some sedfu.
Created attachment 33173 [details, diff] webapp-config.patch This WFM but stripping the quotes maybe a better alternative.
The best way to fix this is to stop the webapp.eclass from adding the quotes in the first place, and then adding some IFS trickery when we read those files. This'll be fixed in -r1. Making bash scripts work with files containing spaces sure is hard work :( Best regards, Stu
webapp-config 1.10-r1 is now out, and contains a fix for this bug. Please test. Best regards, Stu
Works in -r1 as expected.
*** Bug 54012 has been marked as a duplicate of this bug. ***