Date: Wed, 19 Dec 2007 16:59:37 +0100 From: Pietro Cerutti <gahr@gahr.ch> To: Paul Schmehl <pauls@utdallas.edu> Cc: pav@FreeBSD.org, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Optional patching Message-ID: <47693FE9.20701@gahr.ch> In-Reply-To: <4D1AAAB26DADCFB11343F6B3@utd59514.utdallas.edu> References: <4D1AAAB26DADCFB11343F6B3@utd59514.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB80AED1A804B4DC74813E946 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Paul Schmehl wrote: > Is there a way to include a patch as an option to a port? I maintain > the security/barnyard port. There's a patch that is necessary for > barnyard to work correctly on a 64bit system. I'm wondering if I can > use OPTIONS to make this patch optional if the system is 64 bit, but I'= m > not sure what the syntax would be inside the if statement. >=20 > .if defined(WITH_64BIT) > do-patch: patchname > .endif I would do something like (please check the list of 64 bits platforms) =2Eif ${ARCH} =3D=3D "amd64" || ${ARCH} =3D=3D "ia64" || ${ARCH} =3D=3D "= sparc64" # apply the patch here =2Eendif >=20 > I assume the patch would have to be in the filesdir but could not be > named "patch-foo" or it would always be applied, correct? >=20 Please check the reply from pav@ for this ;-) --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enigB80AED1A804B4DC74813E946 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.7 (FreeBSD) iD8DBQFHaT/twMJqmJVx944RCm4CAJ4wI6qHrVPfx/Jf9NyuSE4DXggTtgCgnIhM lNhrouqTjj2zoqHroKLsRug= =VZ6x -----END PGP SIGNATURE----- --------------enigB80AED1A804B4DC74813E946--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47693FE9.20701>