Skip to content

Conversation

@MariuszSkamra
Copy link

This adds support for SmPL cocci patches.

This adds support for SmPL cocci patches.
Copy link
Contributor

@sjanc sjanc left a comment

Choose a reason for hiding this comment

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

I think this should be optional dependency, if coccinelle newt should just print warning and skip patch

@andrzej-kaczmarek
Copy link
Contributor

I think this should be optional dependency, if coccinelle newt should just print warning and skip patch

This will make package likely unusable so it kind of defeats the purpose of patches.

Another issue is that spatch will leave working tree in dirty state so subsequent updates will fail.

@andrzej-kaczmarek
Copy link
Contributor

Perhaps a more portable option would be to have .cocci in separate directory so they can be used to generate .patch manually in case library is updated. In such case .patch will be applied by newt.

@sjanc
Copy link
Contributor

sjanc commented Oct 28, 2024

another problem is that coccinnelle is not available on windows

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.

3 participants