From owner-freebsd-ports@FreeBSD.ORG Thu Jun 23 01:16:58 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0096106564A; Thu, 23 Jun 2011 01:16:57 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 834D98FC08; Thu, 23 Jun 2011 01:16:57 +0000 (UTC) Received: by iyb11 with SMTP id 11so1633456iyb.13 for ; Wed, 22 Jun 2011 18:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to; bh=0Iu+dnxNH1eZiZaSgzLF5RdKMrBtlE23U/IGgZzlEpo=; b=lsAhyVG6c9Apzt+lTVHbOD61siG9EOOyJdctERysG93x1Y8jtdEdSy2KA+fpFx9aWF 9Xde+XbHlBHjOzrThzweLHCfOYwC0dcUAmmALKRnhm/H0wg1jR8wZd1JSpdfJnFqQ4UN f4ans4NwksLMeZgTv2O6b2DFV+V5cGkYz1rac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=YSEraZUMULb0QwQaBhmzlwSfii8crmUKid4RYp89kmRxF1aPFjQri0I6D6ohutlUCH wSisRjkdqBy3w8Is67y+WJC9JMxdjb50H6tzWcwVnOAGaeNjMuUETMCODVSBOzpeklkV dpPn3SVowMuGLba9yBXF6HodayeeCEO/XADmE= Received: by 10.231.60.68 with SMTP id o4mr1227898ibh.12.1308791816804; Wed, 22 Jun 2011 18:16:56 -0700 (PDT) Received: from disbatch.dataix.local (adsl-99-19-44-84.dsl.klmzmi.sbcglobal.net [99.19.44.84]) by mx.google.com with ESMTPS id 4sm613167ibc.42.2011.06.22.18.16.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 18:16:55 -0700 (PDT) Sender: "J. Hellenthal" Received: from disbatch.dataix.local (localhost [127.0.0.1]) by disbatch.dataix.local (8.14.5/8.14.5) with ESMTP id p5N1Gp3I074800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Jun 2011 21:16:51 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by disbatch.dataix.local (8.14.5/8.14.5/Submit) id p5N1GofF074788; Wed, 22 Jun 2011 21:16:50 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Wed, 22 Jun 2011 21:16:50 -0400 From: jhell To: Doug Barton Message-ID: <20110623011650.GA69927@DataIX.net> References: <4E00F5A9.6040900@FreeBSD.org> <20110621200214.GB62312@DataIX.net> <4E00FDD7.3060204@FreeBSD.org> <20110622202809.GA92250@bonjour.sunpoet.net> <4E025828.1020702@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E025828.1020702@FreeBSD.org> Cc: Sunpoet Po-Chuan Hsieh , FreeBSD Ports Subject: Re: shells/ksh93 install fail 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: Thu, 23 Jun 2011 01:16:58 -0000 On Wed, Jun 22, 2011 at 02:01:28PM -0700, Doug Barton wrote: > On 6/22/2011 1:28 PM, Sunpoet Po-Chuan Hsieh wrote: > > On Tue, Jun 21, 2011 at 01:23:51PM -0700, Doug Barton wrote: > >> On 6/21/2011 1:02 PM, jhell wrote: > >>> > >>> > >>> On Tue, Jun 21, 2011 at 12:48:57PM -0700, Doug Barton wrote: > >>>> An effort to upgrade to 20110208_1 is failing for me: > >>>> > >>>> ===> Installing for ksh93-20110208_1 > >>>> ===> Generating temporary packing list > >>>> ===> Checking if shells/ksh93 already installed > >>>> install -o root -g wheel -m 555 > >>>> /usr/local/tmp/usr/ports/shells/ksh93/work/bin/ksh /usr/local/bin/ksh93 > >>>> install: $WRKDIRPREFIX/usr/ports/shells/ksh93/work/bin/ksh: No such file > >>>> or directory > >>>> *** Error code 71 > >>>> > >>>> Is it possible that $WRKDIRPREFIX is the trigger? > >>>> > >>> > >>> I did not actually see that here on 8-STABLE/i386, just for the record. > >> > >> Thanks. At least one person on IRC said that it worked for them with > >> or without $WRKDIRPREFIX, so that's probably not it. What's odd is > >> that these package building systems have been working fine for > >> hundreds of ports for quite a while now, so I'm stumped. > > > > Hi Doug, > > > > I have WRKDIRPREFIX=/usr/ports/works in /etc/make.conf. I'm running a > > 8-STABLE amd64. Do you need me to generate a build log for you to > > further investigate this problem? > > > > BTW, did you run 'find' to search for ksh? The binary must be somewhere > > in the WRKSRC. It might be helpful to know the path of ksh. > > It didn't exist at all. However I think I found the problem. If I remove > the STATIC option everything goes as planned. Perhaps that gives you a > new area to examine? Hey Doug, Can you give this a shot in (usr/ports/shells/ksh93/Makefile) Change this: .if defined(WITH_STATIC) MAKE_ENV+= LDFLAGS=-static .endif To: .if defined(WITH_STATIC) MAKE_ENV+= LDFLAGS+=-static .endif I am getting the distinct feeling here that the ksh binary is not being linked correctly because the override of LDFLAGS causing only -static to be used. You should be able to verify this somewhere either in the output from the build whether the linkage had failed or by verifying that the binary exists in your object tree.