Rerun autoconf if it didn't expand all macros.
This commit is contained in:
parent
f40a611ae2
commit
0220d5c524
2 changed files with 36 additions and 2 deletions
|
@ -71,7 +71,9 @@ def create_dist(
|
|||
from .buildsystem import detect_buildsystems
|
||||
from .buildlog import InstallFixer
|
||||
from .fix_build import BuildFixer
|
||||
from .fixers import GitIdentityFixer, SecretGpgKeyFixer
|
||||
from .fixers import (
|
||||
GitIdentityFixer, SecretGpgKeyFixer,
|
||||
UnexpandedAutoconfMacroFixer, )
|
||||
|
||||
if subdir is None:
|
||||
subdir = "package"
|
||||
|
@ -86,7 +88,9 @@ def create_dist(
|
|||
# TODO(jelmer): use scan_buildsystems to also look in subdirectories
|
||||
buildsystems = list(detect_buildsystems(export_directory))
|
||||
resolver = auto_resolver(session)
|
||||
fixers: List[BuildFixer] = [InstallFixer(resolver)]
|
||||
fixers: List[BuildFixer] = [UnexpandedAutoconfMacroFixer(session, resolver)]
|
||||
|
||||
fixers.append(InstallFixer(resolver))
|
||||
|
||||
if session.is_temporary:
|
||||
# Only muck about with temporary sessions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue