Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for enabling dynamic dependency resolution #188

Closed
siteshwar opened this issue Nov 4, 2024 · 2 comments
Closed

Add support for enabling dynamic dependency resolution #188

siteshwar opened this issue Nov 4, 2024 · 2 comments

Comments

@siteshwar
Copy link
Member

This issue tracks adding support for enabling --calculate-build-deps option in `csmock.

Related notes: https://rpm-software-management.github.io/mock/Release-Notes-5.7

@praiskup
Copy link
Member

praiskup commented Nov 5, 2024

From manual page:

       --calculate-build-dependencies SRPM
              Evaluate and install all the SRPM (= file name, path on your sys‐
              tem) build dependencies, including dynamic dependencies in  %gen‐
              erate_buildrequires.  This is similar to the --installdeps option
              which only installs the static BuildRequires.

              Build  chroot-native  *.src.rpm  and *.nosrc.rpm files (the later
              only when %generate_buildrequires is  in  use!).   The  *.src.rpm
              records  the  corresponding  static list of build dependencies (=
              BuildRequires).  The *.nosrc.rpm records a full list of build de‐
              pendencies   (static   +   dynamic).    Test   with   rpm    -qpR
              [*.src.rpm|*.nosrc.rpm].

              Additionally,  provide  a  buildroot_lock.json file; this records
              the metadata  needed  for  a  hermetic  build  (see  also  --her‐
              metic-build).

Discussed with @kdudka here rpm-software-management/mock#1358

kdudka added a commit to kdudka/csmock that referenced this issue Nov 5, 2024
Use the `--calculate-build-dependencies` option of `mock` instead of the
`--installdeps` option, which installs static build dependencies only.

Fixes: csutils#188
Closes: csutils#189
@kdudka kdudka closed this as completed in 50b1c8c Nov 6, 2024
@kdudka
Copy link
Member

kdudka commented Nov 6, 2024

@praiskup Today I realized what we were talking about a few months ago: --calcuclate-build-dependencies (unlike --installdeps) does not imply --no-clean. I think it is worth to mention this difference in the man page.

kdudka added a commit to kdudka/openscanhub that referenced this issue Nov 6, 2024
... until the ubi10 image is available

Related: csutils/csmock#188
kdudka added a commit to kdudka/openscanhub that referenced this issue Nov 6, 2024
... until the ubi10 image is available

Related: csutils/csmock#188
Closes: openscanhub#302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants