From owner-freebsd-ports@FreeBSD.ORG Thu Jun 23 03:18:23 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 D668B106564A; Thu, 23 Jun 2011 03:18:23 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 743898FC16; Thu, 23 Jun 2011 03:18:21 +0000 (UTC) Received: by iwr19 with SMTP id 19so1707578iwr.13 for ; Wed, 22 Jun 2011 20:18:21 -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=sB3KzXQ4bpNqEN18W/N2u8S4O2wN1ALOPg4u61ne37M=; b=bY2iXG5oGoEQsft0NHFihEiVHyll3VdQF1LYlaezflyAGP/JrLOOf24TjQdgPcNPMc 0W6DFlIH8+EVIjjE3O33mbIoQlernJ2s6d8b3bOLlMjhcr0/KX2Eh01CO9Mkh1kri7q0 w2E6Nb+ifCt2vFb1Dgfqu70NAs4kr3BEoeFGg= 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=P5m6/ZAKiLDEvkPlfOmF1foj5J0+g5Ku2y9FDTKxr2HoZJibnXczb1yXbxWiqFvS/c SwGRK/S4t3RQvB0Q/6a8XGcmBDuWKifFMxq6ZhFSH8pZGzvL7P1WI5FS19MVqFY49xEc D8h+JEmMMRruMCN4krc7L/624KTz77h6wI6M8= Received: by 10.42.39.18 with SMTP id f18mr1500452ice.281.1308799100779; Wed, 22 Jun 2011 20:18:20 -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 hw7sm1184487icc.15.2011.06.22.20.18.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 20:18:19 -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 p5N3IGwU024486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Jun 2011 23:18:16 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by disbatch.dataix.local (8.14.5/8.14.5/Submit) id p5N3IFYM024485; Wed, 22 Jun 2011 23:18:15 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Wed, 22 Jun 2011 23:18:15 -0400 From: jhell To: Doug Barton Message-ID: <20110623031815.GA24254@DataIX.net> References: <4E00F5A9.6040900@FreeBSD.org> <20110621200214.GB62312@DataIX.net> <4E00FDD7.3060204@FreeBSD.org> <20110622202809.GA92250@bonjour.sunpoet.net> <4E025828.1020702@FreeBSD.org> <20110623011650.GA69927@DataIX.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <20110623011650.GA69927@DataIX.net> 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 03:18:23 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 22, 2011 at 09:16:50PM -0400, jhell wrote: >=20 >=20 > 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: > > >>>> > > >>>> =3D=3D=3D> Installing for ksh93-20110208_1 > > >>>> =3D=3D=3D> Generating temporary packing list > > >>>> =3D=3D=3D> 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 suc= h 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 rec= ord. > > >> > > >> 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=3D/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 somewhe= re > > > in the WRKSRC. It might be helpful to know the path of ksh. > >=20 > > It didn't exist at all. However I think I found the problem. If I remov= e=20 > > the STATIC option everything goes as planned. Perhaps that gives you a= =20 > > new area to examine? >=20 > Hey Doug, >=20 > Can you give this a shot in (usr/ports/shells/ksh93/Makefile) >=20 > Change this: > .if defined(WITH_STATIC) > MAKE_ENV+=3D LDFLAGS=3D-static > .endif >=20 >=20 > To: > .if defined(WITH_STATIC) > MAKE_ENV+=3D LDFLAGS+=3D-static > .endif >=20 >=20 > 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. As I have just tested this here, this seems to fix the problem. I was able to re-create what Doug was seeing by building with static options and sure enough upon completion of the build it would exit without failure even though ksh/93(sh) was not built. After adding (+) to LDFLAGS so the variable would not be overwriten this has solved it completely allowing the build to pass without errors. --0F1p//8PRICkK4MW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJOArB3AAoJEJBXh4mJ2FR+m3sH/jR+gDStmCY6Di9RPPrCQo4y 7+SRXkSU+3qExff5sJOwzAm8F2mciN4p9pmfUKfCaEXq0wwHigNBYpbgSrdezFKD bY1o1lUWATVa+IMx7ROrCbp34zRCuLKMzwg8Na81DzSwV5bsPHU1aA/MJfGWOnk9 QVhhj8PfnlKBn+fd6d6UFVSHhpqMhnKqnCKxGb+Id3dkMsqY+vK+t2x033j7uom5 vlf5KOAlxK5cp4VDs0ou05Dl5/JyXMJFItqWZeB10rjvRYwPtzY/oNxqZtMq2Yy3 tbq0avA91DGuNA+MygRweFwJlcc8bUN14Vja6wo/8eqq3tPWkEBDsqOVdPhKIPs= =o6q9 -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--