diff options
author | yuri <yuri@FreeBSD.org> | 2018-07-22 09:36:38 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-07-22 09:36:38 +0800 |
commit | 61a3e1e17dc93e8b1f457bc5ca54c76a7866ec2c (patch) | |
tree | d61cde1e9acbfb8b1795e221ccb46dafb4afa1fb /science | |
parent | 7366043a656ee5d261e1536bcb628f25f974598a (diff) | |
download | freebsd-ports-gnome-61a3e1e17dc93e8b1f457bc5ca54c76a7866ec2c.tar.gz freebsd-ports-gnome-61a3e1e17dc93e8b1f457bc5ca54c76a7866ec2c.tar.zst freebsd-ports-gnome-61a3e1e17dc93e8b1f457bc5ca54c76a7866ec2c.zip |
science/mpqc: Unbreak on CURRENT
For some reason, STL's endl fail and need to be std::endl only on CURRENT.
Diffstat (limited to 'science')
-rw-r--r-- | science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.cc | 20 | ||||
-rw-r--r-- | science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.ll | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.cc b/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.cc new file mode 100644 index 000000000000..58951354f321 --- /dev/null +++ b/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.cc @@ -0,0 +1,20 @@ +--- src/lib/util/keyval/ipv2_scan.cc.orig 2018-07-22 01:07:05 UTC ++++ src/lib/util/keyval/ipv2_scan.cc +@@ -673,7 +673,7 @@ YY_RULE_SETUP + } + yylval.str = (char *)malloc(strlenyytext+1); + if (!yylval.str) { +- ExEnv::errn() << "IPV2: {string} rule: malloc failed" << endl; ++ ExEnv::errn() << "IPV2: {string} rule: malloc failed" << std::endl; + abort(); + } + strcpy(yylval.str,yytext); +@@ -684,7 +684,7 @@ case 3: + YY_RULE_SETUP + { yylval.str = (char *)malloc(strlen(yytext)); + if (!yylval.str) { +- ExEnv::errn() << "IPV2: {qstring} rule: malloc failed" << endl; ++ ExEnv::errn() << "IPV2: {qstring} rule: malloc failed" << std::endl; + abort(); + } + strcpy(yylval.str,&yytext[1]); diff --git a/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.ll b/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.ll new file mode 100644 index 000000000000..8516730dccfa --- /dev/null +++ b/science/mpqc/files/patch-src_lib_util_keyval_ipv2__scan.ll @@ -0,0 +1,20 @@ +--- src/lib/util/keyval/ipv2_scan.ll.orig 2018-07-22 01:07:58 UTC ++++ src/lib/util/keyval/ipv2_scan.ll +@@ -59,7 +59,7 @@ qstring \"[^"\n]+\" + } + yylval.str = (char *)malloc(strlenyytext+1); + if (!yylval.str) { +- ExEnv::errn() << "IPV2: {string} rule: malloc failed" << endl; ++ ExEnv::errn() << "IPV2: {string} rule: malloc failed" << std::endl; + abort(); + } + strcpy(yylval.str,yytext); +@@ -67,7 +67,7 @@ qstring \"[^"\n]+\" + } + {qstring} { yylval.str = (char *)malloc(strlen(yytext)); + if (!yylval.str) { +- ExEnv::errn() << "IPV2: {qstring} rule: malloc failed" << endl; ++ ExEnv::errn() << "IPV2: {qstring} rule: malloc failed" << std::endl; + abort(); + } + strcpy(yylval.str,&yytext[1]); |