Bug 42588

Summary: pixman configure use non POSIX test
Product: pixman Reporter: naota <naota>
Component: pixmanAssignee: Søren Sandmann Pedersen <soren.sandmann>
Status: RESOLVED FIXED QA Contact: Søren Sandmann Pedersen <soren.sandmann>
Severity: normal    
Priority: medium    
Version: other   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description naota@gentoo.org 2011-11-04 05:11:00 UTC
pixman configure.ac file has the following line which is a non POSIX test construction.

   test "$test_CFLAGS" == "" &&         \

Please fix the line to work on POSIX shells like

   test "z$test_CFLAGS" = "z" &&         \

or such.
Comment 1 Søren Sandmann Pedersen 2011-11-08 09:38:57 UTC
Thanks for the bug report. If you happen to have a patch for this, please consider sending it to pixman@lists.freedesktop.org.

I don't really want to blindly make changes here that I can't test myself.
Comment 2 Andrea Canciani 2011-11-24 05:37:47 UTC
Pushed:

commit 84450c411cc93309bb1d1b1f555640b3ad105500
Author: Naohiro Aota <naota@gentoo.org>
Date:   Thu Nov 24 13:12:15 2011 +0100

    Don't use non-POSIX test
    
    test "$test_CFLAGS" == "" &&         \
    
    may cause an error on some POSIX shells and uses a style which is not
    consistent with the other tests in configure.ac
    
    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42588 and
    https://bugs.gentoo.org/show_bug.cgi?id=387087

Thank you!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.