From owner-freebsd-ports@freebsd.org Fri Jun 9 13:56:03 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E3CEBF5454 for ; Fri, 9 Jun 2017 13:56:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 66A0C687A9 for ; Fri, 9 Jun 2017 13:56:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 62A1FBF5452; Fri, 9 Jun 2017 13:56:03 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61F0EBF544F; Fri, 9 Jun 2017 13:56:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CFBE687A7; Fri, 9 Jun 2017 13:56:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x242.google.com with SMTP id u1so8662654pfg.1; Fri, 09 Jun 2017 06:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9TrC3Lg0rOLQpPi3VmarhPVaeJ+FJqpPT8As3UFmfrk=; b=At6kS3QtT6996NCx9rvvcNEthY1ISudz3uw/JNZ/ViJTrcI5Jp5vL6yeF9hWSx0r74 i4E7nswAVDPOvYqY+jVghIB88M6tM7v2mVHJjcFYMdjFYp0FfNrkRx4CZaBNFJhP2pRw ykkCch1RHUTxbSNAjs0VqtCRKa8cQFqGGNNzDrEdDwMzNuPYRCUegJlVh7XDOxeb+aID NtDQ2jL+EnDpi0gDzuniqTRxGczD6nBjYVQKdYex5A7C0oPQILWA6vBXxvXcWtxsjdXy 0np7NnM4LiHo/zYYGviMlwUwlupfsUpEabFBEGT2q7P7B0Na+l+eWMB6VjzmTtktxjCr vwig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:references:from:cc :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=9TrC3Lg0rOLQpPi3VmarhPVaeJ+FJqpPT8As3UFmfrk=; b=DFv3wq2BrjNDyMg0Wh88x2MnHxYg1f8fRpmTTT/cRaRgJ98CHWcc+yNwgdJetn7QBs d2jPjXMoiHXklUicKwyk7kcftgKGu/2YPN7g0/HzHl+2YuCG0kWO8QTV4SRByyGbbzV4 t1jS4O5iOgl4IizTvts04ir4Snkc062RWp/oOAjNYje+29nKlKhTx00LRhtp4ReToubM fm8TsqIX3V4ThDFQ0Okgw2X0ze+XoqHSTqKGf7YEqj8Xz2/azHOfBuVnJG60qvNuozN3 InNPpZGRYIbDUjeox2TChNid8go6nkS5DxNChsP/laO2gqWVjWxfYgpEeC1cgbOqzxiT +FtA== X-Gm-Message-State: AODbwcCmyAg7Ndvb/W+wj/0TwTEpx1CLbx3bkg4Fz25dNW1n1qphmoYD JrB6jLdtt5rQCWaMxwE= X-Received: by 10.84.217.158 with SMTP id p30mr41388006pli.211.1497016562553; Fri, 09 Jun 2017 06:56:02 -0700 (PDT) Received: from ?IPv6:2001:44b8:31ae:7b01:2042:3e8:d7ce:9b9c? (2001-44b8-31ae-7b01-2042-03e8-d7ce-9b9c.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:2042:3e8:d7ce:9b9c]) by smtp.gmail.com with ESMTPSA id j62sm2652608pgd.20.2017.06.09.06.56.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 06:56:02 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: trouble building py3-requests -- dependencies build against wrong version of python. To: Vick Khera , FreeBSD Ports List References: From: Kubilay Kocak Cc: python Message-ID: <1950b1b1-f424-96a6-c0e5-1ed68749eb57@FreeBSD.org> Date: Fri, 9 Jun 2017 23:51:21 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Thunderbird/54.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2017 13:56:03 -0000 On 6/9/17 11:47 PM, Vick Khera wrote: > I'm trying to build py3-iocage, which has as one dependeny py3-requests. > When building this with poudriere, the py3-requests port somehow causes > py27-chardet to be built instead of py36-chardet, which then results in > py3-requests failing to find the dependency (which it just tried to build). > > Here is a test I just ran: > > % rm /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py*-chardet* > % poudriere bulk -j 11amd64 -J 4:6 www/py3-requests > > The build fails with this: > > [00:00:08] ====>> [01][00:00:00] Starting build of textproc/py-chardet > [00:00:14] ====>> [01][00:00:06] Finished build of textproc/py-chardet: > Success > [00:00:14] ====>> [01][00:00:00] Starting build of www/py3-requests > [00:00:19] ====>> [01][00:00:05] Finished build of www/py3-requests: > Failed: run-depends > > > Looking in the log file from poudriere we have: > > =================================================== > ===> py36-requests-2.17.3 depends on package: py36-chardet>=3.0.2 - not found > ===> py36-requests-2.17.3 depends on package: > /packages/All/py36-chardet-3.0.3.txz - not found > ===> USE_PACKAGE_DEPENDS_ONLY set - not building missing dependency > from source > > and we see that py27-chardet was actually built: > > % ls -l > /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py*-chardet* > -rw-r--r-- 1 root wheel 155212 Jun 9 09:24 > /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py27-chardet-3.0.3.txz > > If I explicitly build py3-chardet I get the right version: > > % rm /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py*-chardet* > % poudriere bulk -j 11amd64 -J 4:6 textproc/py3-chardet > % ls -l > /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py*-chardet* > -rw-r--r-- 1 root wheel 157916 Jun 9 09:35 > /usr/local/poudriere/data/packages/freebsd:11:x86:64/All/py36-chardet-3.0.3.txz > > When I subsequently build py3-requests it finds the py36-chardet package, > but then fails on its other dependencies with the same error pattern (ie, > it built py27-idna instead of py36-idna, etc.) > > > How can I convince py3-requests to build py3-chardet rather than py-chardet > (and py36-idna, etc.) like it does above? It seems to me that the "include" > method of making the py3 modules child ports of the py modules is failing > here with py3-requests. > > My poudriere make.conf file has > > DEFAULT_VERSIONS=mysql=5.6 pgsql=9.4 apache=2.4 perl5=5.24 ssl=openssl > php=7.0 python3=3.6 > > That is the only mention of python in there. > > Running FreeBSD 11.0/amd64, ports tree updated as of this morning with > portsnap. Hi Vick, The underlying py-requests/py3-requests issue underlying being unable to build iocage is being tracked here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219833 As far as poudriere results go, you may want to poudriere pkgclean the jail in question and attempt a py3-requests build again. Apart from incorrect version-conditional dependencies (enum34 wont be installed for those using python33), it should be ok at the moment for other versions. If not it would be good to know what's failing. Make sure you update your ports tree to ensure the latest revisions of all ports involved (there were many)