apache 2.2 ports

Adam Weinberger adamw at adamw.org
Tue Sep 9 23:36:42 UTC 2014


On 9 Sep, 2014, at 18:43, olli hauer <ohauer at gmx.de> wrote:

> On 2014-09-10 00:22, Mathieu Arnold wrote:
>> 
>> 
>> +--On 10 septembre 2014 00:19:39 +0200 olli hauer <ohauer at gmx.de> wrote:
>> | On 2014-09-08 15:51, Mathieu Arnold wrote:
>> |> 
>> |> 
>> |> +--On 8 septembre 2014 13:41:54 +0000 Mark Felder <feld at freebsd.org>
>> |> wrote:
>> |> | September 6 2014 10:24 AM, "Adam Weinberger" <adamw at adamw.org> wrote: 
>> |> |> apache team -
>> |> |> 
>> |> |> So it seems that setting USE_APACHE=22 doesn’t actually depend on
>> |> |> apache-2.2. This means that every USE_APACHE=22 port is broken, and as
>> |> |> of right now won’t have any 10.1 packages.
>> |> |> 
>> |> |> I’m happy to go through and add "DEFAULT_VERSIONS= APACHE=22” to
>> |> |> this ports, but I wanted to check with you guys first. Is that the
>> |> |> right way to fix it? Is there something else that can be done to make
>> |> |> USE_APACHE=22 actually depend on apache-2.2?
>> |> |> 
>> |> | 
>> |> | FYI I had to solve this problem today with the following two make.conf
>> |> | options:
>> |> | 
>> |> | DEFAULT_VERSIONS= apache=2.2  
>> |> | 
>> |> | (note it's 2.2, not 22 -- bsd.default-versions.mk shows a period should
>> |> | be used)
>> |> | 
>> |> | APACHE_PORT= www/apache22
>> |> | 
>> |> | 
>> |> | Previously I only had the DEFAULT_VERSIONS entry and it worked fine.
>> |> | Suddenly I needed to add APACHE_PORT as well. This is with an up to
>> |> | date ports tree -- my packages build automatically every 8 hours.
>> |> 
>> |> Yes, bapt sent a patch to fix that
>> |> <https://people.freebsd.org/~bapt/apache-version.diff>
>> | 
>> | 
>> | Based on the patch from bapt, I finished a new one (some cases where
>> | missing)
>> | https://people.freebsd.org/~ohauer/diffs/apache/bsd.apache.mk_20140909.di
>> | ff
>> | 
>> | Perhaps someone wants to test and/or review before I commit this fix
>> | tomorrow.
>> 
>> Using our code review tool to post this patch would have been nice, easier
>> to comment on, and to look at, too :-)
>> 
>> <https://wiki.freebsd.org/CodeReview>
> 
> Here you go: https://reviews.freebsd.org/D750

Hi Olli,

With the old patch in place, there were a few build runs that took place that showed some interesting effects. One that I don’t think gets resolved (and I’m not sure that it really can be) is that packages for a lot of 2.2-dependent ports will be unavailable.

If they depend only on apache-2.2, no problem. But if they depend on ex. mod_something, and the mod_something package is built with the apache-2.4 default, then there will be a conflict when it tries to build the new port.

Really the python team is the only group to actually work around the concurrency problem, but their solution is complex and cumbersome to adapt to another system. It would be really nice if that concurrency system could be extracted and used as an API for other subsystems.

# Adam


-- 
Adam Weinberger
adamw at adamw.org
http://www.adamw.org



More information about the freebsd-apache mailing list