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

Fetch packages after removing what we need to rebuild, not before that. #1148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dsh2dsh
Copy link

@dsh2dsh dsh2dsh commented Apr 21, 2024

I think, this change from PR #1101 is still actual:

#1101
bc6b07b

@bdrewery
Copy link
Member

Yes the plan is for #822 to address. Or at least come in first before making more changes to the ordering.

@bdrewery bdrewery self-assigned this Apr 22, 2024
dsh2dsh added a commit to dsh2dsh/poudriere that referenced this pull request Apr 22, 2024
rebuild only changed dependencies. Without this change poudriere rebuild changed
ports, ports with changed dependencies and ports with dependencies with changed
dependencies. For instance:

Deleting vulkan-loader-1.3.273.pkg: new version: 1.3.274
Deleting ffmpeg-6.1_1,1.pkg: missing dependency: vulkan-loader-1.3.273
Deleting firefox-121.0,2.pkg: missing dependency: ffmpeg-6.1_1,1

firefox-121.0,2 doesn't depend on vulkan-loader-1.3.273, but poudriere removes
it too, because ffmpeg-6.1_1,1 was removed.

Now poudriere will remove ffmpeg-6.1_1,1, but keep firefox-121.0,2, because
version of ffmpeg will not change after rebuilding and firefox-121.0,2 will have
valid dependencies. The same step now looks:

Deleting vulkan-loader-1.3.273.pkg: new version: 1.3.274
Keeping ffmpeg-6.1_1,1.pkg: missing dependency: vulkan-loader-1.3.273

... after processing dependencies

Deleting ffmpeg-6.1_1,1: missing dependency

As you can see it will not rebuild firefox and finish everything faster.

See PR freebsd#1101 and freebsd#1148.
dsh2dsh added a commit to dsh2dsh/poudriere that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants