An Intel engineer who contributes to the Linux kernel has released a set of patches that conceal some of the f-bombs that Linux kernel developers have added to kernel code comments over the years.
The patches are intended to "comply" with Linux developers' recently adopted Code of Conduct, which requires developers, maintainers, and especially Linus Torvalds to treat all contributors with respect and dignity when working together.
As spotted by Phoronix, the patch set issued by Intel software engineer Jarkko Sakkinen addresses 15 components where 'fuck' or 'fucking' appeared in code comments, which have now been swapped out for a 'hugload of hugs'.
For example, "* IOC3 is fucking fucked beyond belief ..." is now "* IOC3 is hugging hugged beyond belief ...".
Another now reads: "Only Sun can take such nice parts and hug up the programming interface* like this. Good job guys...".
Elsewhere, comments have been amended to "Hug, we are miserable poor guys...".
While there's plenty more profanity in Torvalds' old emails to fellow kernel maintainers, at least the instances where they appeared in code comments have now been cleaned up.
SEE: How to build a successful developer career (free PDF)
Since his recent hiatus, Torvalds has also toned down his language and refrained from demeaning peers when poor choices or mistakes are made. The hope is that the code of conduct creates a more professional environment for maintainers to work in.
Just 33 lines of code comments were addressed, a try fraction of the 3.3 million lines of comment in code within the kernel source tree. However, there may be more patches in future.
Sakkinen said it is definitely not a joke, quoting from the Code of Conduct: "Harassment includes the use of abusive, offensive or degrading language, intimidation, stalking, harassing photography or recording, inappropriate physical contact, sexual imagery and unwelcome sexual advances or requests for sexual favors."
The Linux code of conduct is based on the Contributor Covenant, which Intel's Source Technology Center recently adopted as the basis for its code of conduct.
Previous and related coverage
Intel joins the code of conduct that's challenging open source's faith in meritocracy.
While in Edinburgh, I caught up with Linus Torvalds. He confided his thoughts about returning to Linux, the Code of Conduct, and some software, BPF, which is fundamentally changing how the Linux kernel and user space work together.
With the release of the Linux kernel 4.19 came not just new features and bug fixes, but the new Linux Code of Conduct as well.
In the aftermath of Linus Torvalds apologizing for how he's been running the Linux kernel community, Linux has adopted a new code of conduct. But some now claim this means Linux is being taken over by social justice warriors.
After a few weeks off to reconsider his role in the Linux community, Linus Torvalds is back in the saddle.
In an e-mail to the BBC, Torvalds comes over as a voice of reason in the heated Linux Code of Conduct fights.
No, protesting programmers are not removing code from Linux; there are no purges of politically incorrect Linux kernel developers. And Linus Torvalds is coming back.
Linux's creator is stepping back from his Linux kernel work -- to work instead on his behavior toward other developers.
Microsoft has twice as many employees actively contributing to open source compared to Google, yet it gets half the credit. As it turns out, old views of the Redmond giant die hard.
It's the largest acquisition ever for IBM, and it's all about the cloud.