mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 12:29:16 -04:00
- add license (GPLv2) - switch to bdb 5 - mark broken on 10.x for the time being (as it was discussed on ports@ ML) - remove patches, applied upstream This version of Ice brings many new features, e.g. - New encoding version - Metrics facility - Optional data members and parameters - Compact encoding for classes and exceptions - Compact type IDs - Preserved slices - Custom enumerator values - C++11 lambda functions - Remote Update of Server Properties - IPv6 now enabled by default - Python 3 support - Use Berkley DB 5 See http://doc.zeroc.com/display/Ice/Release+Notes for details. PR: 179233 Submitted by: Michael Gmelin <freebsd@grem.de> (maintainer) Tested by: Jaret Bartsch <jaretbartsch@yahoo.ca>
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
--- scripts.orig/TestUtil.py 2013-03-11 15:19:47.000000000 +0000
|
|
+++ scripts/TestUtil.py 2013-05-21 00:29:37.903194948 +0000
|
|
@@ -84,6 +84,25 @@
|
|
def isLinux():
|
|
return sys.platform.startswith("linux")
|
|
|
|
+def isFreeBSD():
|
|
+ return sys.platform.startswith("freebsd")
|
|
+
|
|
+def sysctl(key):
|
|
+ p = subprocess.Popen("sysctl "+key, shell=1, stdout=subprocess.PIPE)
|
|
+ try:
|
|
+ result = p.communicate()[0].strip().split()[1]
|
|
+ except IndexError:
|
|
+ return 0
|
|
+ if sys.version_info >= (3,):
|
|
+ result = str(result, sys.stdout.encoding)
|
|
+ try:
|
|
+ return int(result)
|
|
+ except ValueError:
|
|
+ return result
|
|
+
|
|
+def isFreeBSDJail():
|
|
+ return isFreeBSD() and sysctl("security.jail.jailed")
|
|
+
|
|
def getCppCompiler():
|
|
compiler = ""
|
|
if os.environ.get("CPP_COMPILER", "") != "":
|
|
@@ -1846,6 +1865,14 @@
|
|
print("%s*** test not supported under Darwin%s" % (prefix, suffix))
|
|
continue
|
|
|
|
+ if isFreeBSD() and "nofreebsd" in config:
|
|
+ print("%s*** test not supported under FreeBSD%s" % (prefix, suffix))
|
|
+ continue
|
|
+
|
|
+ if isFreeBSDJail() and "nofreebsdjail" in config:
|
|
+ print("%s*** test not supported within a FreeBSD Jail%s" % (prefix, suffix))
|
|
+ continue
|
|
+
|
|
if not isWin32() and "win32only" in config:
|
|
print("%s*** test only supported under Win32%s" % (prefix, suffix))
|
|
continue
|