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

feat(pipelines/split): Support overriding source package #1472

Merged
merged 6 commits into from
Sep 4, 2024

Conversation

EyeCantCU
Copy link
Member

@EyeCantCU EyeCantCU commented Sep 3, 2024

Currently, our split pipelines only support splitting targets from the main package in destdir. There are cases where this behavior could be useful for subpackages

I.E., minizip is built as part of the zlib packaging process as a subpackage. As a result, it includes development headers. As we can now override the source package, we can provide a minizip-dev subpackage without bundling it in zlib-dev

Example:

- name: minizip-dev
  pipeline:
    - uses: split/dev
      with:
        package: minizip

jonjohnsonjr
jonjohnsonjr previously approved these changes Sep 3, 2024
@EyeCantCU EyeCantCU marked this pull request as draft September 3, 2024 22:46
@EyeCantCU
Copy link
Member Author

I need to clean this up, I'd rather it take the package name, and when we pass ./melange-out instead of /home/build/melange-out, it breaks everything

@EyeCantCU EyeCantCU changed the title feat(pipelines/split): Support overriding source package directory feat(pipelines/split): Support overriding source package Sep 3, 2024
@EyeCantCU EyeCantCU marked this pull request as ready for review September 4, 2024 00:15
EyeCantCU and others added 6 commits September 3, 2024 18:39
Currently, our split pipelines only support splitting targets from the
main package in destdir. There are cases where this behavior could be
useful for subpackages

I.E., minizip is built as part of the zlib packaging process as a
subpackage. As a result, it includes development headers. As we can now
voerride the source directory as ./melange-out/minizip, we can provide a
minizip-dev subpackage without bundling it in zlib-dev

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
Signed-off-by: srishtih <srishti.hegde.sh@gmail.com>
paths

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
Thanks NVIDIA

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
NVIDIA

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
@jdolitsky jdolitsky merged commit df98c9f into main Sep 4, 2024
41 checks passed
@jdolitsky jdolitsky deleted the split-packagedir branch September 4, 2024 19:18
EyeCantCU added a commit that referenced this pull request Sep 5, 2024
/usr/local/*/lib64 was added to accomodate splitting away libraries used
for development. This was incorrect. Now ALL libraries in
/usr/local/*/lib64 get split away

This fixes that and removes the behavior. We add `usr/` to library paths
and that is sufficient for what we need

Broken behavior introduced by me here: #1472

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
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 this pull request may close these issues.

4 participants