From owner-freebsd-python@freebsd.org Sun Apr 1 10:43:10 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 286E0F81151 for ; Sun, 1 Apr 2018 10:43:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8F96783352 for ; Sun, 1 Apr 2018 10:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4F43CF81150; Sun, 1 Apr 2018 10:43:09 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12711F81142 for ; Sun, 1 Apr 2018 10:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A39B08334E for ; Sun, 1 Apr 2018 10:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CEA2E27782 for ; Sun, 1 Apr 2018 10:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w31Ah7Bx027294 for ; Sun, 1 Apr 2018 10:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w31Ah75a027293 for python@FreeBSD.org; Sun, 1 Apr 2018 10:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 227149] Use the www/py-django meta port instead of the www/py-django18 port to move to Django 1.11 Date: Sun, 01 Apr 2018 10:43:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd_ports@k-worx.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 10:43:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227149 --- Comment #6 from Kai --- Thank you for the references to the review and PRs. If I understand this ri= ght by the given facts/suggestions then the desired approach would be like: - create a new variable, e.g. DJANGO_DEFAULT in bsd.default-versions.mk=20 - create a new variable, e.g. django:X.XX[+] for USE_PYTHON in Uses/python.= mk For the next examples I'll refer to following django ports: - www/py-django-filer (depends also on graphics/py-django-easy-thumbnails - graphics/py-django-easy-thumbnails Let's assume that the new variables above mentioned are implemented into the ports framework, then the sections for RUN_DEPENDS and USE_PYTHON should be changed to: For www/py-django-filer: > RUN_DEPENDS=3D ${PYTHON_PKGNAMEPREFIX}django-easy-thumbnails>=3D0:graphi= cs/py-django-easy-thumbnails@${FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}pillow>=3D0:graphics/py-pillow@${FLAV= OR} > USE_PYTHON=3D autoplist distutils django For graphics/py-django-easy-thumbnails (the RUN_DEPENDS can be removed): > USE_PYTHON=3D distutils autoplist django A bulk run for both py27 and py36 flavors with a Django default version of = 1.11 will produce following Django v1.11 packages: - py27-django-filer - py27-django-easy-thumbnails - py36-django-filer - py36-django-easy-thumbnails If I understood the extent to that point correctly, then the following exam= ple should fail with DJANGO_VERSION set to 1.11 (as intended): For port graphics/py-django-easy-thumbnails change USE_PYTHON to: > USE_PYTHON=3D distutils autoplist django1.8 This should produce a build error for both py27 and py36 flavors if I'm correct? To resolve that issue, one can change USE_PYTHON to: > USE_PYTHON=3D distutils autoplist django1.8+ Then the build of both Python flavors should work again. -- Cheers Kai --=20 You are receiving this mail because: You are the assignee for the bug.=