-
Notifications
You must be signed in to change notification settings - Fork 124
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: add new Perl pipelines for Makefile generation and cleanup #657
feat: add new Perl pipelines for Makefile generation and cleanup #657
Conversation
* Add two new Perl pipelines for repetitive tasks: install and cleanup. Signed-off-by: Mauren Berti <mauren.berti@chainguard.dev>
|
||
pipeline: | ||
- runs: | | ||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
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.
Dumb question: is there a chance this will clobber existing environment values for CFLAGS
? And would that be intentional?
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.
That's a good question I don't really have a good answer to 😬
I meant to externalize what's currently being used in these build files (and others I've created in the context of wolfi-dev/os#5051):
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.
I think we should capture that output into $PERL_CFLAGS and then append it to $CFLAGS.
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.
I'll update it!
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.
Changed it to append. Is space OK between contents?
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.
Awesomesauce!!!
Just curious about the install vs. construct Makefile and it's probably just my misunderstanding 🤣
Signed-off-by: Mauren Berti <mauren.berti@chainguard.dev>
Add two new Perl pipelines for repetitive tasks: Makefile generation based on a Perl module and cleanup after installation.