OpenParable
Skip to content
← Back to skills

Rsyslog Build

Development
rsyslog_build

Rsyslog Build is an Agent Skill for development published in the rsyslog/rsyslog repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Handles environment setup and high-performance incremental building for rsyslog.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rsyslog/rsyslog/blob/HEAD/.agent/skills/rsyslog_build/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rsyslog-build, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

rsyslog_build

This skill standardizes the environment setup and build process for the rsyslog project. It ensures that agents use the most efficient build commands and handle bootstrap logic correctly.

Quick Start

  1. Setup Environment: Run .agent/skills/rsyslog_build/scripts/setup.sh to install dependencies.
  2. Efficient Build: Use make -j$(nproc) check TESTS="" for incremental builds.
  3. Bootstrap: Use ./autogen.sh --enable-debug [options] if Makefile is missing or build configuration changes.

Detailed Instructions

1. Environment Setup

The project requires a set of development libraries (C toolchain, libcurl, libfastjson, etc.).

  • Use the provided script: bash .agent/skills/rsyslog_build/scripts/setup.sh
  • This script wraps devtools/codex-setup.sh and ensures all CI-standard tools are present.

2. Bootstrapping (autogen.sh)

You MUST run ./autogen.sh in the following cases:

  • After a fresh checkout (no Makefile exists).
  • If you modify configure.ac, any Makefile.am, or files under m4/.
  • If you need to enable/disable specific modules (e.g., --enable-imkafka).

Example:

./autogen.sh --enable-debug --enable-testbench --enable-imdiag --enable-omstdout

3. High-Performance Build

Always prefer the incremental build-only command. It builds the core and all test dependencies without the overhead of running the full test suite.

Command:

make -j$(nproc) check TESTS=""

4. Runtime & Library Considerations

When modifying runtime/ or exported symbols:

  • Ensure the library version script (if touched) is consistent.
  • Incremental builds handle -M../runtime/.libs correctly for dynamic loading.

Related Skills

  • rsyslog_test: For running validations after a successful build.
  • rsyslog_module: For module-specific build flags.