From owner-freebsd-ports@FreeBSD.ORG Sat Jul 7 14:13:12 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98531106564A for ; Sat, 7 Jul 2012 14:13:12 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 301E88FC14 for ; Sat, 7 Jul 2012 14:13:12 +0000 (UTC) Received: by wibhm11 with SMTP id hm11so1289267wib.13 for ; Sat, 07 Jul 2012 07:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DElZvQOQ21M3hGfAgv/tOuMjKBtQ9gIrTGbGeM9YoaY=; b=KYzH5y1+1gI8eTdtqCTTWTR7PmcGYIoHiM2LamUPvbm9ILHX262J4XJxi6tr5xaVCn wW9I2X+ESaHydGANwMZe/DhFobW56riBLvFYljbZ6zLrkQgf9XmlkTl737pgfwRta1yM VRSoEiR4eVoaxXqBd1Hvk+0SBKGrlg6ZDi7HczAkZDkVptOF1UdmTUS0ixDGNQKbcHkP JZl8z6G9mj8cLQtouJGLpgtguwko+8U9CaCapD5UbDuEQD7hhrd02mJ23VO2c6JCjBX+ fllGq64Ug7FsoGxYaLe9Va4h3DgmuTKCnyyosQVYTBHDzj1oX/avAUQFEbBymBWO6a45 LYUw== MIME-Version: 1.0 Received: by 10.180.98.200 with SMTP id ek8mr15788916wib.0.1341670391128; Sat, 07 Jul 2012 07:13:11 -0700 (PDT) Received: by 10.223.103.10 with HTTP; Sat, 7 Jul 2012 07:13:11 -0700 (PDT) In-Reply-To: <4FF82A59.7030201@passap.ru> References: <4FF82A59.7030201@passap.ru> Date: Sat, 7 Jul 2012 17:13:11 +0300 Message-ID: From: Vitaly Magerya To: Boris Samorodov Content-Type: text/plain; charset=UTF-8 Cc: ports@freebsd.org Subject: Re: USE_GMAKE fails in QATty? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2012 14:13:12 -0000 On 07/07/2012, Boris Samorodov wrote: > Seems that Mk/bsd.port.mk assumes that LOCALBASE for gmake > is always /usr/local. Please, try the following patch. > > --- bsd.port.mk 1 Jul 2012 20:57:48 -0000 1.732 > +++ bsd.port.mk 7 Jul 2012 12:20:17 -0000 > @@ -1647,7 +1647,7 @@ > EXTRACT_DEPENDS+= unmakeself:${PORTSDIR}/archivers/unmakeself > .endif > .if defined(USE_GMAKE) > -BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake > +BUILD_DEPENDS+= ${LOCALBASE}/bin/gmake:${PORTSDIR}/devel/gmake > CONFIGURE_ENV+= MAKE=${GMAKE} > .endif It helps partially: gmake is correctly recognized as installed, but building ports with it still does not work since GMAKE is still "gmake". This is additionally needed: --- bsd.commands.mk.orig 2012-07-07 16:59:52.000000000 +0300 +++ bsd.commands.mk 2012-07-07 16:59:44.000000000 +0300 @@ -43,7 +43,7 @@ FIND?= /usr/bin/find FLEX?= /usr/bin/flex FMT?= /usr/bin/fmt -GMAKE?= gmake +GMAKE?= ${LOCALBASE}/bin/gmake GREP?= /usr/bin/grep GUNZIP_CMD?= /usr/bin/gunzip -f GZCAT?= /usr/bin/gzcat The problem comes down to the fact that redports/QATty changes LOCALBASE, but does not put it into PATH. Are ports are supposed to work without $LOCALBASE/bin in PATH? Maybe it's just a glitch in redports setup?