From owner-freebsd-python@FreeBSD.ORG Mon Oct 1 18:03:53 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4C8E106567B; Mon, 1 Oct 2012 18:03:53 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward1h.mail.yandex.net (forward1h.mail.yandex.net [IPv6:2a02:6b8:0:f05::10]) by mx1.freebsd.org (Postfix) with ESMTP id 160308FC21; Mon, 1 Oct 2012 18:03:53 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward1h.mail.yandex.net (Yandex) with ESMTP id 888339E1C8E; Mon, 1 Oct 2012 22:03:51 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id E8F5A1700111; Mon, 1 Oct 2012 22:03:50 +0400 (MSK) Received: from unknown (unknown [178.76.224.133]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3oomEGtT-3ooulXvl; Mon, 1 Oct 2012 22:03:50 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1349114630; bh=vtlKfkB/z/5qxqT/rWza3Hn/fiH3Dhc8oJ3UgaOkvjo=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=n7q3vFetAUohKKnkaJsTiBf3v2nqMrmkSDh+iN1W4iZyL+pyb/76Zl3kVoqy/VDpR I7tc0mU9YVTLJre5GhR0Qi9JGKJ3CyT1JcaHeDBAmAOg7F+3YP9XgCbpcTa6eN3yfX Tcr8k9WX5T7uGCFsAg+7xvKBpzEP5yFaRKGVp1WA= Message-ID: <5069DB04.5080806@yandex.ru> Date: Mon, 01 Oct 2012 22:03:48 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Li-Wen Hsu References: <50698A96.4000301@yandex.ru> <20121001161037.Horde.w6rVCKGZi1VQaaRdcWmiv-A@webmail.df.eu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcus von Appen , python Subject: Re: Python distribution: switching to tar.xz X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2012 18:03:53 -0000 Li-Wen Hsu wrote on 01.10.2012 21:51: > On Mon, Oct 1, 2012 at 10:10 PM, Marcus von Appen wrote: >> >> Ruslan Mahmatkhanov : >> >>> Hello, >>> >>> The python.org ftp provides lang/pythonXX source tarballs in a many >>> formats: >>> - tar.bz2 >>> - tar.xz >>> - tgz >>> >>> Using .tgz is not in sports-way this days, so I'd prefer to use tar.xz for >>> new versions. But I can't actually choose there because tarball format is >>> hardcoded in Mk/bsd.python.mk as PYTHON_DISTFILE variable: >>> >>> PYTHON_DISTFILE= >>> Python-${PYTHON_PORTVERSION:S/.rc/rc/}.tgz >>> >>> And in particular python port we have this: >>> >>> DISTFILES= ${PYTHON_DISTFILE} >>> >>> Since I can't just choose tar.xz for some new python33 port, I suggest to >>> change PYTHON_DISTFILE to use tar.xz and to change all the distinfos for >>> lang/pythonXX (with changing SHA256/SIZE fields). What do you think? >> >> >> I would rather see PYTHON_DISTFILE removed from bsd.python.mk and being >> moved back >> to the individual ports instead. Or, to stay compatible for whatever reason, >> change >> it to PYTHON_DISTFILE?= ..., so ports can override it. >> >> Or, even better in making things complicated, change it to >> >> PYTHON_DISTFILE = ${PYTHON_IMPLTYPE}_${PORTVERSION}${EXTRACT_SUFX} >> > > I'm not sure introducing ${PYTHON_IMPLTYPE} is a good idea... but it > might be good to > change hard-coded .tgz: > > PYTHON_DISTFILE= Python-${PYTHON_PORTVERSION:S/.rc/rc/}.tgz > > to: > > EXTRACT_SUFX?= .tgz > PYTHON_DISTFILE= Python-${PYTHON_PORTVERSION:S/.rc/rc/}}${EXTRACT_SUFX} Yes, I also bow to this option. > then we can define USE_XZ= yes in the ports we want to use xz > distfile, which handles > ${EXTRACT_SUFX} and ${EXTRACT_DEPENDS} correctly. After python26 decommission, > we can even move this into bsd.python.mk python26 distributes in tar.xz too [1]. Or you meant something other? Ok, so I get the point. I'll prepare an patch that make ${EXTRACT_SUFX} redefinable for python ports, so we can gradually switch all this ports to xz. Thanks Marcus and Li-Wen. [1] http://www.python.org/ftp/python/2.6.8/Python-2.6.8.tar.xz -- Regards, Ruslan Tinderboxing kills... the drives.