Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2000 02:33:49 +0900
From:      OKAZAKI Tetsurou <okazaki@be.to>
To:        andreas@klemm.gtn.com
Cc:        asami@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: need help with ghostscript6 port, that doesn't build anymore
Message-ID:  <86og6syfpe.wl@dolphin.be.to>
In-Reply-To: In your message of "Sat, 29 Apr 2000 15:58:50 %2B0200" <20000429155850.B9738@titan.klemm.gtn.com>
References:  <20000424182620.A88549@titan.klemm.gtn.com> <vqcg0s5qmqw.fsf@silvia.hip.berkeley.edu> <20000429155850.B9738@titan.klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the message <20000429155850.B9738@titan.klemm.gtn.com> 
Andreas Klemm <andreas@klemm.gtn.com> wrote:

> On Sat, Apr 29, 2000 at 02:28:55AM -0700, Satoshi - Ports Wraith - Asami wrote:
> >  * From: Andreas Klemm <andreas@klemm.gtn.com>
> > 
> >  * Now you wanted me to use WRKDIRPREFIX like in the ghostscript55 port:
> >  * post-extract:
> >  *         ${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \
> >  * 		${WRKSRC}/jpeg
> >  * 
> >  * But the link to the jpeg shows to nirwana.
> > 
> > What particular Nirvana is the jpeg link pointing to?  It seems to
> > work fine here:
> > 
> >   http://bento.FreeBSD.org/errorlogs/errorlogs/a.4.20000427/ghostscript-6.01.log
> > 
> > (I'm assuming it worked because pkg_create exited with no errors.)

> See my other mail where I attached my build

OK. I'll analyze it.

Hmm... Looks like a port "graphic/jpeg" is in the /usr/ports directory to me...

===>   ghostscript-6.01 depends on file: /nonexistent - not found
===>    Verifying extract for /nonexistent in /usr/ports/graphics/jpeg
===>  Extracting for jpeg-6b
>> Checksum OK for jpegsrc.v6b.tar.gz.
...
===>  Patching for ghostscript-6.01
===>  Applying FreeBSD patches for ghostscript-6.01
===>   Applying FreeBSD patch /home/andreas/src/freefall/myports/akl/print/ghostscript6/patches/patch-aa
...
===>   Applying FreeBSD patch /home/andreas/src/freefall/myports/akl/print/ghostscript6/patches/patch-ab
...

Hmm... Looks like your port print/ghostscript6 is in the 
/home/andreas/src/freefall/myports/akl directory to me...

Therefore, 
* jpeg sources was extracted at ${WRKDIRPREFIX}/usr/ports/graphics/jpeg/work/jpeg-6b .
* ${WRKSRC} was specified at
  ${WRKDIRPREFIX}/home/andreas/src/freefall/myports/akl/print/ghostscript6/work .
* ${.CURDIR} has a value of /home/andreas/src/freefall/myports/akl/print/ghostscript6/ .

|post-extract:
|        @${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \
|                ${WRKSRC}/jpeg

So this is the same as:

${LN} -s ${WRKDIRPREFIX}/home/andreas/src/freefall/myports/akl/print/ghostscript6/\
         ../../graphics/jpeg/work/jpeg-6b \
         ${WRKDIRPREFIX}/home/andreas/src/freefall/myports/akl/print/ghostscript6/work

which does not work well unless you extract jpeg sources at 
${WRKDIRPREFIX}/home/andreas/src/freefall/myports/akl/print/ghostscript6/\
../../graphics/jpeg/work/jpeg-6b.

Workaround 1:

* Copy ports you extract-depend on to your ports root directory.

  cd /home/andreas/src/freefall/myports/akl/
  mkdir graphics
  cp -pr /usr/ports/graphics/jpeg graphics/

* Then, make symbolic links from other ports you depend on too.

  ln -sf /usr/ports/graphics/png graphics/png
  mkdir devel
  ln -sf /usr/ports/devel/gmake devel/gmake
  mkdir x11
  ln -sf /usr/ports/x11/XFree86 x11/XFree86

* Specify PORTSDIR=/home/andreas/src/freefall/myports/akl/ when you test your port.

  cd print/ghostscript6
  make PORTSDIR=/home/andreas/src/freefall/myports/akl build

Workaround 2:

* Append the distfile name of the jpeg archive and its master sites to
  the DISTFILES and MASTER_SITES in the Makefile of the ghostscript6 port.

* Then do extract and make a link as you like:-).

--
Tetsurou


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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