← Back to issue list

autotools plugin should support explicit autogen or autoreconf

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1695081
Type
issue
State
closed
Author
~sabdfl
Labels
—
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

2014 feature request for the autotools plugin to run autogen/autoreconf. Now implemented: craft-parts runs autogen.sh, bootstrap, then `autoreconf --install` when configure is missing (snapcraft#3398, commit 3fabd01b9).

Resolution: close resolved

Reason: The requested capability exists in the current implementation: craft_parts/plugins/autotools_plugin.py get_build_commands() emits "[ ! -f ./configure ] && [ -f ./autogen.sh ] && env NOCONFIGURE=1 ./autogen.sh", a bootstrap fallback, and "[ ! -f ./configure ] && autoreconf --install" — which covers the reporter's 'hackery' `automake --add-missing` — and this is documented in docs/common/craft-parts/reference/plugins/autotools_plugin.rst. It landed via merged PR snapcraft#3398 (commit 3fabd01b9, 'autotools v2 plugin: support autogen.sh and bootstrap') and earlier snapcraft#679 (ccbab09b7, 'add multiple generator script options to autotools'). The near-identical LP bugs #1507648 and #1882425 were both closed as already done. Only the proposed `preparation:` YAML key was never added, but explicit commands remain available via override-build.

Evaluated by: mr-cal-bot

Impact: 18 Quick Win: 15 Complexity: 5 Confidence: 93 Actionability: 85

Issue body

I am snapping a project (dhcprobe) which for various reasons requires an 'autogen' and an 'automake --add-missing'. I think I could do that in a prepare script, but perhaps these would be nice to have the autotools plugin support this? For example: parts: dhcprobe: plugin: autotools source: git://github.com/JohannesBuchner/DHCProbe preparation: - autogen - automake-fix-missing The last part (the fix-missing) seems hackery. Maybe I'm just doing it wrong?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 18
Quick Win: 15
Complexity: 5
Confidence: 93
Actionability: 85
close resolved 2014 feature request for the autotools plugin to run autogen/autoreconf. Now implemented: craft-parts runs autogen.sh, bootstrap, then `autoreconf --install` when configure is missing (snapcraft#3398, commit 3fabd01b9).
stealth/space-bunny-alpha
Impact: 35
Quick Win: 22
Complexity: 20
Confidence: 82
Actionability: 80
close resolved Feature request (2014) for the autotools plugin to run explicit autogen/autoreconf; now satisfied since craft-parts auto-runs autogen.sh/bootstrap/autoreconf --install when configure is missing, and explicit commands remain possible via override-build.
qwen/qwen3.6-35b-a3b
Impact: 20
Quick Win: 8
Complexity: 30
Confidence: 80
Actionability: 60
close resolved Feature request to add explicit autogen/autoreconf command support to the autotools plugin. The plugin now supports autogen.sh and bootstrap scripts, covering most use cases.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 14
Staleness: 95
Complexity: 30
Confidence: 70
Support Request: 25
close stale Feature request (2015) for the autotools plugin to support explicit autogen/autoreconf steps. No comments or labels; core request since implemented in the autotools v2 plugin via autogen.sh and bootstrap support (PR #3398).
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 95
Support Request: 10
close stale Feature request for the autotools plugin to natively support explicit autogen or autoreconf steps. Unlabelled, zero comments, and inactive for over nine years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 85
Support Request: 15
close stale Feature request to add native autogen/autoreconf support to the autotools plugin via explicit configuration. Unlabelled, zero comments, and over 9 years old with no maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 30
close stale Feature request to add explicit autogen/autoreconf support to the autotools plugin. Open for 9 years with no maintainer labels or comments. Likely obsolete given significant project evolution and standard override script workarounds.

Update history

Date Change
closed
created

Related work

  • Likely Fixed By: snapcraft#3398 (confidence 95%)

    Merged PR adding autogen.sh and bootstrap support to the autotools plugin (commit 3fabd01b9); verified present in craft-parts' autotools_plugin.py.

  • Duplicate Of: snapcraft (launchpad)#1507648 (confidence 88%)

    Same request ('Autotools doesn't work without autogen.sh'), closed as addressed by the same autotools v2 autogen.sh/bootstrap work.

  • Related To: snapcraft (launchpad)#1882425 (confidence 88%)

    'autotools plugin should still honour autogen.sh if present', closed as already done via snapcraft#3398.

  • Related To: snapcraft#206 (confidence 72%)

    Earlier PR (commit 85405240f) making autogen.sh executable, plus later crash fix 916965432 when running autogen.sh/bootstrap.

Related issues

Issue Project State Summary Similarity
#1882425 autotools plugin should still honour autogen.sh if present snapcraft (launchpad) closed Autotools v2 gained autogen.sh/bootstrap fallback support in canonical/snapcraft#3398, merged as 3fabd01b9 and released before the issue was closed.
79%
#1507648 Autotools doesn't work without autogen.sh snapcraft (launchpad) closed Added an autoreconf-based Autotools option in commit 9d9a357b7 and released it in Snapcraft 0.4; later #3398 added autogen.sh/bootstrap support to v2.
78%
#3398 autotools v2 plugin: support autogen.sh and bootstrap snapcraft merged Merged into master in commit 3fabd01b9, adding autogen.sh and bootstrap script support to the autotools v2 plugin.
76%
#3694 autotools v1 plugin: fix fatal crash when running autogen.sh or bootstrap snapcraft closed Closed unmerged as superseded by snapcraft#3739, which merged the broader legacy-plugin Path-to-string fix in commit e4725e466.
72%
#533 autotools plugin: support bootstrap parameters craft-parts merged Merged PR #533 in commit 45cbc684, adding autotools-bootstrap-parameters so the plugin can pass flags to ./bootstrap when generating configure.
71%