pkgsrc/lang/python27/patches/patch-ax
adam f7256dfc3c Changes 2.7.4:
This is a 2.7 series bugfix release.
It includes hundreds of bugfixes over 2.7.3.
2013-04-12 09:03:41 +00:00

15 lines
583 B
Text

$NetBSD: patch-ax,v 1.4 2013/04/12 09:03:41 adam Exp $
chop "-RELEASE" or "-DEVELOPMENT" from release for DragonFly.
--- Lib/sysconfig.py.orig 2013-04-06 14:02:29.000000000 +0000
+++ Lib/sysconfig.py
@@ -559,6 +559,8 @@ def get_platform():
osname, release, machine = _osx_support.get_platform_osx(
get_config_vars(),
osname, release, machine)
+ elif osname[:9] == "dragonfly":
+ release = str.split(release, '-')[0]
return "%s-%s-%s" % (osname, release, machine)