[SPAM] Re: CONFLICTS for build, not for install
Carlos Eduardo
cartola at openit.com.br
Thu Mar 10 17:05:57 PST 2005
Well, I was about to use the CONFLICT tag Marco... but had already seen
it didnt work out...
I guess the "if exists" is a good way out, as it can explain that its
possible to remove vigra, install enblend and then install vigra again
(well, a little ugly, but...). I must say I'm with little time to spend
on it, will you be able to test those suggestions?
[ ]s.
Em Qui, 2005-03-10 às 23:27 +0100, Florent Thoumie escreveu:
> Roman Neuhauser wrote:
> > # molter at tin.it / 2005-03-10 16:50:48 +0100:
> >
> >>I am trying to update a port (graphics/enblend) that contains its own
> >>version of a library that is a port too: graphics/vigra.
> >>
> >>The source code for enblend does some
> >>#include <vigra/foo>
> >>#include "vigra/bla"
> >>
> >>expecting to include the version of vigra contained in enblend itself.
> >>It seems also that it is mixing at random <> and "". The net effect is
> >>that there are 2 cases:
> >>1. if graphics/vigra is not installed, then enblend compiles and
> >> installs fine.
> >>
> >>2. if graphics/vigra is installed, then the compile of enblend
> >> breaks.
> >>
> >>I tried just setting
> >>CONFLICTS= vigra*
> >>but is seems that CONFLICTS is tested before installing, while I
> >>need it to be tested before building.
> >>
> >>Suggestions? I'd like to avoid rewriting all the #include, although
> >>it might be automated with some sed scripting.
> >
> >
> > (not tested)
> >
> > post-patch:
> > ${GREP} -FIlr '<vigra/' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
> > -e '/#[[:space:]]*include/s,<(vigra/[^>]+)>,"\1"#'
> >
> > or something like that?
>
> If this still doesn't solve the problem, maybe playing with
> -Idirectories order will do.
>
> If this is still not enough, do something like :
>
> .if exists(${LOCALBASE}/include/vigra/foo.h)
> IGNORE= "<your reason>"
> .endif
>
> [...] or BROKEN if you think this issue can be solved with
> further work.
>
>
> -- flz
--
Carlos E. G. Carvalho OpenIT Solucoes Tecnologicas
Consultor Unix/Internet Tel. +55 21 2508-9103
http://www.OpenIT.com.br
http://www.MyFreeBSD.com.br
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem
assinada digitalmente
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050310/0e3d07a1/attachment.bin
More information about the freebsd-ports
mailing list