Bug 36228 - Problem when compiling without pango support
Summary: Problem when compiling without pango support
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: 3.12.0
Hardware: All Linux
: Lowest trivial
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-11-24 19:05 UTC by Sergio Prado
Modified: 2015-12-23 03:46 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sergio Prado 2015-11-24 19:05:28 UTC
There is a bug in the configure script that enables pango support when passing --without-pango to the configure script.


Sergio Prado
Comment 1 Rodrigo Kumpera 2015-11-27 17:33:16 UTC
Hi Sergio,

Thanks for the report, but you could go in more detail of what is the bug that you're experiencing?
Comment 2 Sergio Prado 2015-11-27 18:50:36 UTC
Hi Rodrigo,

When I try to disable pango support in the configure script:

$ ./configure --without-pango

It still tries to configure with pango support:

checking for CAIRO... yes
checking for PANGO... no
configure: error: Package requirements (pango >= 1.10) were not met:

No package 'pango' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PANGO_CFLAGS
and PANGO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

There is a bug in the line 29 of configure.ac script that will try to enable pango even when passing --disable-pango.

AC_ARG_WITH(pango, [  --with-pango],[text_v=pango],[text_v=cairo])
Comment 3 Sergio Prado 2015-11-27 18:53:33 UTC
Ops. In the last paragraph, when I said --disable-pango, please read --without-pango.
Comment 4 Rodrigo Kumpera 2015-11-28 15:51:03 UTC
libgdiplus by default doesn't use pango, it uses font rendering from cairo.

If you pass --with-pango (even --with-pango=no) it will probe the system for pango.
Comment 5 Sergio Prado 2015-11-29 10:30:01 UTC
I understand the behavior, but it is not intuitive.

Probing for pango even when passing --without-pango makes no sense, and would confuse the user.
Comment 6 Rodrigo Kumpera 2015-11-29 18:45:34 UTC
Good point, not way to know it without reading configure.ac.

I guess the code would be similar to what's done for libtiff.

It would be if you could try the change and make a PR out of it.
Comment 7 Sergio Prado 2015-11-30 10:20:41 UTC
Thanks Rodrigo.

I'll send a patch to fix it.
Comment 8 Miguel de Icaza [MSFT] 2015-12-23 03:46:59 UTC
Resolving as fixed, the rest can be discussed in a PR.