Date: Tue, 1 May 2018 19:29:05 -0700 From: Craig Leres <leres@freebsd.org> To: =?UTF-8?Q?Le_Baron_d=e2=80=99Merde?= <lebarondemerde@privacychain.ch>, Gleb Popov <6yearold@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: Porting questions Message-ID: <9d9f4709-99c4-74fb-0ff7-f0381172fd20@freebsd.org> In-Reply-To: <20180501180402.e4kigr4f5qh44m6d@privacychain.ch> References: <fe5ac958-441b-054f-3a6b-1146bcad6a41@freebsd.org> <20180501180402.e4kigr4f5qh44m6d@privacychain.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------14DB82093F49C383061B88EC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 05/01/18 11:04, Le Baron d’Merde wrote: > When upstream does not provide a version (or a separated commit will be used > like HEAD), the version format to be used for GitHub is: gYYYYMMDD > > See 5.13: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description I missed that; it's perfect, thanks! >> (4) How to handle downloads that shouldn't be extracted: The toolchain uses >> specific versions of a bunch of things: >> >> TARBALLS= \ >> binutils-2.25.1.tar.bz2 \ >> expat-2.1.0.tar.gz \ >> gcc-5.2.0.tar.bz2 \ >> gdb-7.10.tar.xz \ >> gmp-6.0.0a.tar.xz \ >> isl-0.14.tar.xz \ >> mpc-1.0.3.tar.gz \ >> mpfr-3.1.3.tar.xz \ >> ncurses-6.0.tar.gz \ >> newlib-2.2.0.tar.gz >> >> Normally the build process downloads these which doesn't work well with >> poudriere; you don't want to download these every time you build port. I put >> copies in my /usr/ports/distfiles and add symlinks to the work tree in >> post-extract and later the build script correctly skips downloading them >> when it finds them already there. I'd like to add these to DISTFILES for >> auto-download and checksums but I don't want them extracted by do-extract. >> Is my best option to override the do-extract target? > > I guess those are git submodules. GH_TUPLE are used for them. You can see a > working example on x11/polybar Actually they're not, they're just the specific versions of things that are built to deal with the cross compile objects. In the end I added them to DISTFILES with the appropriate MASTER_SITES entries and discovered EXTRACT_ONLY and set that to the github tarball. On 05/01/18 12:21, Gleb Popov wrote: > (3) USES=gcc doesn't provide a binary named gcc: crosstool-NG has > the string "gcc" firmly baked into it. When I have USES=gcc (today) > I get gcc6 but without patching a ton of files I need gcc to exist > when poudriere is building. I solved this by also adding: > > BUILD_DEPENDS+= gcc:lang/gcc > > but it seems wrong to me that USES=gcc doesn't provide a binary > named gcc. > > > You can add > BINARY_ALIAS= gcc=gcc6 > line to work around this. It'd be sweet if this worked but it doesn't. I think the problem is that create-binary-alias happens slightly before do-configure which is the first place I need gcc to exist. Thanks guys! Craig --------------14DB82093F49C383061B88EC Content-Type: text/plain; charset=UTF-8; name="Makefile" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Makefile" IyBDcmVhdGVkIGJ5OiBDcmFpZyBMZXJlcyA8bGVyZXNAZnJlZWJzZC5vcmc+CiMgJEZyZWVC U0QkCgpQT1JUTkFNRT0JeHRlbnNhLWVzcDMyLWVsZgpESVNUVkVSU0lPTj0JMS4yMi4wLmcy MDE3MTIxOQpDQVRFR09SSUVTPQlkZXZlbApNQVNURVJfU0lURVM9CUdOVS9iaW51dGlsczpz b3VyY2UxIFwKCQlodHRwczovL3NvdXJjZWZvcmdlLm5ldC9wcm9qZWN0cy9leHBhdC9maWxl cy9leHBhdC8yLjEuMC86c291cmNlMiBcCgkJR05VL2djYy9nY2MtNS4yLjAvOnNvdXJjZTMg XAoJCUdOVS9nZGI6c291cmNlNCBcCgkJR05VL2dtcDpzb3VyY2U1IFwKCQlodHRwOi8vaXNs Lmdmb3JnZS5pbnJpYS5mci86c291cmNlNiBcCgkJR05VL21wYzpzb3VyY2U3IFwKCQlodHRw Oi8vd3d3Lm1wZnIub3JnL21wZnItMy4xLjMvOnNvdXJjZTggXAoJCUdOVS9uY3Vyc2VzOnNv dXJjZTkgXAoJCWh0dHBzOi8vc291cmNlZm9yZ2UubmV0L3Byb2plY3RzL2RldmtpdHByby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QUtFTEVWRUwgLXVNQUtFRkxBR1MgLXUuTUFLRS5MRVZFTC5FTlYgXAoJICAg ICR7TUFLRV9DTUR9IGluc3RhbGwgJiYgLi9jdC1uZyB4dGVuc2EtZXNwMzItZWxmCgpkby1i dWlsZDoKCWNkICR7QlVJTERfV1JLU1JDfSAmJiBDVF9BTExPV19CVUlMRF9BU19ST09UX1NV UkU9MSAuL2N0LW5nIGJ1aWxkCgpwb3N0LWJ1aWxkOgoJY2QgJHtCVUlMRF9XUktTUkN9L2J1 aWxkcy8ke1BPUlROQU1FfSAmJiBcCgkgICAgJHtSTX0gYnVpbGQubG9nLmJ6MiBsaWIvY2hh cnNldC5hbGlhcwoKZG8taW5zdGFsbDoKCWNkICR7QlVJTERfV1JLU1JDfS9idWlsZHMgJiYg XAoJICAgICR7Q09QWVRSRUVfU0hBUkV9ICR7UE9SVE5BTUV9ICR7U1RBR0VESVJ9JHtQUkVG SVh9CgouaW5jbHVkZSA8YnNkLnBvcnQubWs+Cg== --------------14DB82093F49C383061B88EC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9d9f4709-99c4-74fb-0ff7-f0381172fd20>