info > Dpkg::BuildOptions

📖 NAME

Dpkg::BuildOptions - parse and update build options

🚀 Quick Reference

Use CaseCommandDescription
Create build options objectDpkg::BuildOptions->new(%opts)Initialize from environment variable (default DEB_BUILD_OPTIONS)
Reset options$bo->reset()Clear all stored options
Merge options from string$bo->merge($content, $source)Parse space-separated option list, e.g. "nocheck parallel=2"
Set a single option$bo->set($option, $value, [$source])Store option with value; validates known options
Get option value$bo->get($option)Return value or undef
Check if option exists$bo->has($option)Return boolean
Parse features (enable/disable)$bo->parse_features($option, $use_feature)Handle +feature/-feature, 'all' supported
Output as string$bo->output($fh)String suitable for environment variable assignment
Export to environment$bo->export([$var])Set environment variable; defaults to creation variable

🔍 DESCRIPTION

This class can be used to manipulate options stored in environment variables like DEB_BUILD_OPTIONS and DEB_BUILD_MAINT_OPTIONS.

⚙️ METHODS

📜 CHANGES

📅 Version 1.02 (dpkg 1.18.19)

📅 Version 1.01 (dpkg 1.16.1)

📅 Version 1.00 (dpkg 1.15.6)

1.21.1 2025-09-09 Dpkg::BuildOptions(3perl)

Dpkg::BuildOptions
📖 NAME 🚀 Quick Reference 🔍 DESCRIPTION ⚙️ METHODS 📜 CHANGES
📅 Version 1.02 (dpkg 1.18.19) 📅 Version 1.01 (dpkg 1.16.1) 📅 Version 1.00 (dpkg 1.15.6)

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-25 17:47 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!