Subject: pkg/26831: tla fails to build on Darwin
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <cmathieu@loutre.ath.cx>
List: pkgsrc-bugs
Date: 09/02/2004 10:21:45
>Number:         26831
>Category:       pkg
>Synopsis:       tla fails to build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 02 10:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Clément MATHIEU
>Release:        
>Organization:
>Environment:
Darwin castor.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug  5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC  Power Macintosh powerpc
>Description:
It seems there is a typo in Makefile. tla is asking for gdiff3 not gdiff.

castor:/Volumes/NetBSD/pkgsrc/devel/tla root# ALLOW_VULNERABLE_PACKAGES=1 bmake 
=> Checksum OK for tla-1.2.1/tla-1.2.1.tar.gz.
===> Extracting for tla-1.2.1nb1
===> Required installed package patch-[0-9]*: patch-2.5.4nb2 found
===> Required installed package diffutils-[0-9]*: diffutils-2.8.1 found
===> Required installed package gtar-base-[0-9]*: gtar-base-1.13.25nb2 found
/bin/mkdir -p /Volumes/NetBSD/pkgsrc/devel/tla/work/tla-1.2.1/src/=build
===> Patching for tla-1.2.1nb1
===> Overriding tools for tla-1.2.1nb1
===> Configuring for tla-1.2.1nb1

The configured versions of diff and diff3 do not handle files
not ending in newline correctly.

  configured diff = /Volumes/NetBSD/pkg/bin/gdiff.
  configured diff3 = /Volumes/NetBSD/pkg/bin/gdiff.


Use config options
  --with-gnu-diff PROG
  --with-gnu-diff3 PROG

>How-To-Repeat:
cd $(prefix)/devel/tla && bmake
>Fix:
castor:/Volumes/NetBSD/pkgsrc/devel/tla root# diff -u Makefile.old Makefile
--- Makefile.old        Thu Sep  2 12:26:10 2004
+++ Makefile    Thu Sep  2 12:26:07 2004
@@ -25,7 +25,7 @@
 CONFIGURE_SCRIPT=      ../configure
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
 CONFIGURE_ARGS+=       --with-gnu-diff=${PREFIX}/bin/${GNU_PROGRAM_PREFIX}diff
-CONFIGURE_ARGS+=       --with-gnu-diff3=${PREFIX}/bin/${GNU_PROGRAM_PREFIX}diff
+CONFIGURE_ARGS+=       --with-gnu-diff3=${PREFIX}/bin/${GNU_PROGRAM_PREFIX}diff3
 CONFIGURE_ARGS+=       --with-gnu-patch=${PREFIX}/bin/${GNU_PROGRAM_PREFIX}patch
 CONFIGURE_ARGS+=       --with-gnu-tar=${PREFIX}/bin/${GNU_PROGRAM_PREFIX}tar

>Release-Note:
>Audit-Trail:
>Unformatted: