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: add new Perl pipelines for Makefile generation and cleanup #657

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

stormqueen1990
Copy link
Contributor

@stormqueen1990 stormqueen1990 commented Sep 5, 2023

Add two new Perl pipelines for repetitive tasks: Makefile generation based on a Perl module and cleanup after installation.

* Add two new Perl pipelines for repetitive tasks: install and cleanup.

Signed-off-by: Mauren Berti <mauren.berti@chainguard.dev>
@stormqueen1990 stormqueen1990 requested a review from a team as a code owner September 5, 2023 13:57
@stormqueen1990 stormqueen1990 requested review from ajayk and removed request for a team September 5, 2023 13:57

pipeline:
- runs: |
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
Copy link
Member

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?

Copy link
Contributor Author

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):

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update it!

Copy link
Contributor Author

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?

Copy link
Member

@vaikas vaikas left a 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>
@stormqueen1990 stormqueen1990 changed the title feat: add new Perl pipelines for install and clean feat: add new Perl pipelines for Makefile generation and cleanup Sep 6, 2023
@kaniini kaniini merged commit f58161d into chainguard-dev:main Sep 6, 2023
@stormqueen1990 stormqueen1990 deleted the feat/add-perl-pipelines branch September 6, 2023 18:33
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