Re: port mit optionalem Patch ausstatten

From: Rainer Duffner <rainer(at)ultra-secure.de>
Date: Mon, 17 Jan 2011 23:17:59 +0100

Am 17.01.2011 um 17:12 schrieb Oliver Fromme:

> rainer(at)ultra-secure.de wrote:
>> OPTIONS= DUPLICATE_HEADER "allow duplicate headers patch" off
>>
>> .if defined(WITH_DUPLICATE_HEADER)
>> EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-mod_fastcgi.c
>> .endif
>
> Zwischen dem »OPTIONS=...« und dem ».if defined(...)« musst
> Du noch folgendes einfügen:
>
> .include <bsd.port.options.mk>
>
> Das wertet die Optionen aus und setzt die WITH_*/WITHOUT_*
> Variablen. Siehe auch das Porter's Handbook; da sollte das
> alles detailliert drinstehen.

Hm. Eigentlich eher nicht.
Dafür ist dort ausführlich beschrieben, was man machen muss, wenn man
zig Patches von zig verschiedenen Sites runterziehen will.

Also das Problem ist, es geht immer noch nicht:

# New ports collection makefile for: mod_fastcgi ( in apache )
# Date created: 14 Jul 2000
# Whom: JunSeon Oh <hollywar(at)mail.holywar.net>
#
# $FreeBSD: ports/www/mod_fastcgi/Makefile,v 1.27 2010/05/07 05:24:14
pgollucci Exp $
#

PORTNAME= mod_fastcgi
PORTVERSION= 2.4.6
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.fastcgi.com/dist/

MAINTAINER= apache(at)FreeBSD.org
COMMENT= A fast-cgi module for Apache

MAKE_JOBS_SAFE= yes

CONFLICTS= apache-contrib-1.*
USE_APACHE= 1.3+
AP_FAST_BUILD= yes
AP_GENPLIST= yes
SRC_FILE= *.c
PORTDOCS= LICENSE.TERMS mod_fastcgi.html

OPTIONS= DUPLICATE_HEADER "allow duplicate headers patch" off

.include <bsd.port.options.mk>

.if defined(WITH_DUPLICATE_HEADER)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-mod_fastcgi.c
.endif

post-install:
.if !defined(NOPORTDOCS)
         ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
         ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>

Das Problem ist, irgendwie wird nicht erkannt, das die Option gesetzt
ist:
Alles was in dem entsprechenden Block steht, wird gar nicht ausgeführt.

(build1 <mod_fastcgi>) 0 # cat /var/db/ports/ap22-mod_fastcgi/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for ap22-mod_fastcgi-2.4.6_1
_OPTIONS_READ=ap22-mod_fastcgi-2.4.6_1
WITH_DUPLICATE_HEADER=true

Wahrscheinlich gibt es da also noch irgendwo einen "Trick"....

Gruss,
Rainer

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 17 Jan 2011 - 23:18:08 CET

search this site