Bug 208243 - USE_APACHE=24+ doesn't work
Summary: USE_APACHE=24+ doesn't work
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 13:29 UTC by Mathieu Arnold
Modified: 2019-08-19 11:47 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer freebsd_triage 2016-03-23 13:29:03 UTC
If you have DEFAULT_VERSIONS=apache=2.2 and a port with USE_APACHE=24+, it decides 22 is ok, and tries to build with it.
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2017-11-05 18:56:52 UTC
Confirmed. Trying to merge this into the USES work
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2017-11-05 19:19:38 UTC
Backing out on including it in USES work. Will be added post-migration

See: https://reviews.freebsd.org/D12308
Comment 3 Jochen Neumeister freebsd_committer freebsd_triage 2018-03-25 17:51:04 UTC
can we close here?
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2018-03-25 18:26:13 UTC
Just tested with new Mk/Uses/apache.mk

In /etc/make.conf

> DEFAULT_VERSIONS=       apache=2.2
then build www/mod_authnz_external24 which contains

> USES=           apache:2.4
this pulls in www/apache24

> $ make build-depends-list
> /usr/ports/ports-mgmt/pkg
> /usr/ports/www/apache24
Comment 5 Mathieu Arnold freebsd_committer freebsd_triage 2018-03-27 08:02:53 UTC
This is about (translated from the original problem) apache:2.4+

If apache:2.4+ works, I'm fine with closing it.
Comment 6 Bernard Spil freebsd_committer freebsd_triage 2018-03-27 13:06:12 UTC
Hi mat,

Checking if I'm missing something here...

If in /etc/make.conf the user sets

> DEFAULT_VERSIONS=       apache=2.2
and the port sets

> USES=           apache:2.4+
it depends on www/apache24 not www/apache22.

If apache22 is already installed it fails in Mk/Uses/apache.mk

===>  ap24-mod_md-devel-1.1.10_3 is marked as broken: : Error from apache.mk.
Apache 2.2 is installed and port requires 2.4.
*** Error code 1

Should we add an additional error for the case where no Apache is installed, DEFAULT_VERSIONS is 2.2 and the port requests 2.4+?

Cheers, Bernard.
Comment 7 Mathieu Arnold freebsd_committer freebsd_triage 2019-08-19 11:47:59 UTC
seems like nobody cared, and apache 2.2 has been removed anyway.