View Issue Details

IDProjectCategoryView StatusLast Update
0037306mantisbtcode cleanuppublic2026-07-17 07:20
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0037306: Build scripts: use subprocess module
Description

The scripts use a variety of methods to run external processes: os.system, os.popen (deprecated in Python 3.14), subprocess.call and subprocess.check_call.

We should standardise on using subprocess.run (available since Python 3.5) instead.

Also avoid creating a sub shell.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master aca9cbee

2026-07-12 12:16

dregad


Details Diff
Replace os.system by subprocess.run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/docbook-manual-repo.py Diff File

MantisBT: master c515fd3e

2026-07-12 18:47

dregad


Details Diff
Replace os.popen by subprocess.run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/docbook-manual-repo.py Diff File

MantisBT: master 1fcde447

2026-07-12 19:00

dregad


Details Diff
Replace subprocess call/check_call by run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/buildrelease.py Diff File
mod - build/docbook-manual.py Diff File

MantisBT: master 651ca892

2026-07-17 06:52

dregad


Details Diff
Fix docbook nightly builds failure

publican exits with code 2 when --langs parameter is specified without
an actual language, which occurs when the script is called by cron via
docbook-builds.sh.

Regression introduced by issue 0037306
Affected Issues
0037306
mod - build/docbook-manual.py Diff File

MantisBT: master 10193141

2026-07-17 07:20

dregad


Details Diff
Fix docbook nightly builds failure (take 2)

docbook-builds.sh is actually passing '' as languages parameter. This is
not the same as no parameter specified.

Adapted the command-line processing to handle this corner case.

Issue 0037306
Affected Issues
0037306
mod - build/docbook-manual.py Diff File