When I invoke fedpkg module-build-local that seems to have completely different behaviour for generating the buildroot than fedpkg module-build
fedpkg module-build-local
fedpkg module-build
For example, I am building a java-based module that has a build dependency on javapackages-tools. I expect my package to be built against those deps available from javapackages-tools rather than the platform module.
When I do fedpkg module-build then koji appears to do the right thing:
DEBUG util.py:556: ================================================================================ DEBUG util.py:556: Package ArchVersion Repo Size DEBUG util.py:556: ================================================================================ DEBUG util.py:556: Installing: DEBUG util.py:556: junit noarch1:4.12-9.module_f28+3695+340f1066 build 299 k DEBUG util.py:556: maven-lib noarch1:3.5.4-5.module_f28+3695+340f1066 build 1.4 M DEBUG util.py:556: maven-local noarch5.3.0-3.module_f28+3695+340f1066 build 27 k DEBUG util.py:556: maven-parent noarch27-5.module_f28+3695+340f1066 build 19 k DEBUG util.py:556: maven-plugin-annotations noarch3.5.1-4.module_f28+3695+340f1066 build 28 k DEBUG util.py:556: maven-plugin-plugin noarch3.5.1-4.module_f28+3695+340f1066 build 67 k DEBUG util.py:556: plexus-containers-component-annotations noarch1.7.1-8.module_f28+3695+340f1066 build 23 k DEBUG util.py:556: plexus-containers-component-metadata noarch1.7.1-8.module_f28+3695+340f1066 build 123 k DEBUG util.py:556: plexus-utils noarch3.1.0-3.module_f28+3695+340f1066 build 258 k DEBUG util.py:556: sisu-plexus noarch1:0.3.3-6.module_f28+3695+340f1066 build 179 k DEBUG util.py:556: slf4j noarch1.7.25-4.module_f28+3695+340f1066 build 76 k
However when I attempt the build locally with fedpkg module-build-local then I get packages from the platform module instead:
EBUG: ================================================================================ DEBUG: Package ArchVersion Repository Size DEBUG: ================================================================================ DEBUG: Installing: DEBUG: junit noarch1:4.12-11.fc30 f30-build 293 k DEBUG: maven-lib noarch1:3.5.4-7.fc30 f30-build 1.4 M DEBUG: maven-local noarch5.3.0-4.fc30 f30-build 9.6 k DEBUG: maven-parent noarch27-7.fc30 f30-build 18 k DEBUG: maven-plugin-annotations noarch3.5.1-5.fc30 f30-build 22 k DEBUG: maven-plugin-plugin noarch3.5.1-5.fc30 f30-build 62 k DEBUG: plexus-containers-component-annotations noarch1.7.1-9.fc30 f30-build 18 k DEBUG: plexus-containers-component-metadata noarch1.7.1-9.fc30 f30-build 118 k DEBUG: plexus-utils noarch3.1.0-4.fc30 f30-build 254 k DEBUG: sisu-plexus noarch1:0.3.3-7.fc30 f30-build 179 k DEBUG: slf4j noarch1.7.25-6.fc30 f30-build 69 k
This breaks my builds locally under some circumstances because those packages in the platform module can be very different to those from the javapackages-tools module
How are other people testing their module builds?
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/mbs/issues/1232
Please continue any further discussion there.