app-emulation/wine: Update gcc 5.3 test case. #577306. Thanks to Bob Wya
authorNP-Hardass <NP-Hardass@gentoo.org>
Mon, 14 Mar 2016 06:35:39 +0000 (02:35 -0400)
committerNP-Hardass <NP-Hardass@gentoo.org>
Mon, 14 Mar 2016 06:37:08 +0000 (02:37 -0400)
Package-Manager: portage-2.2.26

app-emulation/wine/files/pr69140.c
app-emulation/wine/wine-1.9.5.ebuild
app-emulation/wine/wine-9999.ebuild

index 2c345dd75bc5f928e82c8cdb8e8a3fc237455f47..7c9e001f30187a59b44bf9a93eb4d1e55f86302f 100644 (file)
@@ -22,3 +22,16 @@ MD4Update (MD4_CTX *ctx, const unsigned char *buf)
   MD4Transform( ctx->buf, (unsigned int *)ctx->in);
   MD4Transform( ctx->buf, (unsigned int *)ctx->in);
 }
+
+int
+main(void)
+{
+       MD4_CTX ctx_test = 
+    {
+        { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 },
+        { 0, 0 }
+    };
+       unsigned char   buf[64];
+
+       MD4Update(&ctx_test, (const unsigned char *) &buf);
+}
index e7a9349996ebc20257bc6b4189cf24944c0ef52a..509dbfe69bf8f4110df1a0edadbbcc251ecdd214 100644 (file)
@@ -176,9 +176,8 @@ wine_build_environment_check() {
        # bug #574044
        if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
                einfo "Checking for gcc-5-3 stack realignment compiler bug ..."
-               $(tc-getCC) -O2 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 || die
-               # Run in subshell to prevent "Aborted" message
-               if ! ( "${T}"/69140 || false ) >/dev/null 2>&1; then
+               # Compile in subshell to prevent "Aborted" message
+               if ! ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 || false ) >/dev/null 2>&1; then
                        eerror "Wine cannot be built with this version of gcc-5.3"
                        eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
                        eerror "or use gcc-config to select a different compiler version."
index b29387c9c02d930c0137da8561e171f9d3849f2e..96af59e1aefe65590c00d00b1304ec408be67ee5 100644 (file)
@@ -176,9 +176,8 @@ wine_build_environment_check() {
        # bug #574044
        if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
                einfo "Checking for gcc-5-3 stack realignment compiler bug ..."
-               $(tc-getCC) -O2 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 || die
-               # Run in subshell to prevent "Aborted" message
-               if ! ( "${T}"/69140 || false ) >/dev/null 2>&1; then
+               # Compile in subshell to prevent "Aborted" message
+               if ! ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 || false ) >/dev/null 2>&1; then
                        eerror "Wine cannot be built with this version of gcc-5.3"
                        eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
                        eerror "or use gcc-config to select a different compiler version."