Skip to content

Commit

Permalink
Refinements suggested in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
System-Arch authored Feb 5, 2023
1 parent 24a3cc5 commit da1f782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/autoconf/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def package_id(self):
self.info.clear()

def requirements(self):
self.requires("m4/1.4.19", run=True) # m4 is called by autom4te making it a run-time requirement
self.requires("m4/1.4.19")

def build_requirements(self):
if self._settings_build.os == "Windows":
Expand Down Expand Up @@ -79,7 +79,7 @@ def _patch_sources(self):
apply_conandata_patches(self)
replace_in_file(self, os.path.join(self.source_folder, "Makefile.in"),
"M4 = /usr/bin/env m4", "#M4 = /usr/bin/env m4")
if self.settings.os == "Windows":
if self._settings_build.os == "Windows":
# Handle vagaries of Windows line endings
replace_in_file(self, os.path.join(self.source_folder, "bin", "autom4te.in"),
"$result =~ s/^\\n//mg;", "$result =~ s/^\\R//mg;")
Expand Down

0 comments on commit da1f782

Please sign in to comment.