Trying to GNOME's Personal File Sharing, I run into: Jun 02 17:47:14 new-host gnome-session[971]: apache2: Syntax error on line 12 of /usr/share/gnome-user-share/dav_user_2.4.conf: Cannot load /usr/lib64/apache2/modules//mod_mpm_prefork.so into server: /usr/lib64/apache2/modules/mod_mpm_prefork.so: cannot open shared object file: No such file or directory Jun 02 17:47:14 new-host gnome-session[971]: spawning httpd failed Reproducible: Always
+ 02 Jun 2015; Pacho Ramos <pacho@gentoo.org> + -gnome-user-share-3.10.2-r1.ebuild, gnome-user-share-3.14.2.ebuild, + metadata.xml: + www-servers/apache[apache2_mpms_prefork] needed (#551012 by Kobboi), stop + messing with ITSTOOL value, drop old. +
I'm not sure my proposed solution is the correct one, since it seems to imply USE=-threads and I'm not sure if that's something people should have to live with. Maybe the dav_user_2.4.conf file should be adapted? :/
(In reply to Kobboi from comment #2) > I'm not sure my proposed solution is the correct one, since it seems to > imply USE=-threads and I'm not sure if that's something people should have > to live with. Maybe the dav_user_2.4.conf file should be adapted? :/ Yah, that's gotta be an error in the dav_user_2_4.conf file, I'm guessing the dev has the prefork module he's using himself and just left it in there, because it looks for prefork and worker later on anyway, just like the 2.2 one. Simple patch would be to just remove the prefork LoadModule entry.
Created attachment 404552 [details, diff] remove prefork module requirement
Can you please report this to upstream to ensure it's safe to drop that requirement? (and maybe get them to drop it in upstream side too if really possible) -> bugzilla.gnome.org
Yeah, you are right. In addition to your comment, people can't live with: The ebuild or package dev-lang/php with use flag apache2 requires apache2 to be built with threads: The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by dev-lang/php-5.6.9::gentoo[apache2] # required by @selected # required by @world (argument) >=www-servers/apache-2.4.12-r1 threads
Please see bug #551078 ... This one blocks it..
I've tested the ebuild with a removed 'apache2_mpms_prefork' requirement (and apache using default event mpms) + the above patch and it works perfectly well (webdav support incl)... So a solution could be: 1. Remove the 'apache2_mpms_prefork' requirement 2. Add some additional apache2 module deps for apache v2.4 (extracted from the dav_user_2.4.conf): apache2_modules_auth_digest apache2_modules_authn_core apache2_modules_authn_file apache2_modules_authz_core apache2_modules_authz_groupfile apache2_modules_authz_user apache2_modules_dav apache2_modules_dav_fs apache2_modules_unixd Thanks
If anyone can provide an updated patch following upstream solutions at: https://bugzilla.gnome.org/show_bug.cgi?id=750525#c2 I would highly appreciate it (I simply don't have enough time for now to try to prepare that myself :S) Thanks
Created attachment 405316 [details] ebuild gnome-user-share-3.14.2-r1
Created attachment 405318 [details, diff] patch belonging to gnome-user-share-3-14.2-r1 Removes requierment for apache-prefork.
I hit the error again. Any chance that the patch will be included in default portage tree.
Any chances the fix goes in? This should be settled a long while ago. Alain
Now there is the same error with gnome-user-share-3.18.0. 'emerge world' fails with: root@impala:/root(42)# emerge -v --update --newuse --deep --with-bdeps=y --backtrack=30 --exclude root-docs @world These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] dev-libs/vala-common-0.30.0::gentoo [0.28.1::gentoo] 2,662 KiB [ebuild U ] gnome-base/gnome-common-3.18.0:3::gentoo [3.14.0-r1:3::gentoo] USE="autoconf-archive" 153 KiB ... [ebuild U ] gnome-extra/gnome-user-share-3.18.0::gentoo [3.14.2::x-portage] USE="(-bluetooth%*)" 369 KiB ... [ebuild U ] media-video/totem-3.18.1::gentoo [3.16.4::gentoo] USE="introspection nautilus python -debug -lirc {-test} -zeitgeist" PYTHON_TARGETS="python2_7" 3,099 KiB Total: 143 packages (128 upgrades, 15 reinstalls), Size of downloads: 329,288 KiB Conflict: 1 block ... The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by gnome-extra/gnome-user-share-3.18.0::gentoo # required by gnome-base/gnome-extra-apps-3.16.0::gentoo[share] # required by gnome-base/gnome-3.16.0::gentoo[extras] # required by @selected # required by @world (argument) >=www-servers/apache-2.4.16 apache2_mpms_prefork
If anyone could provide a patch fitting https://bugzilla.gnome.org/show_bug.cgi?id=750525#c2 it would be nice
(In reply to Pacho Ramos from comment #15) > If anyone could provide a patch fitting > https://bugzilla.gnome.org/show_bug.cgi?id=750525#c2 it would be nice The patch corresponding to Comment 11 for gnome-user-share-3.14.2-r1 seems also to work for gnome-user-share-3.18.0.
Upstream are providing little to no support in getting this fixed. I haven't been able to find conditional Apache statements to ensure only one MPM gets loaded, even if several have been compiled as modules, and given Gentoo appears to always compile MPMs into Apache directly (although I didn't try very hard to get "peruser" built), I'm beginning to think that perhaps we should just patch that line out in the ebuild...
*** Bug 524220 has been marked as a duplicate of this bug. ***
*** Bug 578774 has been marked as a duplicate of this bug. ***
And now I have the same issue with gnome-user-share-3.18.1.
The gnome-user-share package maintainer clearly has no interest as solving this bug. From the upstream tracker: (In reply to Mike Auty from comment #9) > Has been there been on progress/feedback on this? I'm waiting for somebody who can reproduce the problem to actually fix it. I have plenty of other things to focus on, and this isn't something I'm willing to spend time on. Evidently no one cares enough (including the people who wrote the package) to find the "correct" solution rather than using the one-line sed to patch the configuration this package maintainer added to support his distribution in particular. Please, please, please could we get this 10 month old bug resolved now?
[master 0c4f027] gnome-extra/gnome-user-share: Avoid apache prefork requirement (#551012) 2 files changed, 61 insertions(+) create mode 100644 gnome-extra/gnome-user-share/files/gnome-user-share-3.18.1-no-prefork.patch create mode 100644 gnome-extra/gnome-user-share/gnome-user-share-3.18.1-r1.ebuild gnome-user-share still looks to work... but please confirm :) Thanks
Yep, manually launching /usr/libexec/gnome-user-share-webdav seems to start and run just fine (no changes to my Apache build required), thanks! 5:)
Thanks to your for your patience