Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 tradcpp

查看 tradcpp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tradcpp

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install tradcpp

MacPorts ports tree · devel/tradcpp/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#tradcpp

nixpkgs package indexes · pkgs/by-name/tr/tradcpp/package.nix · 来源: api.github.com

概览

软件包摘要

K&R-style C preprocessor

命令和别名

  • tradcpp

历史

项目历史与用法

tradcpp is a small traditional, K&R-style C preprocessor maintained from David Holland's NetBSD pages. Its history is tied less to compiling C and more to preserving old build techniques that used cpp as a general text preprocessor.

项目历史

The official tradcpp page says the tool was written for historical uses of the C preprocessor on non-C input, because modern compiler-bundled preprocessors increasingly do not provide a traditional mode or preserve the behavior old build systems expect. The project deliberately keeps a narrow scope and does not try to become a full modern C89/C99/C11 preprocessor.

A distinctive implementation goal is whitespace preservation. The author calls out makefiles, old Emacs build logic, and imake as examples where rearranging whitespace can break legacy systems. tradcpp also includes a trace mode for diagnosing complex preprocessor use; the page says it was written to investigate an imake problem on Solaris.

采用历史

The most explicit adoption history is in pkgsrc: the official page says pkgsrc, the NetBSD package system, has used tradcpp for these purposes since 2013. That makes tradcpp a package-system support tool rather than a broad end-user application.

使用方式

In package-manager culture, tradcpp is used when a build recipe needs a traditional cpp that preserves old preprocessing behavior for files such as makefiles. Users are explicitly steered away from using it for normal modern C code.

为什么软件包爱好者会关心

tradcpp matters to package nerds because it is infrastructure for keeping old source packages buildable. It represents the unglamorous compatibility layer a portability framework like pkgsrc sometimes needs when upstream build systems rely on historical Unix behavior.

时间线

  • 2013: pkgsrc begins using tradcpp for legacy preprocessing use cases.
  • Current official release: tradcpp 0.5.3 is listed on the NetBSD-hosted project page.

Related projects

  • pkgsrc uses tradcpp for package builds with legacy preprocessing needs.
  • imake and old Emacs build systems are named by the author as examples of the historical cpp usage tradcpp was designed to support.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 12 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tradcppcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.5.3
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.netbsd.org/~dholland/tradcpp/

安装元数据

软件包元数据

软件包键brew:tradcpp
版本0.5.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/tradcpp
主页https://www.netbsd.org/~dholland/tradcpp/
仓库https://www.netbsd.org/~dholland/hg/tradcpp
上游文档https://www.netbsd.org/~dholland/tradcpp
许可证BSD-2-Clause
源码归档https://cdn.netbsd.org/pub/NetBSD/misc/dholland/tradcpp-0.5.3.tar.gz
构建依赖bmake
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametradcpp
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

tradcpp

nix profile install nixpkgs#tradcpp
  • normalized package name match
  • 匹配方式:Tradcpp
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tr/tradcpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

tradcpp

sudo port install tradcpp
  • normalized package name match
  • 匹配方式:Tradcpp
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/tradcpp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment