Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747958 - www-servers/apache-2.4.46: missing USE flag for mod_proxy_uwsgi
Summary: www-servers/apache-2.4.46: missing USE flag for mod_proxy_uwsgi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-12 10:23 UTC by Andrej Lajovic
Modified: 2021-06-15 00:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Lajovic 2020-10-12 10:23:05 UTC
When building www-servers/apache-2.4.46, there is no way to control whether mod_proxy_uwsgi is built – the ebuild does not contain proxy_uwsgi in IUSE_MODULES. On my system, the module seems to be automatically included. Which *is* what I want, but due to the ebuild not being aware of it, a corresponding LoadModule line is not generated in the httpd.conf file, so I had to manually add the directive to load it. I'm not sure whether this is intended behavior or not.

It seems that mod_proxy_uwsgi was transferred from www-servers/uwsgi to www-servers/apache in apache-2.4.30 (see #650776), so I wonder if the respective USE flag for apache has simply not been added yet.

Reproducible: Always

Steps to Reproduce:
1. Search USE flags of apache for anything uwsgi related:
  # equery uses www-servers/apache |grep uwsgi

2. Build www-servers/apache-2.4.46
  # emerge www-servers/apache

3. Check whether mod_proxy has been installed alongside apache:
  # qlist www-servers/apache |grep mod_proxy_uwsgi

4. Check if the LoadModule directive is generated in httpd.conf:
  # grep uwsgi /etc/apache2/httpd.conf
Actual Results:  
1. No uwsgi-related USE flags are present:
  #equery uses www-servers/apache |grep uwsgi
  [no output]

2. [build]

3. mod_proxy_uwsgi is installed:
  # qlist www-servers/apache |grep mod_proxy_uwsgi
  /usr/lib64/apache2/modules/mod_proxy_uwsgi.so

4. No LoadModule directives for the module are present in httpd.conf:
  # grep uwsgi /etc/apache2/httpd.conf            
  [no output]


Expected Results:  
1. I expected to see an entry for apache2_modules_proxy_uwsgi
2. www-servers/apache ebuild should build mod_proxy_uwsgi with regards to the USE flag for this module
3. mod_proxy_uwsgi should be installed only if requested
4. httpd.conf should contain the line
     LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
   if the module was built and installed.
Comment 1 Larry the Git Cow gentoo-dev 2021-06-15 00:12:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16696a5afc1d2adaa19e52c245a0ee2f52cd8d37

commit 16696a5afc1d2adaa19e52c245a0ee2f52cd8d37
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-06-15 00:09:49 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-06-15 00:12:40 +0000

    www-servers/apache: add USE=apache2_modules_proxy_uwsgi
    
    Closes: https://bugs.gentoo.org/747958
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 profiles/desc/apache2_modules.desc      | 1 +
 www-servers/apache/apache-2.4.48.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)