From owner-freebsd-ports@freebsd.org Sat Dec 16 06:04:55 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 944E5E9E8CF for ; Sat, 16 Dec 2017 06:04:55 +0000 (UTC) (envelope-from jktrigg@gmail.com) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (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 48144791CF for ; Sat, 16 Dec 2017 06:04:55 +0000 (UTC) (envelope-from jktrigg@gmail.com) Received: by mail-qt0-x22d.google.com with SMTP id k19so14626630qtj.6 for ; Fri, 15 Dec 2017 22:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4WnCkTojHy5czvcN2PnReay7e28Ec6Cc8OJbeQDWHVA=; b=CLyIpzbePfayVgYizjfChfLnnvBVQ7Llb2erB3BPMMrpJZx2MjjBJdxr/mrlexq8sj zJG4/eMKFlLu9WsOWQDp23NwBfYBEKanaem96jG5F0pLkWZEa6efuhbiHnEGq5CIFSSR yWo8pZaFRDVnRVe12I9WmwAihk5qH68jq2uwE4yjd0UF2Kvm2caZEYpdIMmb6LuH5XVm l8vLsRPN1RacFKCUHwq3lxtA+PLON/TuCL4c+JDhVQQNoooz4ZpQeQxmf0sku77p66Yo g9hblwDShmZTlDegUdh9WreZBOXSyhlEYa84N1kVBh4+uONh43rEQTt4iHZOAYtOTtza XT6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4WnCkTojHy5czvcN2PnReay7e28Ec6Cc8OJbeQDWHVA=; b=skMJDNP6aC9krcgqNhr8pQTXb/IifhtEVfRRr3px7pInIthHoFIvAYk7DqutPG3OQ2 0dYR8PX1sh1bIDA4uYffgayt0ZjA9FkC1OOv7zd5X6w4dbsaI5HnfilwY8HdvtuHRDJY DaRBDRHjSQzTK0+CuStm2N96cdrnZLFWswlKdZfMPISV+UtT5aJsP2m7hla4J8rHZNg5 OroyriBrB88jbxwR+eS3APIKrun0Xw++7sKC486f+52QTfO3RqI8n8eqBcFgUceaZcSE Udd5ZFiEfoegifs2O7JBF86iAEx5s6C+/up2r2Nvkdh51mLSDFOoqKHMZn2cKhJehXM6 v4wA== X-Gm-Message-State: AKGB3mLXHlbuY2Sf4IGLehHJpndbEfoYFAKZCakLMxkQc4rKSTLnJjWt db1LN5a4MQ0KIH68OTq//dmAljoM X-Google-Smtp-Source: ACJfBosxSDDAjg7sr6Bhcyv0EsICpdEmfBrxtzmjrG8ah2kU/fkT5KUlLhlCKYjUWN5oQMCPFH8SSg== X-Received: by 10.200.48.144 with SMTP id v16mr26151264qta.244.1513404294021; Fri, 15 Dec 2017 22:04:54 -0800 (PST) Received: from [192.168.2.18] (c-73-86-156-63.hsd1.va.comcast.net. [73.86.156.63]) by smtp.googlemail.com with ESMTPSA id r53sm5300284qtr.93.2017.12.15.22.04.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 22:04:53 -0800 (PST) Sender: Jim Trigg Subject: Re: new portmaster fails to build devel/py-libzfs@py36 because of failing cython To: freebsd-ports@freebsd.org References: <875c07bd-b718-d74b-5302-d41af7476a14@gmail.com> <842cfe0c-9d96-0261-c380-59bfed89beff@FreeBSD.org> <63cc46cc-8d1b-8a9a-4690-28e1f1adbef5@freebsd.org> <74827d4b-661b-2e83-d270-1c4eaa038871@freebsd.org> From: Jim Trigg Message-ID: <1c2ada7a-a1f6-9321-cf9e-6e018a7ba648@huiekin.org> Date: Sat, 16 Dec 2017 01:04:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <74827d4b-661b-2e83-d270-1c4eaa038871@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2017 06:04:55 -0000 On 12/15/2017 11:12 AM, Stefan Esser wrote: > Am 15.12.17 um 14:25 schrieb Stefan Esser> Hmmm, now I see what's the problem: > The package name seems to have been >> changed during the conversion to a flavored port (from "cython3-0.26.tbz" >> to "py36-cython-0.26.tar.bz"). This is not typical of ports that use >> flavors now, in general they generate packages under the same name as the >> non-flavored port did. >> >> I have to see, whether I can easily detect this case - the current logic >> that distinguishes between fresh installs and re-installs does not see >> that the old version needs to be deleted before installing the new one. >> >> For now the advice to manually delete the cython3 port is right and will >> let you install the new version. > > I'm sorry, but fixing this problem will take quite some effort ... > > The problem is, that portmaster operates in phases and recursively > invokes itself with an always smaller set of options. While knows > that the port origin has moved in one invocation, it then goes on > and just calls itself to build and install with only the new origin > (in this case "lang/cython@py36"). > > It is not possible to derive the old package name from that information, > portmaster must assume, that the package name (sans version) did not > change, it can then lookup the nane of the package to be replaced in > the package DB. But in the case of this port, the origin changed and > the package name changed at the same time, and I'd need to have at > least one of these parameters unchanged to lookup the old package name > to de-install it before installing the new version. > > I have plans to refactor portmaster and completely rewrite the logic > that builds and installs packages, but this is a major undertaking and > earlier maintainers have given up after trying. > > So please accept that it may be necessary to manually remove a package > in case both port directory (origin) and package name change at the > same time. All information is there at a point, but the structure of > the program does not allow to easily access it when actually needed. As I said in a reply to an earlier message (that I just sent), I think this is exactly what the -o switch was meant for. portmaster -o lang/cython@py36 cython3 The question is whether the flavor support will work with the -o switch. Thanks, Jim Trigg