-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automake: add include directories from environment variable #2038
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
sources: | ||
"1.16.1": | ||
url: "https://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.gz" | ||
sha256: "608a97523f97db32f1f5d5615c98ca69326ced2054c9f82e65bade7fc4c9dea8" | ||
"1.16.2": | ||
url: "https://ftp.gnu.org/gnu/automake/automake-1.16.2.tar.gz" | ||
sha256: "b2f361094b410b4acbf4efba7337bdb786335ca09eb2518635a09fb7319ca5c1" | ||
patches: | ||
"1.16.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-help2man-no-discard-stderr.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0002-no-perl-path-in-shebang.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0003-remove-embedded-datadirs.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0004-introduce-automake_perllibdir.patch" | ||
url: "https://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.gz" | ||
sha256: "608a97523f97db32f1f5d5615c98ca69326ced2054c9f82e65bade7fc4c9dea8" | ||
patches: | ||
"1.16.2": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-help2man-no-discard-stderr-0.16.2.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0002-no-perl-path-in-shebang-0.16.2.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0003-remove-embedded-datadirs-0.16.2.patch" | ||
patch_file: "patches/0003-remove-embedded-datadirs-introduce-automake-conan-includes-0.16.2.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0004-introduce-automake_perllibdir-0.16.2.patch" | ||
"1.16.1": | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0001-help2man-no-discard-stderr-0.16.1.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0002-no-perl-path-in-shebang-0.16.1.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0003-remove-embedded-datadirs-introduce-automake-conan-includes-0.16.1.patch" | ||
- base_path: "source_subfolder" | ||
patch_file: "patches/0004-introduce-automake_perllibdir-0.16.1.patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
recipes/automake/all/patches/0005-introduce-automake-conan-includes-0.16.2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- bin/aclocal.in | ||
+++ bin/aclocal.in | ||
@@ -64,6 +64,6 @@ | ||
my @user_includes = (); | ||
my @automake_includes = ('@datadir@/aclocal-' . $APIVERSION); | ||
my @system_includes = ('@datadir@/aclocal'); | ||
+my @conan_includes = uniq(strip(/:/, $ENV{'AUTOMAKE_CONAN_INCLUDES'})) | ||
- | ||
# Whether we should copy M4 file in $user_includes[0]. | ||
my $install = 0; | ||
@@ -445,6 +445,6 @@ sub scan_m4_files () | ||
} | ||
scan_m4_dirs (FT_AUTOMAKE, SCAN_M4_DIRS_ERROR, @automake_includes); | ||
scan_m4_dirs (FT_SYSTEM, SCAN_M4_DIRS_ERROR, @system_includes); | ||
+ scan_m4_dirs (FT_SYSTEM, SCAN_M4_DIRS_ERROR, @conan_includes); | ||
- | ||
# Construct a new function that does the searching. We use a | ||
# function (instead of just evaluating $search in the loop) so that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
dnl This file contains a macro to test adding extra include dirs using conan | ||
|
||
AC_DEFUN([AUTOMAKE_TEST_PACKAGE_PREREQ],[ | ||
m4_define([CONAN_MACRO_VERSION], [1.3]) | ||
m4_if(m4_version_compare(CONAN_MACRO_VERSION, [$1]), | ||
-1, | ||
[m4_fatal([extra.m4 version $1 or higher is required, but ]CONAN_MACRO_VERSION[ found])] | ||
) | ||
])dnl AUTOMAKE_TEST_PACKAGE_PREREQ | ||
|
||
AC_DEFUN([AUTOMAKE_TEST_PACKAGE_HELLO],[ | ||
echo "Hello world from the extra.m4 script!" | ||
echo "My args were: $*" | ||
])dnl |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something the consumers need to add themselves? Why not populating here that environment variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, consumers need to populate this.
pkgconf is an example:
A default autoconf/automake installation provides a few standard macros to generate the
configure
script.pkgconf provides a
m4
file which extends this list of macros with pkg-config related macros (see pkgconf's test_package for an example).Please also check out the zbar pull request. There we found out that the default autoconf/automake misses macros related to iconv to which I don't have a good solution yet.
This would also be a good use case of your context concept. It would be nice to require a dependency, but only in the context of running
autoreconf
.