Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2015 16:50:29 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Garrett Cooper <ngie@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r276052 - head
Message-ID:  <68874DE1-3EAE-4A4D-9760-7661DA7AE846@FreeBSD.org>
In-Reply-To: <201412220452.sBM4qPAx096443@svn.freebsd.org>
References:  <201412220452.sBM4qPAx096443@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_57796C0D-5952-47AF-9553-2403778C72DC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 22 Dec 2014, at 05:52, Garrett Cooper <ngie@FreeBSD.org> wrote:
>=20
> Author: ngie
> Date: Mon Dec 22 04:52:24 2014
> New Revision: 276052
> URL: https://svnweb.freebsd.org/changeset/base/276052
>=20
> Log:
>  Build selective portions of gnu/usr.bin/texinfo as part of =
build-tools to
>  ensure that building on a host without makeinfo (i.e. a host where
>  make delete-old -DWITHOUT_INFO was run), then building with MK_INFO =
=3D=3D yes
>  doesn't manifest in build errors when building info pages
..
> @@ -1398,6 +1403,16 @@ build-tools: .MAKE
> 		${MAKE} DIRPRFX=3D${_tool}/ depend && \
> 		${MAKE} DIRPRFX=3D${_tool}/ all
> .endfor
> +.for _tool in \
> +    ${_texinfo}
> +	${_+_}@${ECHODIR} "=3D=3D=3D> ${_tool} (obj,depend,all)"; \
> +		cd ${.CURDIR}/${_tool} && \
> +		${MAKE} DIRPRFX=3D${_tool}/ obj && \
> +		${MAKE} DIRPRFX=3D${_tool}/ depend && \
> +		${MAKE} DIRPRFX=3D${_tool}/ all && \
> +		${MAKE} DIRPRFX=3D${_tool}/ install DESTDIR=3D${WORLDTMP}
> +.endfor

Strangely, this hunk seems to work incorrectly for non-native builds.
For example, I tried a TARGET=3Darm buildworld just now, and that dies
with the following error:

[...]
>>> stage 2.3: build tools
[...]
=3D=3D=3D> gnu/usr.bin/texinfo/makeinfo (obj,depend,all,install)
[...]
gzip -cn =
/usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/doc/make=
info.1 > makeinfo.1.gz
sh /usr/src/tools/install.sh -s -o root -g wheel -m 555   makeinfo =
/usr/obj/arm.arm/arm.arm/usr/src/tmp/usr/bin/makeinfo
install: /usr/obj/arm.arm/arm.arm/usr/src/tmp/usr/bin/makeinfo: No such =
file or directory
*** Error code 71

Specifically, the /usr/obj/arm.arm/arm.arm directory is incorrect, there
should be only one "arm.arm" in that path.  I don't really understand
how that value comes to pass, though.  When I put an echo statement just
before the make install, which shows the values of ${_tool} and
${WORLDTMP}, it prints:

DEBUG: _tool=3Dgnu/usr.bin/texinfo/makeinfo, =
WORLDTMP=3D/usr/obj/arm.arm/arm.arm/usr/src/tmp

So for some strange reason, ${WORLDTMP} is incorrect at that point?  I
think something is appending one path component too many...

-Dimitry


--Apple-Mail=_57796C0D-5952-47AF-9553-2403778C72DC
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.26

iEYEARECAAYFAlSlbM4ACgkQsF6jCi4glqMmMgCg4AUDgm+6M67JclWduHciUlXd
om8Anj5SA5aDMhw1wb04aop1y7b41MhG
=TS53
-----END PGP SIGNATURE-----

--Apple-Mail=_57796C0D-5952-47AF-9553-2403778C72DC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68874DE1-3EAE-4A4D-9760-7661DA7AE846>