aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-12-05 11:10:55 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-12-05 12:25:06 +0300
commit96458ea3c773a8a3edb707f73db0cdedbfcfad90 (patch)
treeb584db60c666cd4a645ab8ccfcd6ce18820988d3 /build
parent27c5889c53eb79bbb5af840f8dca9af826c0cd08 (diff)
downloadydb-96458ea3c773a8a3edb707f73db0cdedbfcfad90.tar.gz
External build system generator release 65
Update tools: yexport, os-yexport
Diffstat (limited to 'build')
-rw-r--r--build/external_resources/yexport/public.resources.json6
-rw-r--r--build/external_resources/yexport/resources.json6
-rw-r--r--build/mapping.conf.json20
-rw-r--r--build/scripts/export_script_gen.py26
-rw-r--r--build/scripts/generate_vcs_info.py40
5 files changed, 49 insertions, 49 deletions
diff --git a/build/external_resources/yexport/public.resources.json b/build/external_resources/yexport/public.resources.json
index 9f80f74e29..af8c3b57fc 100644
--- a/build/external_resources/yexport/public.resources.json
+++ b/build/external_resources/yexport/public.resources.json
@@ -1,13 +1,13 @@
{
"by_platform": {
"darwin": {
- "uri": "sbr:5433628204"
+ "uri": "sbr:5486584798"
},
"darwin-arm64": {
- "uri": "sbr:5433626802"
+ "uri": "sbr:5486590469"
},
"linux": {
- "uri": "sbr:5433622361"
+ "uri": "sbr:5486590393"
}
}
}
diff --git a/build/external_resources/yexport/resources.json b/build/external_resources/yexport/resources.json
index 228624fc38..9ec0f515ba 100644
--- a/build/external_resources/yexport/resources.json
+++ b/build/external_resources/yexport/resources.json
@@ -1,13 +1,13 @@
{
"by_platform": {
"darwin": {
- "uri": "sbr:5433593904"
+ "uri": "sbr:5486567100"
},
"darwin-arm64": {
- "uri": "sbr:5433588939"
+ "uri": "sbr:5486561298"
},
"linux": {
- "uri": "sbr:5433615972"
+ "uri": "sbr:5486576548"
}
}
}
diff --git a/build/mapping.conf.json b/build/mapping.conf.json
index 1e59b51b53..d85cb0cfb4 100644
--- a/build/mapping.conf.json
+++ b/build/mapping.conf.json
@@ -31,10 +31,6 @@
"5424033677": "https://devtools-registry.s3.yandex.net/5424033677",
"5424038053": "https://devtools-registry.s3.yandex.net/5424038053",
"5424051723": "https://devtools-registry.s3.yandex.net/5424051723",
- "5453803895": "https://devtools-registry.s3.yandex.net/5453803895",
- "5465946272": "https://devtools-registry.s3.yandex.net/5465946272",
- "5463300202": "https://devtools-registry.s3.yandex.net/5463300202",
- "5458408674": "https://devtools-registry.s3.yandex.net/5458408674",
"1966560555": "https://devtools-registry.s3.yandex.net/1966560555",
"309054781": "https://devtools-registry.s3.yandex.net/309054781",
"5298918458": "https://devtools-registry.s3.yandex.net/5298918458",
@@ -82,9 +78,9 @@
"5054512910": "https://devtools-registry.s3.yandex.net/5054512910",
"5054518131": "https://devtools-registry.s3.yandex.net/5054518131",
"5054515588": "https://devtools-registry.s3.yandex.net/5054515588",
- "5433628204": "https://devtools-registry.s3.yandex.net/5433628204",
- "5433626802": "https://devtools-registry.s3.yandex.net/5433626802",
- "5433622361": "https://devtools-registry.s3.yandex.net/5433622361",
+ "5486584798": "https://devtools-registry.s3.yandex.net/5486584798",
+ "5486590469": "https://devtools-registry.s3.yandex.net/5486590469",
+ "5486590393": "https://devtools-registry.s3.yandex.net/5486590393",
"5476908047": "https://devtools-registry.s3.yandex.net/5476908047",
"5476891477": "https://devtools-registry.s3.yandex.net/5476891477",
"5476896849": "https://devtools-registry.s3.yandex.net/5476896849",
@@ -123,10 +119,6 @@
"5424033677": "OTHER_RESOURCE-none-1.21.3-y_go1.21.3.linux-amd64.tar.gz",
"5424038053": "OTHER_RESOURCE-none-1.21.3-y_go1.21.3.linux-arm64.tar.gz",
"5424051723": "OTHER_RESOURCE-none-1.21.3-y_go1.21.3.windows-amd64.tar.gz",
- "5453803895": "OTHER_RESOURCE-none-none-lld.tgz",
- "5465946272": "OTHER_RESOURCE-none-none-lld.tgz",
- "5463300202": "OTHER_RESOURCE-none-none-lld.tgz",
- "5458408674": "OTHER_RESOURCE-none-none-lld.tgz",
"1966560555": "Ubuntu 14 x86-64 native SDK (patched, v3)",
"309054781": "Ubuntu 16 x86-64 -> Ubuntu 16 aarch64 cross SDK",
"5298918458": "bin-gdb-reloc-ya-linux-aarch64-62901b3b39a8b08c2d39a3bf08a1fc3a6d76eb78",
@@ -174,9 +166,9 @@
"5054512910": "ya-tc for darwin-arm64",
"5054518131": "ya-tc for linux",
"5054515588": "ya-tc for linux-aarch64",
- "5433628204": "yexport for darwin",
- "5433626802": "yexport for darwin-arm64",
- "5433622361": "yexport for linux",
+ "5486584798": "yexport for darwin",
+ "5486590469": "yexport for darwin-arm64",
+ "5486590393": "yexport for linux",
"5476908047": "ymake for darwin",
"5476891477": "ymake for darwin-arm64",
"5476896849": "ymake for linux",
diff --git a/build/scripts/export_script_gen.py b/build/scripts/export_script_gen.py
index 64b732eff5..3df3df8638 100644
--- a/build/scripts/export_script_gen.py
+++ b/build/scripts/export_script_gen.py
@@ -22,12 +22,12 @@ def parse_export_file(src):
def to_c(sym):
symbols = collections.deque(sym.split('::'))
c_prefixes = [ # demangle prefixes for c++ symbols
- '_ZN', # namespace
- '_ZTIN', # typeinfo for
- '_ZTSN', # typeinfo name for
- '_ZTTN', # VTT for
- '_ZTVN', # vtable for
- '_ZNK', # const methods
+ '_ZN', # namespace
+ '_ZTIN', # typeinfo for
+ '_ZTSN', # typeinfo name for
+ '_ZTTN', # VTT for
+ '_ZTVN', # vtable for
+ '_ZNK', # const methods
]
c_sym = ''
while symbols:
@@ -58,7 +58,7 @@ def to_gnu(src, dest):
d['C'].extend(to_c(item['sym']))
else:
d[item['lang']].append(item['sym'])
-
+
if version:
dest.write('{} {{\nglobal:\n'.format(version))
else:
@@ -102,9 +102,15 @@ def to_darwin(src, dest):
def main():
- parser = argparse.ArgumentParser(description='Convert self-invented platform independent export file format to the format required by specific linker')
- parser.add_argument('src', type=argparse.FileType('r', encoding='UTF-8'), help='platform independent export file path')
- parser.add_argument('dest', type=argparse.FileType('w', encoding='UTF-8'), help='destination export file for required linker')
+ parser = argparse.ArgumentParser(
+ description='Convert self-invented platform independent export file format to the format required by specific linker'
+ )
+ parser.add_argument(
+ 'src', type=argparse.FileType('r', encoding='UTF-8'), help='platform independent export file path'
+ )
+ parser.add_argument(
+ 'dest', type=argparse.FileType('w', encoding='UTF-8'), help='destination export file for required linker'
+ )
parser.add_argument('--format', help='destination file type format: gnu, msvc or darwin')
args = parser.parse_args()
diff --git a/build/scripts/generate_vcs_info.py b/build/scripts/generate_vcs_info.py
index 770d2ec802..b311be5617 100644
--- a/build/scripts/generate_vcs_info.py
+++ b/build/scripts/generate_vcs_info.py
@@ -29,19 +29,19 @@ def _get_user_locale():
return []
-class _GitVersion():
+class _GitVersion:
@classmethod
def parse(cls, commit_hash, author_info, summary_info, body_info, tag_info, branch_info, depth=None):
- r""" Parses output of
- git rev-parse HEAD
- git log -1 --format='format:%an <%ae>'
- git log -1 --format='format:%s'
- git log -1 --grep='^git-svn-id: ' --format='format:%b' or
- git log -1 --grep='^Revision: r?\d*' --format='format:%b
- git describe --exact-match --tags HEAD
- git describe --exact-match --all HEAD
- and depth as computed by _get_git_depth
- '"""
+ r"""Parses output of
+ git rev-parse HEAD
+ git log -1 --format='format:%an <%ae>'
+ git log -1 --format='format:%s'
+ git log -1 --grep='^git-svn-id: ' --format='format:%b' or
+ git log -1 --grep='^Revision: r?\d*' --format='format:%b
+ git describe --exact-match --tags HEAD
+ git describe --exact-match --all HEAD
+ and depth as computed by _get_git_depth
+ '"""
info = {}
info['hash'] = commit_hash
@@ -91,8 +91,8 @@ class _GitVersion():
hash_args = ['rev-parse', 'HEAD']
author_args = ['log', '-1', '--format=format:%an <%ae>']
summary_args = ['log', '-1', '--format=format:%s']
- svn_args = ['log', '-1', '--grep=^git-svn-id: ', '--format=format:%b']
- svn_args_alt = ['log', '-1', '--grep=^Revision: r\\?\\d*', '--format=format:%b']
+ svn_args = ['log', '-1', '--grep=^git-svn-id: ', '--format=format:%b']
+ svn_args_alt = ['log', '-1', '--grep=^Revision: r\\?\\d*', '--format=format:%b']
tag_args = ['describe', '--exact-match', '--tags', 'HEAD']
branch_args = ['describe', '--exact-match', '--all', 'HEAD']
@@ -163,6 +163,7 @@ class _SystemInfo:
@classmethod
def get_locale(cls):
import codecs
+
for i in cls.LOCALE_LIST:
if not i:
continue
@@ -237,6 +238,7 @@ class _SystemInfo:
errcodes += ', win-error {}'.format(e.winerror)
try:
import ctypes
+
msg = six_.text_type(ctypes.FormatError(e.winerror), _SystemInfo.get_locale()).encode('utf-8')
except ImportError:
pass
@@ -262,7 +264,8 @@ def _get_json(vcs_root):
def _dump_json(
- arc_root, info,
+ arc_root,
+ info,
other_data=None,
build_user=None,
build_date=None,
@@ -287,14 +290,14 @@ def _dump_json(
j['DIRTY'] = info.get('dirty', '')
if 'url' in info or 'svn_url' in info:
- j['SVN_REVISION'] = info.get('svn_commit_revision', info.get('revision', -1))
- j['SVN_ARCROOT'] = info.get('url', info.get('svn_url', ''))
- j['SVN_TIME'] = info.get('commit_date', info.get('svn_commit_date', ''))
+ j['SVN_REVISION'] = info.get('svn_commit_revision', info.get('revision', -1))
+ j['SVN_ARCROOT'] = info.get('url', info.get('svn_url', ''))
+ j['SVN_TIME'] = info.get('commit_date', info.get('svn_commit_date', ''))
j['BUILD_DATE'] = build_date
j['BUILD_TIMESTAMP'] = build_timestamp
- return json.dumps(j, sort_keys=True, indent=4, separators=(',', ': '))
+ return json.dumps(j, sort_keys=True, indent=4, separators=(',', ': '))
def get_version_info(arc_root, custom_version=""):
@@ -318,4 +321,3 @@ def get_version_info(arc_root, custom_version=""):
if __name__ == '__main__':
with open(sys.argv[1], 'w') as f:
f.write(get_version_info(sys.argv[2]))
-