Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 14:58:03 +0200
From:      Simon Barner <barner@FreeBSD.org>
To:        Thierry Herbelot <thierry@herbelot.com>
Cc:        Jose M Rodriguez <josemi@freebsd.jazztel.es>, freebsd-ports@freebsd.org
Subject:   Re: bug in patching phase of cups-pstoraster
Message-ID:  <20050628125803.GA1001@zi025.glhnet.mhn.de>
In-Reply-To: <200506281435.33658.thierry@herbelot.com>
References:  <200506281236.08334.thierry@herbelot.com> <200506281337.07507.josemi@redesjm.local> <200506281435.33658.thierry@herbelot.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[Please don't Cc: both ports@FreeBSD.org and freebsd-ports@FreeBSD.org
 in order to avoid duplicates]

Thierry Herbelot wrote:
> Le Tuesday 28 June 2005 13:37, Jose M Rodriguez a =E9crit :
> > El Martes, 28 de Junio de 2005 12:36, Thierry Herbelot escribi=F3:
> > > Hello,
> > >
> > > I have here a R/O shared ports tree, under the /files2 mount point. A
> > > symbolic link points from /usr/ports to /files2/ports
> >
> > This is not enough.  You must define PORTSDIR.
>=20
> This is indeed a work-around, but this is the first port where I saw this=
 kind=20
> of problem (and I have some *hundreds* of ports which build correctly wit=
hout=20
> setting PORTSDIR).

IMO this isn't a workaround, but the correct solution. AFAIK ${PORTSDIR}
is supposed to point to the realpath of your port collection's root
directory.

Is there something bad about setting PORTDIR correctly?
>=20
> This is an explanation :
>=20
> in ports/Mk/bsd.port.mk, WRKDIR is correctly set with :
> WRKDIR?=3D            ${WRKDIRPREFIX}${.CURDIR}/work
>=20
> but in ports/print/cups-pstoraster/Makefile, the new WRKSRC is hardwired =
to :
>  ${WRKDIRPREFIX}${PORTSDIR}/${GHOSTSCRIPT_PORT}/work/ghostscript

Which is because cups-pstoraster needs the ghostscript sources to
build...

You might try whether

${WRKDIRPREFIX}${.CURDIR}/../../${GHOSTSCRIPT_PORT}/work/ghostscript

works without setting PORTSDIR (although I consider that a bit ugly).
>=20
> which is wrong as PORTSDIR points (correctly) to /usr/ports when ${.CURDI=
R} =20
> is /files2/ports
>=20
> for the time being, I will set PORTSDIR.

Regards,
 Simon

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCwUlbCkn+/eutqCoRAoP1AKDnqvPlRpGY1uapTWBAlHzBXD7bjwCaAqi1
8YH6tNcUD5vMeZT5yf2JiQE=
=Q1oS
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--



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