Skip to content

Commit 4f3ba60

Browse files
Use the latest tk patch for a Mac issue (NO_JIRA) (#19)
* Use the latest tk patch for a Mac issue (NO_JIRA) * update mac agents to macos 13 (NO_JIRA) * Update zlib source url (NO_JIRA) * Hopeful fix tk source url (NO_JIRA) * Update build_conquest_python.py (NO_JIRA) align TK and TCL version - remove a spurious $ from the tk path * Update build_conquest_python.py (NO_JIRA) Fix removal of extraneous packages * Update build_conquest_python.py fix obviously wrong thing * Update build_conquest_python.py (NO_JIRA) fix fussy review dog thing * Update jpeg package to the one now available (NO_JIRA) * Disable the collect issues task that requires sorting (CQ-1485) Our new artifactory no longer support sorting. Also CQ-1449 * PMW experiment (NO_JIRA) See if using newer PMW works ... * Try tcltk 8.6.13 (NO_JIRA) Try version that is closest to the version Pmw was released for yet fixes the bugs we need to fix * back to 8.6.16 as downgrading made no difference (NO_JIRA) * Remove whitespace in blank line (NO_JIRA) --------- Co-authored-by: Jason Christopher Cole <[email protected]>
1 parent 68ce009 commit 4f3ba60

File tree

3 files changed

+39
-37
lines changed

3 files changed

+39
-37
lines changed

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- job: macOS
6767
pool:
68-
vmImage: "macOS-11"
68+
vmImage: "macOS-13"
6969
variables:
7070
artifactory.platformName: "darwin"
7171
steps:

build_conquest_python.py

+19-18
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class ZlibPackage(InstallInConquestPythonBaseMixin, AutoconfMixin, NoArchiveMixi
2626
@property
2727
def source_archives(self):
2828
return {
29-
f'zlib-{self.version}.tar.xz': f'https://www.zlib.net/zlib-{self.version}.tar.xz'
29+
# older version of zlib no longer available on zlib.net,
30+
# so get it directly from Mark Adler's github repo
31+
f'zlib-{self.version}.tar.xz': f'https://github.com/madler/zlib/releases/download/v{self.version}/zlib-{self.version}.tar.xz'
3032
}
3133

3234

@@ -166,7 +168,7 @@ def verify(self):
166168

167169
class TclPackage(AutoconfMixin, NoArchiveMixin, Package):
168170
name = 'tcl'
169-
version = '8.6.11'
171+
version = '8.6.16'
170172
tclversion = '8.6'
171173

172174
@property
@@ -179,17 +181,15 @@ def source_archives(self):
179181
def extract_source_archives(self):
180182
super().extract_source_archives()
181183
# Remove packages we don't want to build
182-
shutil.rmtree(self.main_source_directory_path /
183-
'pkgs' / 'sqlite3.34.0')
184-
shutil.rmtree(self.main_source_directory_path / 'pkgs' / 'tdbc1.1.2')
185-
shutil.rmtree(self.main_source_directory_path /
186-
'pkgs' / 'tdbcmysql1.1.2')
187-
shutil.rmtree(self.main_source_directory_path /
188-
'pkgs' / 'tdbcodbc1.1.2')
189-
shutil.rmtree(self.main_source_directory_path /
190-
'pkgs' / 'tdbcpostgres1.1.2')
191-
shutil.rmtree(self.main_source_directory_path /
192-
'pkgs' / 'tdbcsqlite3-1.1.2')
184+
sp = Path(self.main_source_directory_path / 'pkgs')
185+
186+
sqlite_path = sp.glob('sqlite*')
187+
for file in sqlite_path:
188+
shutil.rmtree(file)
189+
190+
tbc_path = sp.glob('tdbc*')
191+
for file in tbc_path:
192+
shutil.rmtree(file)
193193

194194
@property
195195
def main_source_directory_path(self):
@@ -297,14 +297,15 @@ def verify(self):
297297

298298
class TkPackage(AutoconfMixin, NoArchiveMixin, Package):
299299
name = 'tk'
300-
version = '8.6.11'
300+
version = '8.6.16'
301301

302302
@property
303303
def source_archives(self):
304304
return {
305305
# Canonical would be https://prdownloads.sourceforge.net/tcl/ but it's fetching garbage
306306
# How lovely to have a different tcl and tk version....
307-
f'tk{self.version}-src.tar.gz': f'https://freefr.dl.sourceforge.net/project/tcl/Tcl/{self.version}/tk{self.version}.1-src.tar.gz'
307+
# The url is a bit of a mess, but it's the only one that works?
308+
f'tk{self.version}-src.tar.gz': f'https://sourceforge.net/projects/tcl/files/Tcl/{self.version}/tk{self.version}-src.tar.gz/download'
308309
}
309310

310311
@property
@@ -506,12 +507,12 @@ def arguments_to_configuration_script(self):
506507

507508
class JpegPackage(InstallInConquestPythonBaseMixin, AutoconfMixin, NoArchiveMixin, Package):
508509
name = 'jpeg'
509-
version = '9e'
510+
version = '9f'
510511

511512
@property
512513
def source_archives(self):
513514
return {
514-
f'jpegsrc.v{self.version}.tar.gz': f'https://fossies.org/linux/misc/jpegsrc.v9e.tar.gz'
515+
f'jpegsrc.v{self.version}.tar.gz': f'https://fossies.org/linux/misc/jpegsrc.v{self.version}.tar.gz'
515516
}
516517

517518

@@ -720,7 +721,7 @@ def main():
720721
ConquestPythonPackage().build()
721722
ConquestPythonPackage().ensure_pip()
722723
ConquestPythonPackage().pip_install(
723-
'Pmw==2.0.1',
724+
'Pmw==2.1.1',
724725
'numpy==1.16.6',
725726
'PyInstaller==3.5',
726727
'PyOpenGL==3.1.0',

common-tasks.yml

+19-18
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ steps:
66
scriptPath: build_conquest_python.py
77
displayName: 'install conquest_python'
88

9-
# Upload artifactory build info
10-
- task: ArtifactoryCollectIssues@1
11-
inputs:
12-
artifactoryService: 'devops-ccdc-3rd-party'
13-
configSource: 'taskConfiguration'
14-
taskConfig: |
15-
version: 1
16-
issues:
17-
trackerName: JIRA
18-
regexp: '(.*?)\b\(?(Jira|JIRA|jira)?\s+([A-Za-z]{2,5}\d*-\d+)\)?'
19-
keyGroupIndex: 3
20-
summaryGroupIndex: 1
21-
trackerUrl: https://jira.ccdc.cam.ac.uk/issues
22-
aggregate: true
23-
aggregationStatus: RELEASED
24-
buildName: '$(Build.DefinitionName)'
25-
buildNumber: '$(Build.BuildNumber)-$(artifactory.platformName)'
26-
displayName: 'Collect issues'
9+
#### The new artifactory doesn't support sorting, so we can't do this task for now
10+
## Upload artifactory build info
11+
#- task: ArtifactoryCollectIssues@1
12+
# inputs:
13+
# artifactoryService: 'devops-ccdc-3rd-party'
14+
# configSource: 'taskConfiguration'
15+
# taskConfig: |
16+
# version: 1
17+
# issues:
18+
# trackerName: JIRA
19+
# regexp: '(.*?)\b\(?(Jira|JIRA|jira)?\s+([A-Za-z]{2,5}\d*-\d+)\)?'
20+
# keyGroupIndex: 3
21+
# summaryGroupIndex: 1
22+
# trackerUrl: https://jira.ccdc.cam.ac.uk/issues
23+
# aggregate: true
24+
# aggregationStatus: RELEASED
25+
# buildName: '$(Build.DefinitionName)'
26+
# buildNumber: '$(Build.BuildNumber)-$(artifactory.platformName)'
27+
# displayName: 'Collect issues'
2728

2829
- powershell: |
2930
$filename = Get-ChildItem -Path $(Build.ArtifactStagingDirectory) -Filter *.tar.gz | Select-Object -ExpandProperty Name

0 commit comments

Comments
 (0)