From owner-freebsd-ports@FreeBSD.ORG Mon Aug 20 19:07:49 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68E0910656EB for ; Mon, 20 Aug 2012 19:07:49 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id CD4678FC14 for ; Mon, 20 Aug 2012 19:07:48 +0000 (UTC) Received: from seedling.local (host109-151-154-120.range109-151.btcentralplus.com [109.151.154.120]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q7KJ7icP037443 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 20 Aug 2012 20:07:44 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q7KJ7icP037443 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1345489665; bh=18yoCFgeOOqYtj0xh9n9ixcnrM4HaHuWUkJGSFic7jE=; h=Date:From:To:CC:Subject:References:In-Reply-To:Content-Type: Message-ID:Mime-Version; b=sE2NomkM+Px5oV8ZHP1i7fH1sbSoceErvQFQ54j7YVA41bfFtVbDRxKi0HE3Ys7Pa xL9srjO5O97yZaB6u3U404EYR1IryhlQVByRXMeLnUuU0jaQVZ1YGNVfHj21wDMh8P DoFHptKNOVEIdpgqoTJGSH72hCbHNcT4LjvJAT+E= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host host109-151-154-120.range109-151.btcentralplus.com [109.151.154.120] claimed to be seedling.local Message-ID: <50328AF8.60804@infracaninophile.co.uk> Date: Mon, 20 Aug 2012 20:07:36 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: "O. Hartmann" References: <50327A9C.5040103@zedat.fu-berlin.de> In-Reply-To: <50327A9C.5040103@zedat.fu-berlin.de> X-Enigmail-Version: 1.4.3 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig64785AE26661346A8185D3EB" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=4.6 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_FAIL,T_DKIM_INVALID autolearn=no version=3.3.2 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Ports FreeBSD Subject: Re: pkg(ng)/portupgrade-devel: does not respect setting of USE_GCC= 4.6+ 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: Mon, 20 Aug 2012 19:07:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig64785AE26661346A8185D3EB Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 20/08/2012 18:57, O. Hartmann wrote: > I utilize FreeBSD 10.0-CURRENT and build the OS with CLANG as well as > ports, which are compatible building with clang, using the well known > settings in /etc/make.conf and /etc/src/conf. >=20 > I use ports-mgmt/pkg (1.0-r6) and recently in combination with > ports-mgmt/portupgrade for maintaining my ports. Prior to portupgrade I= > used to use ports-mgmt/portmaster (with patch). >=20 >=20 >=20 > In /etc/mak.conf, I include a file via I take it this is a typo in your e-mail and you really meant to say /etc/make.conf ? > .include "/usr/local/etc/ports.conf" in which I have settings like thos= e: >=20 > # math/fftw3 > .if ${.CURDIR:M/usr/ports/math/fftw3} > USE_GCC=3D 4.6+ > #CC=3D cc > #CXX=3D c++ > #CPP=3D cpp > .endif >=20 >=20 > This setup worked very well in pre-pkg(ng) times and with portmaster. > But now, with pkg, I can not install math/fftw3 anymore (amongst other > ports not compatible with CLANG). Performing "make install" in > math/fftw3 results in: >=20 > =3D=3D=3D> fftw3-3.3.2 : clang does not support OpenMP. Disable the OP= ENMP > option or use another compiler. > *** [install] Error code 1 >=20 > Stop in /usr/ports/math/fftw3. >=20 >=20 > Using portupgrade ends up in this: > portupgrade -f math/fftw3 > USING PKGNG > ** Port marked as IGNORE: math/fftw3: > : clang does not support OpenMP. Disable the OPENMP option or > use another compiler > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > - math/fftw3 (marked as IGNORE) >=20 > I'd like to have OPENMP since I have multicore CPUs running and > therefore I use GCC 4.6 (or higher), which is capable of. >=20 > Why does the use of pkg(ng) reject those essential settings? Have I > overlooked something essential? I can not find any remarks on that > subject in the man pages, or any hint leading towards a new configure > schematics. Any hint? >=20 >=20 > Regards and greetings, > Oliver >=20 >=20 > P.S. Please CC me in email, I do not subscribe list "ports@freebsd". Hi, Oliver, This technique certainly should work: I use some pretty similar constructs in several machines with various combinations of pkg_tools, pkgng, portmaster and poudriere, and it's absolutely fine there. pkgng doesn't do anything to affect the actual extract / patch / configure / build / install phases -- that's all still exactly the same, and all of the various ports related make variables should work in the same way as before. In fact, the only place pkgng gets involved is during the 'fake-pkg' and 'package' targets which happen right after the software has been installed. All that does is process the various package metadata (plist, recording dependencies, checksums etc) and updates the database in /var/db/pkg/local.sqlite and optionally builds a tarball out of the installed files. Hmm... can you check the environment you used while building? Several variables can have a significant effect. PORTSDIR, PORT_DBDIR -- but pespecially __MAKE_CONF might be the culprit. Except, as you can see, __MAKE_CONF has got that __ prefix, which signifies "not a user serviceable part." Your ports tree is definitely in the usual place of /usr/ports? Verb. Sap. -- I usually write those tests against .CURDIR like this: =2Eif ${.CURDIR:M*/net-mgmt/net-snmp} NET_SNMP_MIB_MODULES=3Dhost disman/event-mib mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio =2Eendif so that they still work even if I'm using a ports tree in a non-standard place. Another test would be: % make -C /usr/ports/math/fftw3 -V USE_GCC If that doesn't result in 4.6+ then something is broken in make.conf or ports.conf somewhere. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig64785AE26661346A8185D3EB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAyiwAACgkQ8Mjk52CukIzJ+gCfYq1xY5AK7WhuSgl+HDh1BhVl 2HcAnRf9Xj8X0ziZ6HdF2So7VU5IEm/W =TtQQ -----END PGP SIGNATURE----- --------------enig64785AE26661346A8185D3EB--