forked from decenomy/ESBC2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
507 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,6 @@ libconftest.dylib* | |
*.pyc | ||
*.o | ||
*.o-* | ||
*.patch | ||
.esbcoin | ||
*.a | ||
*.pb.cc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/include/boost/atomic/detail/cas128strong.hpp b/include/boost/atomic/detail/cas128strong.hpp | ||
index 906c13e..dcb4d7d 100644 | ||
--- a/include/boost/atomic/detail/cas128strong.hpp | ||
+++ b/include/boost/atomic/detail/cas128strong.hpp | ||
@@ -196,15 +196,17 @@ class base_atomic<T, void, 16, Sign> | ||
|
||
public: | ||
BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) | ||
- explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) | ||
+ explicit base_atomic(value_type const& v) BOOST_NOEXCEPT | ||
{ | ||
+ memset(&v_, 0, sizeof(v_)); | ||
memcpy(&v_, &v, sizeof(value_type)); | ||
} | ||
|
||
void | ||
store(value_type const& value, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type value_s = 0; | ||
+ storage_type value_s; | ||
+ memset(&value_s, 0, sizeof(value_s)); | ||
memcpy(&value_s, &value, sizeof(value_type)); | ||
platform_fence_before_store(order); | ||
platform_store128(value_s, &v_); | ||
@@ -247,7 +249,9 @@ class base_atomic<T, void, 16, Sign> | ||
memory_order success_order, | ||
memory_order failure_order) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type expected_s = 0, desired_s = 0; | ||
+ storage_type expected_s, desired_s; | ||
+ memset(&expected_s, 0, sizeof(expected_s)); | ||
+ memset(&desired_s, 0, sizeof(desired_s)); | ||
memcpy(&expected_s, &expected, sizeof(value_type)); | ||
memcpy(&desired_s, &desired, sizeof(value_type)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
diff --git a/include/boost/atomic/detail/gcc-atomic.hpp b/include/boost/atomic/detail/gcc-atomic.hpp | ||
index a130590..4af99a1 100644 | ||
--- a/include/boost/atomic/detail/gcc-atomic.hpp | ||
+++ b/include/boost/atomic/detail/gcc-atomic.hpp | ||
@@ -958,14 +958,16 @@ class base_atomic<T, void, 16, Sign> | ||
|
||
public: | ||
BOOST_DEFAULTED_FUNCTION(base_atomic(void), {}) | ||
- explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0) | ||
+ explicit base_atomic(value_type const& v) BOOST_NOEXCEPT | ||
{ | ||
+ memset(&v_, 0, sizeof(v_)); | ||
memcpy(&v_, &v, sizeof(value_type)); | ||
} | ||
|
||
void store(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type tmp = 0; | ||
+ storage_type tmp; | ||
+ memset(&tmp, 0, sizeof(tmp)); | ||
memcpy(&tmp, &v, sizeof(value_type)); | ||
__atomic_store_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); | ||
} | ||
@@ -980,7 +982,8 @@ class base_atomic<T, void, 16, Sign> | ||
|
||
value_type exchange(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type tmp = 0; | ||
+ storage_type tmp; | ||
+ memset(&tmp, 0, sizeof(tmp)); | ||
memcpy(&tmp, &v, sizeof(value_type)); | ||
tmp = __atomic_exchange_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order)); | ||
value_type res; | ||
@@ -994,7 +997,9 @@ class base_atomic<T, void, 16, Sign> | ||
memory_order success_order, | ||
memory_order failure_order) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type expected_s = 0, desired_s = 0; | ||
+ storage_type expected_s, desired_s; | ||
+ memset(&expected_s, 0, sizeof(expected_s)); | ||
+ memset(&desired_s, 0, sizeof(desired_s)); | ||
memcpy(&expected_s, &expected, sizeof(value_type)); | ||
memcpy(&desired_s, &desired, sizeof(value_type)); | ||
const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, false, | ||
@@ -1010,7 +1015,9 @@ class base_atomic<T, void, 16, Sign> | ||
memory_order success_order, | ||
memory_order failure_order) volatile BOOST_NOEXCEPT | ||
{ | ||
- storage_type expected_s = 0, desired_s = 0; | ||
+ storage_type expected_s, desired_s; | ||
+ memset(&expected_s, 0, sizeof(expected_s)); | ||
+ memset(&desired_s, 0, sizeof(desired_s)); | ||
memcpy(&expected_s, &expected, sizeof(value_type)); | ||
memcpy(&desired_s, &desired, sizeof(value_type)); | ||
const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/biplist/__init__.py 2014-10-26 19:03:11.000000000 +0000 | ||
+++ b/biplist/__init__.py 2016-07-19 19:30:17.663521999 +0000 | ||
@@ -541,7 +541,7 @@ | ||
return HashableWrapper(n) | ||
elif isinstance(root, dict): | ||
n = {} | ||
- for key, value in iteritems(root): | ||
+ for key, value in sorted(iteritems(root)): | ||
n[self.wrapRoot(key)] = self.wrapRoot(value) | ||
return HashableWrapper(n) | ||
elif isinstance(root, list): | ||
@@ -616,7 +616,7 @@ | ||
elif isinstance(obj, dict): | ||
size = proc_size(len(obj)) | ||
self.incrementByteCount('dictBytes', incr=1+size) | ||
- for key, value in iteritems(obj): | ||
+ for key, value in sorted(iteritems(obj)): | ||
check_key(key) | ||
self.computeOffsets(key, asReference=True) | ||
self.computeOffsets(value, asReference=True) | ||
@@ -714,7 +714,7 @@ | ||
keys = [] | ||
values = [] | ||
objectsToWrite = [] | ||
- for key, value in iteritems(obj): | ||
+ for key, value in sorted(iteritems(obj)): | ||
keys.append(key) | ||
values.append(value) | ||
for key in keys: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- cdrkit-1.1.11.old/genisoimage/tree.c 2008-10-21 19:57:47.000000000 -0400 | ||
+++ cdrkit-1.1.11/genisoimage/tree.c 2013-12-06 00:23:18.489622668 -0500 | ||
@@ -1139,8 +1139,9 @@ | ||
scan_directory_tree(struct directory *this_dir, char *path, | ||
struct directory_entry *de) | ||
{ | ||
- DIR *current_dir; | ||
+ int current_file; | ||
char whole_path[PATH_MAX]; | ||
+ struct dirent **d_list; | ||
struct dirent *d_entry; | ||
struct directory *parent; | ||
int dflag; | ||
@@ -1164,7 +1165,8 @@ | ||
this_dir->dir_flags |= DIR_WAS_SCANNED; | ||
|
||
errno = 0; /* Paranoia */ | ||
- current_dir = opendir(path); | ||
+ //current_dir = opendir(path); | ||
+ current_file = scandir(path, &d_list, NULL, alphasort); | ||
d_entry = NULL; | ||
|
||
/* | ||
@@ -1173,12 +1175,12 @@ | ||
*/ | ||
old_path = path; | ||
|
||
- if (current_dir) { | ||
+ if (current_file >= 0) { | ||
errno = 0; | ||
- d_entry = readdir(current_dir); | ||
+ d_entry = d_list[0]; | ||
} | ||
|
||
- if (!current_dir || !d_entry) { | ||
+ if (current_file < 0 || !d_entry) { | ||
int ret = 1; | ||
|
||
#ifdef USE_LIBSCHILY | ||
@@ -1191,8 +1193,8 @@ | ||
de->isorec.flags[0] &= ~ISO_DIRECTORY; | ||
ret = 0; | ||
} | ||
- if (current_dir) | ||
- closedir(current_dir); | ||
+ if(d_list) | ||
+ free(d_list); | ||
return (ret); | ||
} | ||
#ifdef ABORT_DEEP_ISO_ONLY | ||
@@ -1208,7 +1210,7 @@ | ||
errmsgno(EX_BAD, "use Rock Ridge extensions via -R or -r,\n"); | ||
errmsgno(EX_BAD, "or allow deep ISO9660 directory nesting via -D.\n"); | ||
} | ||
- closedir(current_dir); | ||
+ free(d_list); | ||
return (1); | ||
} | ||
#endif | ||
@@ -1250,13 +1252,13 @@ | ||
* The first time through, skip this, since we already asked | ||
* for the first entry when we opened the directory. | ||
*/ | ||
- if (dflag) | ||
- d_entry = readdir(current_dir); | ||
+ if (dflag && current_file >= 0) | ||
+ d_entry = d_list[current_file]; | ||
dflag++; | ||
|
||
- if (!d_entry) | ||
+ if (current_file < 0) | ||
break; | ||
- | ||
+ current_file--; | ||
/* OK, got a valid entry */ | ||
|
||
/* If we do not want all files, then pitch the backups. */ | ||
@@ -1348,7 +1350,7 @@ | ||
insert_file_entry(this_dir, whole_path, d_entry->d_name); | ||
#endif /* APPLE_HYB */ | ||
} | ||
- closedir(current_dir); | ||
+ free(d_list); | ||
|
||
#ifdef APPLE_HYB | ||
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
diff -dur a/mac_alias/alias.py b/mac_alias/alias.py | ||
--- a/mac_alias/alias.py 2015-10-19 12:12:48.000000000 +0200 | ||
+++ b/mac_alias/alias.py 2016-04-03 12:13:12.037159417 +0200 | ||
@@ -243,10 +243,10 @@ | ||
alias = Alias() | ||
alias.appinfo = appinfo | ||
|
||
- alias.volume = VolumeInfo (volname.replace('/',':'), | ||
+ alias.volume = VolumeInfo (volname.decode().replace('/',':'), | ||
voldate, fstype, disktype, | ||
volattrs, volfsid) | ||
- alias.target = TargetInfo (kind, filename.replace('/',':'), | ||
+ alias.target = TargetInfo (kind, filename.decode().replace('/',':'), | ||
folder_cnid, cnid, | ||
crdate, creator_code, type_code) | ||
alias.target.levels_from = levels_from | ||
@@ -261,9 +261,9 @@ | ||
b.read(1) | ||
|
||
if tag == TAG_CARBON_FOLDER_NAME: | ||
- alias.target.folder_name = value.replace('/',':') | ||
+ alias.target.folder_name = value.decode().replace('/',':') | ||
elif tag == TAG_CNID_PATH: | ||
- alias.target.cnid_path = struct.unpack(b'>%uI' % (length // 4), | ||
+ alias.target.cnid_path = struct.unpack('>%uI' % (length // 4), | ||
value) | ||
elif tag == TAG_CARBON_PATH: | ||
alias.target.carbon_path = value | ||
@@ -298,9 +298,9 @@ | ||
alias.target.creation_date \ | ||
= mac_epoch + datetime.timedelta(seconds=seconds) | ||
elif tag == TAG_POSIX_PATH: | ||
- alias.target.posix_path = value | ||
+ alias.target.posix_path = value.decode() | ||
elif tag == TAG_POSIX_PATH_TO_MOUNTPOINT: | ||
- alias.volume.posix_path = value | ||
+ alias.volume.posix_path = value.decode() | ||
elif tag == TAG_RECURSIVE_ALIAS_OF_DISK_IMAGE: | ||
alias.volume.disk_image_alias = Alias.from_bytes(value) | ||
elif tag == TAG_USER_HOME_LENGTH_PREFIX: | ||
@@ -422,13 +422,13 @@ | ||
# (so doing so is ridiculous, and nothing could rely on it). | ||
b.write(struct.pack(b'>h28pI2shI64pII4s4shhI2s10s', | ||
self.target.kind, | ||
- carbon_volname, voldate, | ||
+ carbon_volname, int(voldate), | ||
self.volume.fs_type, | ||
self.volume.disk_type, | ||
self.target.folder_cnid, | ||
carbon_filename, | ||
self.target.cnid, | ||
- crdate, | ||
+ int(crdate), | ||
self.target.creator_code, | ||
self.target.type_code, | ||
self.target.levels_from, | ||
@@ -449,12 +449,12 @@ | ||
|
||
b.write(struct.pack(b'>hhQhhQ', | ||
TAG_HIGH_RES_VOLUME_CREATION_DATE, | ||
- 8, long(voldate * 65536), | ||
+ 8, int(voldate * 65536), | ||
TAG_HIGH_RES_CREATION_DATE, | ||
- 8, long(crdate * 65536))) | ||
+ 8, int(crdate * 65536))) | ||
|
||
if self.target.cnid_path: | ||
- cnid_path = struct.pack(b'>%uI' % len(self.target.cnid_path), | ||
+ cnid_path = struct.pack('>%uI' % len(self.target.cnid_path), | ||
*self.target.cnid_path) | ||
b.write(struct.pack(b'>hh', TAG_CNID_PATH, | ||
len(cnid_path))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 | ||
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 | ||
@@ -76,8 +76,6 @@ | ||
|
||
DEFINES += $$QMAKE_DEFINES_XCB | ||
LIBS += $$QMAKE_LIBS_XCB | ||
-QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB | ||
-QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB | ||
|
||
CONFIG += qpa/genericunixfontdatabase | ||
|
||
@@ -89,7 +87,8 @@ | ||
contains(QT_CONFIG, xcb-qt) { | ||
DEFINES += XCB_USE_RENDER | ||
XCB_DIR = ../../../3rdparty/xcb | ||
- INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/sysinclude | ||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB | ||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB | ||
LIBS += -lxcb -L$$MODULE_BASE_OUTDIR/lib -lxcb-static$$qtPlatformTargetSuffix() | ||
} else { | ||
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xinerama | ||
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro | ||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro | ||
@@ -9,7 +9,8 @@ | ||
|
||
XCB_DIR = ../../../../3rdparty/xcb | ||
|
||
-INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/include/xcb $$XCB_DIR/sysinclude | ||
+QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude | ||
+QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude | ||
|
||
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB | ||
QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB | ||
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro | ||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro | ||
@@ -6,6 +6,13 @@ | ||
qxcbmain.cpp | ||
OTHER_FILES += xcb.json README | ||
|
||
+contains(QT_CONFIG, xcb-qt) { | ||
+ DEFINES += XCB_USE_RENDER | ||
+ XCB_DIR = ../../../3rdparty/xcb | ||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB | ||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB | ||
+} | ||
+ | ||
PLUGIN_TYPE = platforms | ||
PLUGIN_CLASS_NAME = QXcbIntegrationPlugin | ||
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- old/qtbase/mkspecs/features/qt_module.prf | ||
+++ new/qtbase/mkspecs/features/qt_module.prf | ||
@@ -245,7 +245,7 @@ | ||
load(qt_targets) | ||
|
||
# this builds on top of qt_common | ||
-!internal_module:!lib_bundle:if(unix|mingw) { | ||
+unix|mingw { | ||
CONFIG += create_pc | ||
QMAKE_PKGCONFIG_DESTDIR = pkgconfig | ||
host_build: \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp | ||
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp | ||
@@ -77,7 +77,7 @@ | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <windowsx.h> | ||
-#ifndef Q_OS_WINCE | ||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1)) | ||
# include <comdef.h> | ||
#endif | ||
|
||
@@ -814,7 +814,7 @@ | ||
HWND_MESSAGE, NULL, static_cast<HINSTANCE>(GetModuleHandle(0)), NULL); | ||
} | ||
|
||
-#ifndef Q_OS_WINCE | ||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1)) | ||
// Re-engineered from the inline function _com_error::ErrorMessage(). | ||
// We cannot use it directly since it uses swprintf_s(), which is not | ||
// present in the MSVCRT.DLL found on Windows XP (QTBUG-35617). | ||
@@ -833,7 +833,7 @@ | ||
return QString::asprintf("IDispatch error #%u", uint(wCode)); | ||
return QString::asprintf("Unknown error 0x0%x", uint(comError.Error())); | ||
} | ||
-#endif // !Q_OS_WINCE | ||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1)) | ||
|
||
/*! | ||
\brief Common COM error strings. | ||
@@ -901,12 +901,12 @@ | ||
default: | ||
break; | ||
} | ||
-#ifndef Q_OS_WINCE | ||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1)) | ||
_com_error error(hr); | ||
result += QByteArrayLiteral(" ("); | ||
result += errorMessageFromComError(error); | ||
result += ')'; | ||
-#endif // !Q_OS_WINCE | ||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1)) | ||
return result; | ||
} | ||
|
Oops, something went wrong.