Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551012 - gnome-extra/gnome-user-share-3.14.2 should depend on www-servers/apache[apache2_mpms_prefork]
Summary: gnome-extra/gnome-user-share-3.14.2 should depend on www-servers/apache[apach...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: UPSTREAM
: 524220 578774 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-02 15:53 UTC by Kobboi
Modified: 2016-04-05 17:27 UTC (History)
12 users (show)

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


Attachments
remove prefork module requirement (file_551012.txt,553 bytes, patch)
2015-06-04 02:21 UTC, Steve Dibb (RETIRED)
Details | Diff
ebuild gnome-user-share-3.14.2-r1 (gnome-user-share-3.14.2-r1.ebuild,1.38 KB, text/plain)
2015-06-18 09:20 UTC, Zsolti
Details
patch belonging to gnome-user-share-3-14.2-r1 (gnome-user-share-3.14.2-r1-without-apache-prefork.patch,553 bytes, patch)
2015-06-18 09:24 UTC, Zsolti
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2015-06-02 15:53:16 UTC
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
Comment 1 Pacho Ramos gentoo-dev 2015-06-02 19:07:27 UTC
+  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.
+
Comment 2 Kobboi 2015-06-03 17:01:43 UTC
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? :/
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2015-06-04 02:19:38 UTC
(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.
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2015-06-04 02:21:41 UTC
Created attachment 404552 [details, diff]
remove prefork module requirement
Comment 5 Pacho Ramos gentoo-dev 2015-06-04 07:26:21 UTC
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
Comment 6 Tom-Steve Watzke 2015-06-04 11:02:58 UTC
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
Comment 7 PhobosK 2015-06-07 20:51:23 UTC
Please see bug #551078 ... This one blocks it..
Comment 8 PhobosK 2015-06-08 20:24:09 UTC
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
Comment 9 Pacho Ramos gentoo-dev 2015-06-10 20:57:37 UTC
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
Comment 10 Zsolti 2015-06-18 09:20:01 UTC
Created attachment 405316 [details]
ebuild gnome-user-share-3.14.2-r1
Comment 11 Zsolti 2015-06-18 09:24:16 UTC
Created attachment 405318 [details, diff]
patch belonging to gnome-user-share-3-14.2-r1

Removes requierment for apache-prefork.
Comment 12 Juergen Rose 2015-06-23 10:32:05 UTC
I hit the error again. Any chance that the patch will be included in default portage tree.
Comment 13 Alain Toussaint 2015-09-19 22:22:03 UTC
Any chances the fix goes in? This should be settled a long while ago.

Alain
Comment 14 Juergen Rose 2015-11-20 07:37:16 UTC
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
Comment 15 Pacho Ramos gentoo-dev 2015-11-20 19:35:40 UTC
If anyone could provide a patch fitting https://bugzilla.gnome.org/show_bug.cgi?id=750525#c2 it would be nice
Comment 16 Juergen Rose 2015-11-20 19:49:33 UTC
(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.
Comment 17 Mike Auty (RETIRED) gentoo-dev 2015-11-29 13:53:43 UTC
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...
Comment 18 Pacho Ramos gentoo-dev 2016-04-02 13:43:38 UTC
*** Bug 524220 has been marked as a duplicate of this bug. ***
Comment 19 Pacho Ramos gentoo-dev 2016-04-02 13:43:47 UTC
*** Bug 578774 has been marked as a duplicate of this bug. ***
Comment 20 Juergen Rose 2016-04-04 06:22:42 UTC
And now I have the same issue with gnome-user-share-3.18.1.
Comment 21 Mike Auty (RETIRED) gentoo-dev 2016-04-04 15:24:52 UTC
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?
Comment 22 Pacho Ramos gentoo-dev 2016-04-04 19:06:30 UTC
[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
Comment 23 Mike Auty (RETIRED) gentoo-dev 2016-04-04 20:27:30 UTC
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:)
Comment 24 Pacho Ramos gentoo-dev 2016-04-05 17:27:18 UTC
Thanks to your for your patience