Mk/Uses/apache.mk: Port from Mk/bsd.apache.mk - Move to new Uses framework Differential_Revision: Reviewed_by: Approved by:
Details
- Reviewers
ohauer pgollucci brnrd - Group Reviewers
portmgr - Commits
- rP451470: security/shibboleth-sp: Fix wrongly placed USE_APACHE=
This has been running on my system for a while now (bar the 22/24 -> 2.2/2.4 fix in bsd.ports.mk) during active porting of mod_h2-devel and mod_md-devel.
Just rebuilt all my Apache and PHP ports, these were all OK
See also D12398 for the PHP 7.1 rework
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Well, all deprecation happen in Mk/bsd.sanitiy.mk, don't start putting some in other places.
Move warnings to Mk/bsd.sanity.mk
- Warnings don't belong in Mk/Uses/*.mk
- The APACHE_PORT directive has long been replaced by DEFAULT_VERSIONS
- the www/apache-<mpm>-mpm ports have been deleted
Mk/Uses/apache.mk | ||
---|---|---|
429–430 ↗ | (On Diff #33037) | This code will never be used, you never set _USES_POST+=apache. See Mk/Uses/libtool.mk for an example of how to write a USES with b.p.post.m support. |
Mk/bsd.port.mk | ||
891–892 ↗ | (On Diff #33037) | why this change ? |
1891–1893 ↗ | (On Diff #33037) | Are there any ports that have a USE_APACHE* defined after bsd.port.pre.mk ? |
Fix _POST usage
- Revert spurious change on USE_LDCONFIG
- Find ports with USE_APACHE after bsd.port.pre.mk
Open item: Check list of ports with incorrect USE_APACHE behavior
Mk/Uses/apache.mk | ||
---|---|---|
429–430 ↗ | (On Diff #33037) | Looking at Mk/Uses/libtool.mk makes it clearer how that works |
Mk/bsd.port.mk | ||
891–892 ↗ | (On Diff #33037) | Stale file in my tree? Fixed! |
1891–1893 ↗ | (On Diff #33037) | lang/php70 lang/php56 lang/php71 www/blogsum www/otrs security/shibboleth2-sp Will investigate |
Mk/bsd.port.mk | ||
---|---|---|
1891–1893 ↗ | (On Diff #33037) | The PHP ports are actually 3-in-1. The main port, the mod_php port and the extensions. So the USE_APACHE isn't out of order www/blogsum: Misinterpreted, order OK |
Mk/bsd.port.mk | ||
---|---|---|
1891–1893 ↗ | (On Diff #33037) | These are now fixed/commited/closed |
Further checks and simplification
- common22 is an alias for server,2.2
- Re-order argumnents-checks (run,2.2+ returned an error)
- apache_ARGS are already split in bsd.port.mk
- Remove duplicate incorrect USES usage check
- Remove conditional slated for removal in 2012
- Remove duplicate MIN/MAX version determination
- Simplify MIN/MAX determination
- WITH(OUT)_MODULES should've long been removed in favor of OPTIONS framework
- Simplify STATIC handling
Mk/Uses/apache.mk | ||
---|---|---|
79 ↗ | (On Diff #33802) | Left-over from testing with an additional httpd-trunk port, removed locally |
Several ports directly include Mk/bsd.apache.mk
- Mk/Uses/php.mk
- lang/php56
- lang/php70
- lang/php71
Any remarks?
I've done a full exp-run on the ports tree and haven't found failures due to this change.
The php stuff may work but it's only by luck. Setting USE_APACHE=22+ or USE_APACHE_RUN=22+ before including ${PORTSDIR}/Mk/Uses/apache.mk doesn't have any effect (${PORTSDIR}/Mk/Uses/apache.mk doesn't do anything from those variables)
Also, has anyone from apache@ reviewed this ?
Mk/Uses/apache.mk | ||
---|---|---|
132 ↗ | (On Diff #33802) | Would probably be a good idea to make it fatal. At one point, old glue should be removed. |
Mk/bsd.port.mk | ||
1395–1399 ↗ | (On Diff #33802) | :S/ |
Nope. The apache@ team seems to have insufficient time to fix things.
NB: I'm part of apache@
Rework patches
Mk/bsd.sanity.mk
- APACHE_PORT is fatal
Mk/bsd.port.mk
- Properly transform versions 2.2-24 is now 2.2-2.4
Mk/Uses/apache.mk
- DEFAULT_APACHE_VER is now fatal
- Version checks updated and fixed
- Version selection improved
- Properly default to APACHE_DEFAULT
- Prep for version 2.5
Can't agree more, but I haven't had sufficient rapport on my requests for review sofar. See https://lists.freebsd.org/pipermail/freebsd-apache/2017-November/004408.html
I've had this in use for quite some time now and have
Mk/Uses/apache.mk | ||
---|---|---|
79 ↗ | (On Diff #33802) | Re-added for addition of www/apache25-devel (see D13111) |
Mk/bsd.port.mk | ||
1395–1399 ↗ | (On Diff #33802) | Got it. Improved for use-case of USE_APACHE= 22-24 using :C |
Update diff after bulk build
- Define APACHE_VERSION before using it
- Use .else not .elif for do-build target
Bulk build of modules OK now, see https://keg.brnrd.eu/build.html?mastername=111amd64-default&build=2017-12-13_12h50m22s
Hi Antoine,
This has been long resolved, but the review is still blocked on this. The bulk run was successful, how do we proceed?
I started testing today and do a test on all ports (amd64/i386 FreeBSD 11.1) this weekend
This can be closed. Fixed in #464175
Forgot to add the DiffRev to the commit message :'(