Subject: Re: fix for mk/compiler/gcc.mk
To: None <tech-pkg@netbsd.org>
From: pancake <pancake@phreaker.net>
List: tech-pkg
Date: 02/02/2004 23:35:07
I also have the same problem under FreeBSD/tcsh.
On Mon, Feb 02, 2004 at 12:10:01PM -0800, Jeremy C. Reed wrote:
-- mk/compiler/gcc.mk fails (under Linux with bash) for me with:
--
-- sh: -c: line 2: syntax error: unexpected end of file
-- bmake:
-- "../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
-- line 185: warning: "if /usr/sbin/pkg_info -K /var/db/pkg -qe gcc; then
-- /usr/sbin/pkg_info -K /var/db/pkg -f gcc |
-- /usr/bin/grep "File:.*bin/gcc" | /bin/sed
-- -e "s/.*File: *//;s/bin\/gcc.*//;q"; else
-- gccpath="`type cc | /usr/bin/awk '{ print $NF }'`"; case $gccpath in
-- /usr/*) /bin/echo
-- "`/usr/bin/basename $gccpath`/"; ;;
-- *) /bin/echo "not_found/"; ;;
-- esac" returned non-zero status
-- bmake:
-- "../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
-- line 186: Unassociated shell command "fi"
--
--
-- May I commit the following?
--
-- Index: mk/compiler/gcc.mk
-- ===================================================================
-- RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
-- retrieving revision 1.13
-- diff -b -u -r1.13 gcc.mk
-- --- mk/compiler/gcc.mk 2004/02/02 12:45:08 1.13
-- +++ mk/compiler/gcc.mk 2004/02/02 20:08:25
-- @@ -182,7 +182,7 @@
-- *) \
-- ${ECHO} "not_found/"; \
-- ;; \
-- - esac
-- + esac \
-- fi
-- _GCC_PREFIX= ${LOCALBASE}/${_GCC_SUBPREFIX}
-- _GCC_ARCHDIR!= \
--
--
-- Jeremy C. Reed
-- http://www.reedmedia.net/
--