Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2005 23:27:07 +0100
From:      Florent Thoumie <flz@xbsd.org>
To:        Roman Neuhauser <neuhauser@chello.cz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: CONFLICTS for build, not for install ?
Message-ID:  <4230C9BB.4090704@xbsd.org>
In-Reply-To: <20050310221012.GC37217@isis.wad.cz>
References:  <20050310165048.0b39694f.molter@tin.it> <20050310221012.GC37217@isis.wad.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig262214286F68E8AE411A0EB0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Roman Neuhauser wrote:
> # molter@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

--------------enig262214286F68E8AE411A0EB0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCMMm/MxEkbVFH3PQRAubLAJ9KRiFyvkEh+MSOEtPCqXYsXZnFRgCfXaBd
QusOdFmrc3IlQbR1kl+s8mk=
=0r0M
-----END PGP SIGNATURE-----

--------------enig262214286F68E8AE411A0EB0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4230C9BB.4090704>