From owner-freebsd-python@FreeBSD.ORG  Tue Sep 30 16:22:58 2014
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 655E1EA
 for <python@FreeBSD.org>; Tue, 30 Sep 2014 16:22:58 +0000 (UTC)
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 mx1.freebsd.org (Postfix) with ESMTPS id 3335C33E
 for <python@FreeBSD.org>; Tue, 30 Sep 2014 16:22:58 +0000 (UTC)
Received: from bugs.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8UGMwP0089076
 for <python@FreeBSD.org>; Tue, 30 Sep 2014 16:22:58 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
From: bugzilla-noreply@freebsd.org
To: python@FreeBSD.org
Subject: [Bug 191943] lang/python34 won't build in jail if software and
 kernel versions doesn't match
Date: Tue, 30 Sep 2014 16:22:58 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Ports Tree
X-Bugzilla-Component: Individual Port(s)
X-Bugzilla-Version: Latest
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: commit-hook@freebsd.org
X-Bugzilla-Status: Open
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: python@FreeBSD.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-191943-21822-YL57PQ4ZiZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191943-21822@https.bugs.freebsd.org/bugzilla/>
References: <bug-191943-21822@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
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.18-1
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Sep 2014 16:22:58 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191943

--- Comment #10 from commit-hook@freebsd.org ---
A commit references this bug:

Author: bdrewery
Date: Tue Sep 30 16:22:06 UTC 2014
New revision: 369644
URL: https://svnweb.freebsd.org/changeset/ports/369644

Log:
  If either of OSVERSION or UNAME_r is improperly set when building in a
  jail/chroot, a number of unexpected errors can occur.

    1. autotools fixup may not run when needed. This could be avoided by always
       running it [PR 177980, 177403].
    2. Not having UNAME_r set will cause many unknown
       errors. Many ports use OSREL (derived from UNAME_r) to determine the
name
       of files. This is usually also due to the port build itself using uname
-r
       to derive filenames or 'built for' messages. [PR 192449, 191943] Without
       having these sanity checks it is very easy for users to get into
       situations where "everything worked" until they touch a certain port
that
       reads uname(1) output or OSVERSION. It has always been necessary to
define
       all of the UNAME_ vars and OSVERSION (or have a proper sys/param.h
       present), but many users do not know this.

  Remove the fallback on the kernel for kern.osreldate as it easily gets the
  answer wrong.

  I have added sanity checks to ensure OSVERSION==OSREL==UNAME_r as these are
the
  most critical vars to have set properly.

  Differential Revision:    https://reviews.freebsd.org/D869
  PR:            177980, 177403, 192449, 191943
  Reviewed by:        antoine, bapt, gjb
  With hat:        portmgr

Changes:
  head/CHANGES
  head/Mk/bsd.port.mk

-- 
You are receiving this mail because:
You are the assignee for the bug.