Date: Wed, 22 Jun 2011 23:18:15 -0400 From: jhell <jhell@DataIX.net> To: Doug Barton <dougb@freebsd.org> Cc: Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: shells/ksh93 install fail Message-ID: <20110623031815.GA24254@DataIX.net> In-Reply-To: <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> <20110623011650.GA69927@DataIX.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110623031815.GA24254>