View | Details | Raw Unified | Return to bug 230369 | Differences between
and this patch

Collapse All | Expand All

(-)shells/xonsh/Makefile (-2 / +3 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	xonsh
3
PORTNAME=	xonsh
4
PORTVERSION=	0.6.0
4
PORTVERSION=	0.7.8
5
CATEGORIES=	shells python
5
CATEGORIES=	shells python
6
MASTER_SITES=	CHEESESHOP
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 10-21 Link Here
10
COMMENT=	Python-ish BASH-wards shell
10
COMMENT=	Python-ish BASH-wards shell
11
11
12
LICENSE=	BSD2CLAUSE
12
LICENSE=	BSD2CLAUSE
13
LICENSE_FILE=	${WRKSRC}/license
13
14
14
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}amalgamate>=0:devel/py-amalgamate@${PY_FLAVOR}
15
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}amalgamate>=0:devel/py-amalgamate@${PY_FLAVOR}
15
16
16
NO_ARCH=	yes
17
NO_ARCH=	yes
17
18
18
USES=		python:3.4+
19
USES=		python:3.4+
19
USE_PYTHON=	distutils autoplist concurrent
20
USE_PYTHON=	autoplist concurrent distutils
20
21
21
.include <bsd.port.mk>
22
.include <bsd.port.mk>
(-)shells/xonsh/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1511473787
1
TIMESTAMP = 1536835442
2
SHA256 (xonsh-0.6.0.tar.gz) = 19aa4c075378aef8476b8b2cdb0bea6fa5e10933163de443b958fa485e0f6dc6
2
SHA256 (xonsh-0.7.8.tar.gz) = 956c7fbf19968afaade11fa5cb627a7f2c177a9e05f8cb03f7efa86b5fe4cb08
3
SIZE (xonsh-0.6.0.tar.gz) = 652164
3
SIZE (xonsh-0.7.8.tar.gz) = 827000
(-)shells/xonsh/files/patch-xonsh_platform.py (-5 / +5 lines)
Lines 1-11 Link Here
1
--- xonsh/platform.py.orig	2017-03-12 02:36:40 UTC
1
--- xonsh/platform.py.orig	2018-09-05 14:16:47 UTC
2
+++ xonsh/platform.py
2
+++ xonsh/platform.py
3
@@ -491,7 +491,7 @@ def LIBC():
3
@@ -571,7 +571,7 @@ def LIBC():
4
         libc = ctypes.CDLL('cygwin1.dll')
4
         libc = ctypes.CDLL("msys-2.0.dll")
5
     elif ON_BSD:
5
     elif ON_BSD:
6
         try:
6
         try:
7
-            libc = ctypes.CDLL('libc.so')
7
-            libc = ctypes.CDLL("libc.so")
8
+      	     libc = ctypes.CDLL(ctypes.util.find_library("c"))
8
+            libc = ctypes.CDLL(ctypes.util.find_library("c"))
9
         except AttributeError:
9
         except AttributeError:
10
             libc = None
10
             libc = None
11
         except OSError:
11
         except OSError:
(-)shells/xonsh/files/patch-xonsh_xoreutils_uptime.py (-5 / +12 lines)
Lines 1-11 Link Here
1
--- xonsh/xoreutils/uptime.py.orig	2017-02-11 16:24:07 UTC
1
--- xonsh/xoreutils/uptime.py.orig	2018-09-05 14:16:47 UTC
2
+++ xonsh/xoreutils/uptime.py
2
+++ xonsh/xoreutils/uptime.py
3
@@ -100,7 +100,7 @@ def _uptime_bsd():
3
@@ -100,13 +100,13 @@ def _uptime_bsd():
4
         return None
4
         return None
5
     # Determine how much space we need for the response.
5
     # Determine how much space we need for the response.
6
     sz = ctypes.c_uint(0)
6
     sz = ctypes.c_uint(0)
7
-    xp.LIBC.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)
7
-    xp.LIBC.sysctlbyname("kern.boottime", None, ctypes.byref(sz), None, 0)
8
+    xp.LIBC.sysctlbyname(b'kern.boottime', None, ctypes.byref(sz), None, 0)
8
+    xp.LIBC.sysctlbyname(b"kern.boottime", None, ctypes.byref(sz), None, 0)
9
     if sz.value != struct.calcsize('@LL'):
9
     if sz.value != struct.calcsize("@LL"):
10
         # Unexpected, let's give up.
10
         # Unexpected, let's give up.
11
         return None
11
         return None
12
     # For real now.
13
     buf = ctypes.create_string_buffer(sz.value)
14
-    xp.LIBC.sysctlbyname("kern.boottime", buf, ctypes.byref(sz), None, 0)
15
+    xp.LIBC.sysctlbyname(b"kern.boottime", buf, ctypes.byref(sz), None, 0)
16
     sec, usec = struct.unpack_from("@LL", buf.raw)
17
     # OS X disagrees what that second value is.
18
     if usec > 1000000:

Return to bug 230369