aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eapi.hh
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2015-11-11 21:12:50 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2015-11-11 21:12:50 +0000
commitac5169c87ee1694e7de9b8c06c321716d8564a28 (patch)
treebb425b613ab7dfddbd8b0ab524e282cc45c01ad5 /paludis/repositories/e/eapi.hh
parent27173447c84657a9aafe57b1b9bfb5c7087b0f39 (diff)
downloadpaludis-ac5169c87ee1694e7de9b8c06c321716d8564a28.tar.gz
paludis-ac5169c87ee1694e7de9b8c06c321716d8564a28.tar.xz
Change bash compatibility level handling
Apparently bash is going to deprecate the compat* shopts in favour of the BASH_COMPAT variable, so use that instead. BASH_COMPAT is only supported in 4.3 and later, but it doesn't hurt to set it anyway - in fact, this is better than the shopt version because 4.2 doesn't support shopt compat42. I don't think it's worth messing around with falling back to shopt for older versions - only EAPIs before 6 would be affected, and those have survived this long without setting anything anyway.
Diffstat (limited to 'paludis/repositories/e/eapi.hh')
-rw-r--r--paludis/repositories/e/eapi.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/eapi.hh b/paludis/repositories/e/eapi.hh
index c21902fa3..99545120b 100644
--- a/paludis/repositories/e/eapi.hh
+++ b/paludis/repositories/e/eapi.hh
@@ -40,6 +40,7 @@ namespace paludis
{
typedef Name<struct name_allow_tokens_in_mask_files> allow_tokens_in_mask_files;
typedef Name<struct name_annotations> annotations;
+ typedef Name<struct name_bash_compat> bash_compat;
typedef Name<struct name_best_has_version_host_root> best_has_version_host_root;
typedef Name<struct name_binary_from_env_variables> binary_from_env_variables;
typedef Name<struct name_blocker_resolution> blocker_resolution;
@@ -419,6 +420,7 @@ namespace paludis
struct EAPIEbuildOptions
{
+ NamedValue<n::bash_compat, std::string> bash_compat;
NamedValue<n::binary_from_env_variables, std::string> binary_from_env_variables;
NamedValue<n::bracket_merged_variables, std::string> bracket_merged_variables;
NamedValue<n::bracket_merged_variables_annotatable, std::string> bracket_merged_variables_annotatable;