← Back to issue list

[Feature] Add support for dpkg-buildflags for C/C++/Rust

View original Github issue

Metadata

Project
debcraft
Number
#149
Type
issue
State
open
Author
hector-cao
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

Feature request to automatically pass dpkg-buildflags (CFLAGS, CXXFLAGS, RUSTFLAGS, etc.) to the build environment. Triaged with Jira ticket DEBCRAFT-70. Code in lifecycle.py already implements this via _gen_dpkg_buildflags() added in PR #170.

Suggested action: keep open

Reason: The issue is triaged (labeled Status: Triaged, Jira DEBCRAFT-70 created) and the core feature appears implemented in commit a0afaae (PR #170) which adds _gen_dpkg_buildflags() to lifecycle.py, passing all dpkg-buildflags output as build_environment. However, the issue remains open with no maintainer confirmation that PR #170 fully addresses the Rust-specific aspect, so it should stay open pending verification or explicit closure.

Impact: 55 Quick Win: 30.25 Staleness: 55 Complexity: 45 Confidence: 75 Support Request: 15

Issue body

Debian package building allows to set global build policies for a package building via **dpkg-buildflags**. This has been true for a long time for C/C++ applications and recently the support for Rust has been added. As of now, developers can inject these options manually by playing with the build plugin options and parameters. Example for meson: ``` meson-parameters: - -Dc_args="$(dpkg-buildflags --get CFLAGS)" ``` But I think debcraft should handle this automatically as this is an integral part of the Debian package building process.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 55
Quick Win: 30.25
Staleness: 55
Complexity: 45
Confidence: 75
Support Request: 15
keep open Feature request to automatically pass dpkg-buildflags (CFLAGS, CXXFLAGS, RUSTFLAGS, etc.) to the build environment. Triaged with Jira ticket DEBCRAFT-70. Code in lifecycle.py already implements this via _gen_dpkg_buildflags() added in PR #170.
qwen/qwen3.6-35b-a3b
Staleness: 45
Complexity: 45
Confidence: 75
Support Request: 10
keep open Feature request to automatically apply dpkg-buildflags for C/C++/Rust builds in debcraft. Triaged and internally tracked, but inactive for 60 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 50
Confidence: 85
Support Request: 10
keep open Feature request to automatically integrate dpkg-buildflags for C/C++/Rust builds in debcraft, replacing manual parameter injection. Currently triaged and awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 35
Complexity: 55
Confidence: 80
Support Request: 10
keep open Feature request to automatically apply dpkg-buildflags for C, C++, and Rust builds in debcraft instead of manual injection. Triaged with internal Jira ticket DEBCRAFT-70. Awaiting assignment and implementation.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: debcraft#170 (confidence 80%)

    Commit a0afaae 'feat: pass build environment to the parts lifecycle (#170)' adds _gen_dpkg_buildflags() which runs dpkg-buildflags --export=sh and passes all flags (CFLAGS, CXXFLAGS, LDFLAGS, and any RUSTFLAGS) as build_environment to the parts lifecycle, directly implementing the requested automatic handling.

Related issues

No related issues found above the similarity threshold.