From: Stephen Montgomery-Smith on
I am trying to update graphics/togl. I am running into the following issue.

The togl configure file accesses /usr/local/lib/tcl8.5/tclConfig.sh, and
figures out that the port was built in
/usr/ports/lang/tcl85/work/tcl8.5.8. It wants to access that directory.

How do I tell the Makefile in the port to make sure that I have done
something like "cd /usr/ports/lang/tcl85 && make extract"?

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Anonymous on
Stephen Montgomery-Smith <stephen(a)missouri.edu> writes:

> I am trying to update graphics/togl. I am running into the following issue.
>
> The togl configure file accesses /usr/local/lib/tcl8.5/tclConfig.sh,
> and figures out that the port was built in
> /usr/ports/lang/tcl85/work/tcl8.5.8. It wants to access that
> directory.
>
> How do I tell the Makefile in the port to make sure that I have done
> something like "cd /usr/ports/lang/tcl85 && make extract"?

Try to add following

BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:extract
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: jhell on
On 05/22/2010 19:23, Anonymous wrote:
> BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:extract

Attached is the Makefile I just edited to configure against tcl and tk
8.5 instead of 8.4.

I have verified it for functionality (as in) extract, configure, make &
install only.

Before I made the mods I did not make a original copy so this is why I
did not provide a unified diff but I have bumped the the PORTREVISION
from _1 to _2 and it should be ready to be committed as this was a
pretty trivial change.

The most significant change mentioned above was changed to:
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:configure

This was needed to provide configured values that graphics/togl would
then read.

Regards,

--

jhell
From: Garrett Cooper on
On Sat, May 22, 2010 at 7:11 PM, jhell <jhell(a)dataix.net> wrote:
> On 05/22/2010 19:23, Anonymous wrote:
>> BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:extract
>
> Attached is the Makefile I just edited to configure against tcl and tk
> 8.5 instead of 8.4.
>
> I have verified it for functionality (as in) extract, configure, make &
> install only.
>
> Before I made the mods I did not make a original copy so this is why I
> did not provide a unified diff but I have bumped the the PORTREVISION
> from _1 to _2 and it should be ready to be committed as this was a
> pretty trivial change.
>
> The most significant change mentioned above was changed to:
> BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:configure
>
> This was needed to provide configured values that graphics/togl would
> then read.

The danger in this particular case is that you're assuming that
the copy of tcl installed and the copy in ports are one in the same.
Just pre-patch whatever code is monkey fubaring the path lookup to point to:

${LIBDIR}/<tcl-version>/tclConfig.sh

and file the appropriate bug upstream to fix whatever software
package is monkeying up the path.
HTH,
-Garrett
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Anonymous on
jhell <jhell(a)dataix.net> writes:

> On 05/22/2010 19:23, Anonymous wrote:
>> BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl85:extract
>
> Attached is the Makefile I just edited to configure against tcl and tk
> 8.5 instead of 8.4.

I think using bsd.tcl.mk is better idea, see below