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

shadow/4.17.0 package update #38360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

octo-sts[bot]
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 25, 2024

@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr labels Dec 25, 2024
Copy link
Contributor Author

octo-sts bot commented Dec 25, 2024

Gen AI suggestions to solve the build error:

Based on the error output, I'll analyze and provide a solution:

• Detected Error: "can't find file to patch at input line 3... The text leading up to this was: |--- a/lib/alloc.h"

• Error Category: Configuration/Patch

• Failure Point: During the patch step in the pipeline, specifically when trying to apply fix-undefined-reference.patch

• Root Cause Analysis: The patch is failing because the path specified in the patch file doesn't match the source tree structure, or the patch file is trying to modify a file that doesn't exist at the expected location.

• Suggested Fix:

  1. Update the patch section in the YAML to include the -p1 strip option:
  - uses: patch
    with:
      patches: |
        fix-undefined-reference.patch \
        useradd-defaults.patch
      strip-components: 1
  1. Alternatively, verify the patch file paths match the source tree by:
  - uses: patch
    with:
      patches: |
        fix-undefined-reference.patch \
        useradd-defaults.patch
      use-git: true

• Explanation: The patch is failing because the path prefixes don't match. The -p1 strip option removes one level of directory prefix from the patch paths, which is commonly needed when patches are created from git repositories. Using use-git: true lets git handle the patch application which can be more forgiving with path matching.

• Additional Notes:

  • The source code is being extracted from a .tar.xz file which might have a different directory structure than what the patch expects
  • The patch appears to be trying to modify lib/alloc.h but can't find the correct path
  • Using git-style patch application can help handle path differences automatically

• References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated pr request-version-update request for a newer version of a package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant