Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482092 - www-servers/apache all versions need net w/o reason
Summary: www-servers/apache all versions need net w/o reason
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard: Patches are highly welcome
Keywords:
Depends on:
Blocks: need-net
  Show dependency tree
 
Reported: 2013-08-22 13:35 UTC by Michael Weber (RETIRED)
Modified: 2020-12-01 13:16 UTC (History)
1 user (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 Michael Weber (RETIRED) gentoo-dev 2013-08-22 13:35:41 UTC
While it's usefull in configuration binding to specific network addresses (which are associated with certain net devices) a dependency on all network interfaces is uncalled-for. Default config binds to *:80 / *:443 which is address agnostic.

Openssh added some magic to detect non-standard configurations in init.d script, maybe apache2 -S (syntax check) is a way to accomplish this here.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2013-08-22 13:39:22 UTC
To be more precise, on a multi-homed sertup, I most likely want the webserver run on the public interface (net.eth0 or a bridged net.br0 in virtualization setups) but not on the masqueraded private interface net.br1, which gets reloaded every-time I add another net.tapN for the next box. so my apache depends on net.br0 which is exlicitly set in conf.d.
Comment 2 Larry the Git Cow gentoo-dev 2020-12-01 12:19:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/apache.git/commit/?id=db9bc13b034e1dcca1765dbf0e2a7efcc1b6d3ba

commit db9bc13b034e1dcca1765dbf0e2a7efcc1b6d3ba
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-12-01 12:07:58 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-01 12:12:40 +0000

    2.4/init: Attempt to provide a way to no longer "need net" in depend
    
    Code blatantly stolen from net-misc/openssh init script
    
    Bug: https://bugs.gentoo.org/482092
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 2.4/init/apache2.initd | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
Comment 3 Larry the Git Cow gentoo-dev 2020-12-01 13:16:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9859769d9175ec7b6b972c21023d40f31ae5f0

commit 2c9859769d9175ec7b6b972c21023d40f31ae5f0
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-12-01 13:15:41 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-01 13:15:57 +0000

    www-servers/apache: Revbump to provide a way to no longer "need net"
    
    in openrc init script
    
    Closes: https://bugs.gentoo.org/482092
    Package-Manager: Portage-3.0.11, Repoman-3.0.2
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 www-servers/apache/Manifest                |   1 +
 www-servers/apache/apache-2.4.46-r2.ebuild | 274 +++++++++++++++++++++++++++++
 2 files changed, 275 insertions(+)