Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2003 17:55:08 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Christian Weisgerber <naddy@mips.inka.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: config.guess (was: Re: cvs commit: ports/audio/libmikmod/files patch-config.sub)
Message-ID:  <20030706005508.GA8201@rot13.obsecurity.org>
In-Reply-To: <bd076g$1nul$1@kemoauc.mips.inka.de>
References:  <200306190941.h5J9fIYL073911@repoman.freebsd.org> <20030619214555.GA34067@rot13.obsecurity.org> <bctg5s$etk$1@kemoauc.mips.inka.de> <20030620165635.GA53379@rot13.obsecurity.org> <bd076g$1nul$1@kemoauc.mips.inka.de>

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

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 21, 2003 at 12:00:16AM +0000, Christian Weisgerber wrote:
> Kris Kennaway <kris@obsecurity.org> wrote:
>=20
> > OK, I misunderstood the purpose of config.guess.  This sounds like the
> > right approach!
>=20
> Fetch config.{guess,sub} from ftp://ftp.gnu.org/gnu/config/ and add
> them to /usr/ports/Templates/.  These still need editing for ia64
> and amd64.

This patch works, but based on the initial amd64 package build with
your patch in place there are quite a few ports out there that seem to
require CONFIG_GUESS_DIRS.  I wonder if it wouldn't be better to
automatically replace all occurrences of config.{guess,sub} in the
${WRKSRC} tree.  I haven't yet tested this on a full build:

Kris

Index: bsd.port.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /rot13/mnt2/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.454
diff -u -r1.454 bsd.port.mk
--- bsd.port.mk	26 Jun 2003 22:58:21 -0000	1.454
+++ bsd.port.mk	6 Jul 2003 00:51:32 -0000
@@ -2794,6 +2794,16 @@
 		cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \
 		  ${SCRIPTDIR}/configure; \
 	fi
+.if defined(GNU_CONFIGURE)
+	@CONFIG_GUESS_DIRS=3D$$(${FIND} ${WRKSRC} -name config.guess -o -name con=
fig.sub \
+		| ${XARGS} -n 1 /usr/bin/dirname); \
+	for _D in $${CONFIG_GUESS_DIRS}; do \
+		${CP} -f ${TEMPLATES}/config.guess $${_D}/config.guess; \
+		${CHMOD} a+rx $${_D}/config.guess; \
+	    ${CP} -f ${TEMPLATES}/config.sub $${_D}/config.sub; \
+		${CHMOD} a+rx $${_D}/config.sub; \
+	done
+.endif
 .if defined(HAS_CONFIGURE)
 	@(cd ${CONFIGURE_WRKSRC} && \
 		if ! ${SETENV} CC=3D"${CC}" CXX=3D"${CXX}" \

--EVF5PPMfhYS0aIcm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/B3NsWry0BWjoQKURArmTAJ95PDc5BJNi9SEDFM0r9CHgLJdBkQCaAh+m
iD6X9tlwcmGmClAbAAVc62s=
=fnGj
-----END PGP SIGNATURE-----

--EVF5PPMfhYS0aIcm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030706005508.GA8201>