Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2004 20:07:12 +0300
From:      Sergei Kolobov <sergei@FreeBSD.org>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: CONFIGURE_TARGET
Message-ID:  <20040109170712.GE706@chetwood.ru>
In-Reply-To: <20040109163220.GB5994@freepuppy.bellavista.cz>
References:  <20040109163220.GB5994@freepuppy.bellavista.cz>

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

--FeAIMMcddNRN4P4/
Content-Type: multipart/mixed; boundary="CGDBiGfvSTbxKZlW"
Content-Disposition: inline


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

On 2004-01-09 at 17:32 +0100, Roman Neuhauser wrote:
> bsd.port.mk defines
>=20
>     CONFIGURE_TARGET?=3D	${MACHINE_ARCH}-portbld-freebsd${OSREL}
>=20
> but porters-handbook/makefile-build.html says
>=20
>     Note: If your package uses GNU configure, and the resulting
>     executable file has a ``strange'' name like
>     i386-portbld-freebsd4.7-appname, you will need to additionally
>     override the CONFIGURE_TARGET variable to specify the target in the
>     way required by scripts generated by recent versions of autoconf.
>     Add the following line immediately after the GNU_CONFIGURE=3Dyes line
>     in your Makefile:
>=20
>     CONFIGURE_TARGET=3D--build=3D${MACHINE_ARCH}-portbld-freebsd${OSREL}
>=20
> now, couple of questions:
>=20
> * what is the first recent of version of autoconf to require --build=3D?

2.5x
=20
> * what is the percentage of ports that want --build=3D?  (IOW, wouldn't it
>   already make more sense to make that the default value in bsd.port.mk?

I would venture to say that most of recently updated  ports require --build.

> * how about suggesting
>=20
>   CONFIGURE_TARGET:=3D--build=3D${CONFIGURE_TARGET}

I have suggested another (but similar) approach:=20
see ports/52917 (currently suspended).

> * can't the value be decided automagically? e. g.
>=20
>   CONFIGURE_TARGET!=3D.../configure --help|grep -Fe --build...

I have suggested something like that in a thread on this list
on 2003-12-01 (attached). I haven't received any response. :(

Sergei

--CGDBiGfvSTbxKZlW
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <owner-freebsd-ports@freebsd.org>
Delivered-To: sgk-freebsd-ports@kolobov.com
Received: (qmail 73453 invoked from network); 1 Dec 2003 15:21:44 -0000
Received: from mx2.freebsd.org (216.136.204.119)
	by outpost.globcon.net (62.141.88.161) with ESMTP;
	01 Dec 2003 15:21:44 -0000
Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18])
	by mx2.freebsd.org (Postfix) with ESMTP
	id 9B09C5639E; Mon,  1 Dec 2003 07:21:31 -0800 (PST)
	(envelope-from owner-freebsd-ports@freebsd.org)
Received: from hub.freebsd.org (localhost [127.0.0.1])
	by hub.freebsd.org (Postfix) with ESMTP
	id 82BB516A4D4; Mon,  1 Dec 2003 07:21:30 -0800 (PST)
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4633B16A4CE
	for <ports@FreeBSD.org>; Mon,  1 Dec 2003 07:20:57 -0800 (PST)
Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161])
	by mx1.FreeBSD.org (Postfix) with SMTP id 31D4643F93
	for <ports@FreeBSD.org>; Mon,  1 Dec 2003 07:20:55 -0800 (PST)
	(envelope-from sergei@FreeBSD.org)
Received: (qmail 73432 invoked from network); 1 Dec 2003 15:20:55 -0000
Received: from agdcgw01.akingump.com (HELO kolobov.com) (12.40.174.2)
  by outpost.globcon.net (62.141.88.161) with SMTP; 01 Dec 2003 15:20:55 -0000
Received: (qmail 2102 invoked by uid 911); 1 Dec 2003 15:08:03 -0000
Date: Mon, 1 Dec 2003 18:08:03 +0300
From: Sergei Kolobov <sergei@FreeBSD.org>
To: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Message-ID: <20031201150803.GA977@chetwood.ru>
Mail-Followup-To: Oliver Eikemeier <eikemeier@fillmore-labs.com>,
	ports@FreeBSD.org
References: <20031115211641.GA786@chetwood.ru>
	<3FB6B89D.9050808@fillmore-labs.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW"
Content-Disposition: inline
In-Reply-To: <3FB6B89D.9050808@fillmore-labs.com>
User-Agent: Mutt/1.5.3i
Cc: ports@FreeBSD.org
Subject: Re: ports/59254: ports that write something after bsd.port.mk
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>;
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
Sender: owner-freebsd-ports@freebsd.org
Errors-To: owner-freebsd-ports@freebsd.org


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

On 2003-11-16 at 00:37 +0100, Oliver Eikemeier wrote:
> How about doing something like
> cd ${CONFIGURE_WRKSRC} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} --versio=
n=20
> | sed -ne 's/.*autoconf version \([0-9.]*\).*/\1/p'

I took slightly different approach:

CONFIGURE_VERSION!=3D ${AWK} '/Generated by GNU Autoconf/ {print $$6;}' \
                    ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
=2Eif ${CONFIGURE_VERSION} =3D=3D "2.13"=20
CONFIGURE_TARGET?=3D ${MACHINE_ARCH}-portbld-freebsd${OSREL}
else
CONFIGURE_TARGET?=3D --build=3D${MACHINE_ARCH}-portbld-freebsd${OSREL}
=2Eendif

Now, equivalent of this should be included in do-configure target,=20
but I have difficult time figuring out how to rewrite it=20
so it would do the awk call, etc.  only at the do-configure time,=20
but not every time bsd.port.mk is sourced.=20
Anyone?

Sergei

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

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

iD8DBQE/y1lTFOxuaTulNAERAsRFAKCdXZzJrZD9E8bnGcRKwXF5O5st/ACeLiI9
6H343MDfkXry2f0Vl+Ca2GM=
=Lmtx
-----END PGP SIGNATURE-----

--ew6BAiZeqk4r7MaW--

--CGDBiGfvSTbxKZlW--

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

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

iD8DBQE//t/AFOxuaTulNAERAhxOAJ9IFxHvMLqBDCkGjSJN8Q39qCVkmQCdGOhf
TR9lO17C8RZ7khZ87w/nQ3A=
=sQBf
-----END PGP SIGNATURE-----

--FeAIMMcddNRN4P4/--



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