[Bug 2111595] Re: FTBFS in questing: setup.cfg command 'build_java' has no such option 'minimum-java-release'
Benjamin Drung
2111595 at bugs.launchpad.net
Mon Jun 2 09:17:04 UTC 2025
** Changed in: apport
Milestone: None => 2.33.0
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2111595
Title:
FTBFS in questing: setup.cfg command 'build_java' has no such option
'minimum-java-release'
Status in Apport:
Triaged
Status in apport package in Ubuntu:
Triaged
Bug description:
Apport 2.32.0-0ubuntu5 FTBFS on questing due to an error in a custom
setuptools command:
```
error: error in setup.cfg: command 'build_java' has no such option 'minimum-java-release'
E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build
dh_auto_build: error: pybuild --build -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1185:
dpkg-buildpackage -us -uc -ui failed
```
I tried to sidestep this by commenting out the relevant option in
setup.cfg:
```
[build_java_subdir]
-minimum-java-release=8
+# minimum-java-release=8
```
and hardcoding the release in setuptools_apport/java.py:
```
def initialize_options(self) -> None:
"""Set or (reset) all options/attributes/caches to their default values"""
- self.minimum_java_release = "7"
+ self.minimum_java_release = "8"
```
and I still got the following error:
```
make[1]: Entering directory '/home/octavio/apport-2.32.0'
tests/run-linters --errors-only
Running mypy...
Success: no issues found in 98 source files
Success: no issues found in 21 source files
Running pylint...
************* Module debian
debian/__init__.py:1:0: F0010: error while code parsing: Unable to load file debian/__init__.py:
[Errno 2] No such file or directory: 'debian/__init__.py' (parse-error)
make[1]: *** [debian/rules:8: override_dh_auto_test] Error 1
make[1]: Leaving directory '/home/octavio/apport-2.32.0'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1185:
dpkg-buildpackage -us -uc -ui failed
```
Let me know if I can provide further information.
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2111595/+subscriptions
More information about the foundations-bugs
mailing list