macOS
brew install coccinellelocal Homebrew formula metadata
sudo port install coccinelleMacPorts ports tree · devel/coccinelle/Portfile · ソース: api.github.com
brew
coccinelle のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install coccinellelocal Homebrew formula metadata
sudo port install coccinelleMacPorts ports tree · devel/coccinelle/Portfile · ソース: api.github.com
sudo apk add coccinelleAlpine Linux edge package indexes · coccinelle · ソース: dl-cdn.alpinelinux.org
sudo apt install coccinelleDebian stable package indexes · coccinelle · ソース: deb.debian.org
sudo dnf install coccinelleFedora Rawhide package metadata · coccinelle · ソース: dl.fedoraproject.org
nix profile install nixpkgs#coccinellenixpkgs package indexes · coccinelle · ソース: raw.githubusercontent.com
sudo zypper install coccinelleopenSUSE Tumbleweed package metadata · coccinelle · ソース: download.opensuse.org
概要
Program matching and transformation engine for C code
履歴
Coccinelle is a program matching and transformation engine for C code, centered on SmPL, the Semantic Patch Language. In package-manager culture it is best known as the `spatch` tool used for large C tree transformations, especially in Linux kernel development.
The official INRIA site describes Coccinelle as a tool originally targeted at collateral evolutions in Linux: source-code updates required when library APIs change. It broadened from that origin into finding and fixing bugs in systems code.
The project has long had a research and systems-programming identity. The official site links papers, workshops, Linux impact pages, and SmPL grammar documentation, while the current GitLab project is hosted under INRIA.
Coccinelle's strongest adoption signal is Linux itself. The upstream Linux documentation has a dedicated Coccinelle page, describes the `make coccicheck` target, and says the semantic patches in the kernel require Coccinelle 1.0.0-rc11 or newer.
The Linux documentation also lists distribution availability through Debian, Fedora, Ubuntu, OpenSUSE, Arch Linux, Gentoo, NetBSD, and FreeBSD, while the input adds Homebrew, MacPorts, Nix, apk, dnf, and zypper.
The main executable is `spatch`. Users write semantic patches in SmPL and run them over a file, directory, or source tree to report matches or propose transformations.
In the Linux kernel workflow, `make coccicheck MODE=report` reports matches and `MODE=patch` proposes fixes. The kernel script wires Coccinelle into the build tree through `scripts/coccicheck` and `scripts/coccinelle`.
Coccinelle supports `.cocciconfig` files in the user's home directory, the current directory, and the directory passed with `--dir`, letting users set preferred `spatch` options.
Coccinelle is one of the more historically interesting developer-tool packages because it turns program transformation research into a packaged Unix CLI used by real infrastructure projects.
For package maintainers, it is a cross-distribution systems-code tool with an OCaml heritage, a Linux-kernel integration point, and a command (`spatch`) whose usefulness depends on both the executable and a corpus of semantic patches.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.cocciconfig./.cocciconfig<dir passed with --dir>/.cocciconfig実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
spatch | cli | グローバル実行可能ファイル | |
spgen | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://coccinelle.gitlabpages.inria.fr/website/
インストールメタデータ
| パッケージキー | brew:coccinelle |
|---|---|
| バージョン | 1.3.1 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/coccinelle |
| ホームページ | https://coccinelle.gitlabpages.inria.fr/website/ |
| リポジトリ | https://gitlab.inria.fr/coccinelle/coccinelle |
| 上流ドキュメント | https://coccinelle.gitlabpages.inria.fr/website |
| ライセンス | GPL-2.0-only |
| ソースアーカイブ | https://coccinelle.gitlabpages.inria.fr/website/distrib/coccinelle-1.3.1.tar.gz |
| ビルド依存関係 | autoconf, automake, menhir, ocaml, ocaml-findlib |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | coccinelle |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
coccinelle 1.3.0.deb-1+b2
semantic patching tool for C
sudo apt install coccinellecoccinelle
nix profile install nixpkgs#coccinellecoccinelle 1.1.1.deb-5build1
semantic patching tool for C
sudo apt install coccinellecoccinelle-doc 1.1.1.deb-5build1
documentation for coccinelle
sudo apt install coccinelle-doccoccinelle 1.1.1-r2
provides the spatch matching and transformation engine implementing semantic patch language
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinellecoccinelle-bash-completion 1.1.1-r2
Bash completions for coccinelle
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinelle-bash-completioncoccinelle-doc 1.1.1-r2
provides the spatch matching and transformation engine implementing semantic patch language (documentation)
https://coccinelle.gitlabpages.inria.fr/website/
sudo apk add coccinelle-doccoccinelle 1.3.1-7.fc45
Semantic patching for Linux (spatch)
sudo dnf install coccinellecoccinelle-bash-completion 1.3.1-7.fc45
Bash tab-completion for coccinelle
sudo dnf install coccinelle-bash-completioncoccinelle-doc 1.3.1-7.fc45
Documentation for coccinelle
sudo dnf install coccinelle-doccoccinelle-examples 1.3.1-7.fc45
Examples for coccinelle
sudo dnf install coccinelle-examplescoccinelle 1.3.1-2.3
Semantic patch utility
sudo zypper install coccinellecoccinelle
sudo port install coccinelleソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.