pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Prevent include of nonexisting file when t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d502b0df57dd
branches:  trunk
changeset: 496702:d502b0df57dd
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Sat Jul 09 01:11:15 2005 +0000

description:
Prevent include of nonexisting file when the requested python version
is not available for the platform.

Mark packages as "unavailable" instead of "broken" when they depend on
a python version that is not available for the platform.

diffstat:

 lang/python/pyversion.mk |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 6df641dca310 -r d502b0df57dd lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Sat Jul 09 00:20:12 2005 +0000
+++ b/lang/python/pyversion.mk  Sat Jul 09 01:11:15 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.36 2005/06/23 11:10:32 seb Exp $
+# $NetBSD: pyversion.mk,v 1.37 2005/07/09 01:11:15 kristerw Exp $
 
 .if !defined(PYTHON_PYVERSION_MK)
 PYTHON_PYVERSION_MK=   defined
@@ -134,7 +134,7 @@
 .endif
 .else
 # force an error
-PKG_FAIL_REASON+=   "No valid Python version"
+PKG_SKIP_REASON+=   "No valid Python version"
 .endif
 
 PTHREAD_OPTS=  require
@@ -142,7 +142,9 @@
 .if defined(PYTHON_FOR_BUILD_ONLY)
 BUILDLINK_DEPMETHOD.python?=   build
 .endif
+.if defined(PYPKGSRCDIR)
 .include "${PYPKGSRCDIR}/buildlink3.mk"
+.endif
 
 PYTHONBIN=     ${LOCALBASE}/bin/python${PYVERSSUFFIX}
 



Home | Main Index | Thread Index | Old Index