-
Notifications
You must be signed in to change notification settings - Fork 249
Allow access to the buildroot repo #1712
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -811,6 +811,12 @@ def process_hermetic_build_config(cmdline_opts, config_opts): | |
|
|
||
| config_opts["offline_local_repository"] = final_offline_repo | ||
|
|
||
| # Provide build access to buildroot packages solving same issue as | ||
| # https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.org/thread/ZIBY53JAURLT3QRBBJIJJ7EZWLZDE3TI/ | ||
| # keepcache=1 for local repos work only in dnf5 not dnf4 | ||
| config_opts['plugin_conf']['bind_mount_enable'] = True | ||
| config_opts['plugin_conf']['bind_mount_opts']['dirs'].append((final_offline_repo, '/hermetic_repo' )) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The hardcoded string References
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a terrible idea, it would introduce a long range dependency into the code completely unnecessarily. |
||
|
|
||
| # We install all the packages at once (for now?). We could inherit the | ||
| # command from the previous "online" run, but it often employs a group | ||
| # installation command - and we have no groups in the offline repo. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Hermetic build [now|PR#1712] provides access to buildroot repo in | ||
| `/hermetic_repo` directory. Normal behaviour for package maintainers is to | ||
| expect that `/var/cache/{dnf|yum}` is populated by these packages. Anyway, in | ||
| case of "offline" repo which is used by hermetic builds, `dnf4` doesn't | ||
| populate that directory, while `dnf5` yes (with `keepcache=1`). Providing also | ||
| `/hermetic_repo` in every case would make looking for buildroot packages a bit | ||
| easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this note!