-
Notifications
You must be signed in to change notification settings - Fork 119
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
Use DefaultWorkspaceDir from container instead of hardcoding /home/build #1728
Open
dannf
wants to merge
2
commits into
chainguard-dev:main
Choose a base branch
from
dannf:workspace-dir
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…uild" Signed-off-by: dann frazier <[email protected]>
Signed-off-by: dann frazier <[email protected]>
dannf
added a commit
to wolfi-dev/os
that referenced
this pull request
Jan 3, 2025
This package requires lazy binding to build, which conflicts with the `-Wl,-z,now` flag in openssf-compiler-options. Instead of disabling all of the openssf options, let's just drop that one flag. I tried to implement this completely within openssf-compiler-options, as described here[*], but the %{!Wl,-z,now:...} syntax doesn't seem to work for detecting these options. I also tried including various spec file snippets to tweak the *link_command and friends, but failed. For now, let's just make our own copy of openssf.spec and edit/use it. Note: spec files need to have fully qualified paths. melange doesn't support ${{package.srcdir}} expansion in environment variables yet[**], so I've hardcoded `/home/build` for now. [*] #34568 (comment) [**] chainguard-dev/melange#1728 Signed-off-by: dann frazier <[email protected]>
dannf
added a commit
to wolfi-dev/os
that referenced
this pull request
Jan 3, 2025
This package requires lazy binding to build, which conflicts with the `-Wl,-z,now` flag in openssf-compiler-options. Instead of disabling all of the openssf options, let's just drop that one flag. I tried to implement this completely within openssf-compiler-options, as described here[*], but the %{!Wl,-z,now:...} syntax doesn't seem to work for detecting these options. I also tried including various spec file snippets to tweak the *link_command and friends, but failed. For now, let's just make our own copy of openssf.spec and edit/use it. Note: spec files need to have fully qualified paths. melange doesn't support ${{package.srcdir}} expansion in environment variables yet[**], so I've hardcoded `/home/build` for now. [*] #34568 (comment) [**] chainguard-dev/melange#1728 Signed-off-by: dann frazier <[email protected]>
dannf
added a commit
to wolfi-dev/os
that referenced
this pull request
Jan 3, 2025
…lazy binding This package requires lazy binding to build, which conflicts with the `-Wl,-z,now` flag in openssf-compiler-options. Instead of disabling all of the openssf options, let's just drop that one flag. I tried to implement this completely within openssf-compiler-options, as described here[*], but the %{!Wl,-z,now:...} syntax doesn't seem to work for detecting these options. I also tried including various spec file snippets to tweak the *link_command and friends, but failed. For now, let's just make our own copy of openssf.spec and edit/use it. Note: spec files need to have fully qualified paths. melange doesn't support ${{package.srcdir}} expansion in environment variables yet[**], so I've hardcoded `/home/build` for now. [*] #34568 (comment) [**] chainguard-dev/melange#1728 Signed-off-by: dann frazier <[email protected]>
dannf
added a commit
to dannf/os
that referenced
this pull request
Jan 15, 2025
…w lazy binding This package requires lazy binding to build, which conflicts with the `-Wl,-z,now` flag in openssf-compiler-options. Instead of disabling all of the openssf options, let's just drop that one flag. I tried to implement this completely within openssf-compiler-options, as described here[*], but the %{!Wl,-z,now:...} syntax doesn't seem to work for detecting these options. I also tried including various spec file snippets to tweak the *link_command and friends, but failed. For now, let's just make our own copy of openssf.spec and edit/use it. Note: spec files need to have fully qualified paths. melange doesn't support ${{package.srcdir}} expansion in environment variables yet[**], so I've hardcoded `/home/build` for now. [*] wolfi-dev#34568 (comment) [**] chainguard-dev/melange#1728 Signed-off-by: dann frazier <[email protected]>
dannf
added a commit
to dannf/os
that referenced
this pull request
Jan 15, 2025
…lazy binding This package requires lazy binding to build, which conflicts with the `-Wl,-z,now` flag in openssf-compiler-options. Instead of disabling all of the openssf options, let's just drop that one flag. I tried to implement this completely within openssf-compiler-options, as described here[*], but the %{!Wl,-z,now:...} syntax doesn't seem to work for detecting these options. I also tried including various spec file snippets to tweak the *link_command and friends, but failed. For now, let's just make our own copy of openssf.spec and edit/use it. Note: spec files need to have fully qualified paths. melange doesn't support ${{package.srcdir}} expansion in environment variables yet[**], so I've hardcoded `/home/build` for now. [*] wolfi-dev#34568 (comment) [**] chainguard-dev/melange#1728 Signed-off-by: dann frazier <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We have
/home/build
hardcoded in several places. It seems likecontainer.DefaultWorkspaceDir
is the canonical definition, so let's just use it. Also use it to do${{package.srcdir}}
substitutions (which is what I'm really after here).Note: This is my first time touching
melange
code. There may be a very good reason we aren't importingcontainer
here - but it isn't clear to me.