Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336779 - x11-libs/cairo-1.10.0-r3 invalid sh code in configure.ac
Summary: x11-libs/cairo-1.10.0-r3 invalid sh code in configure.ac
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-11 03:50 UTC by ferret
Modified: 2010-10-09 15:03 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ferret 2010-09-11 03:50:33 UTC
configure.ac line 102:
  if test "x$use_xcb" == "xyes" -a "x$use_xlib" == "xyes"; then
and line 113:
  if test "x$use_xcb" == "xyes"; then

== is not an operator in posix sh compatible test; it should be =

This causes the following build failure message when sh is e.g. dash:

checking for cairo's XCB/SHM functions feature... 
test: 21894: xyes: unexpected operator
checking whether cairo's XCB/SHM functions feature could be enabled... no (requires both --enable-xcb)
configure: error:  XCB/SHM functions feature could not be enabled
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2010-09-11 20:08:52 UTC
Confirmed.
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2010-09-11 20:14:55 UTC
$ grep -n 'if test .*==.*' configure.ac
102:  if test "x$use_xcb" == "xyes" -a "x$use_xlib" == "xyes"; then
113:  if test "x$use_xcb" == "xyes"; then
235:  if test "x$use_drm" == "xyes"; then
265:  if test "x$use_xcb" == "xyes" -a "x$use_drm" == "xyes"; then
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-10-09 15:03:20 UTC
This is fixed in upstream repository, and will be fixed in 1.10.1 release.