bugThe FreeType Project - Bugs: bug #59458, 2.10.4: meson build fails without...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59458: 2.10.4: meson build fails without PNG support

Submitter:  Torsten Hilbrich <myrkr_el>
Submitted:  Fri 13 Nov 2020 06:49:59 AM UTC
   
 
Severity:  3 - Normal Item Group:  Incorrect behaviour
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.11

Wed 06 Jan 2021 07:56:57 AM UTC, comment #3: 

Applied to git, thanks!

Werner LEMBERG <wl>
Group administrator
Mon 30 Nov 2020 09:18:27 AM UTC, comment #2: 

Sorry about the incomplete sentence, I was unable the modify the comment later on.

I have looked at the merge request and formulated a patch which fixed the problem for me. I will append it as meson-fixes.patch

The patch basically add a checks if the dependency is found before modifying the ftoption_command and ft2_deps.

The patch applies to version 2.10.4. I called meson with the following parameters:

--buildtype=release \
--prefix=/usr \
-D zlib=system \
-D bzip2=disabled \
-D png=disabled \
-D harfbuzz=disabled \
-D brotli=disabled \




(file #50367)

Torsten Hilbrich <myrkr_el>
Fri 20 Nov 2020 07:11:58 AM UTC, comment #1: 

... your report got cut off mid-sentence.  Please complete it :-)

You might have a look at

  https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/1

which sits in the pipeline, and which will be handled as soon as FreeType's git migration to freedesktop.org is done.

Werner LEMBERG <wl>
Group administrator
Fri 13 Nov 2020 06:49:59 AM UTC, original submission:  

When trying to build version 2.10.4 without PNG support by specifying:

$ meson --buildtype=release --prefix=/usr -D zlib=system -D bzip2=
disabled -D png=disabled -D harfbuzz=disabled -D brotli=disabled

The build fails with:

In file included from ../src/sfnt/sfnt.c:21:
../src/sfnt/pngshim.c:31:10: fatal error: png.h: No such file or directory
 #include <png.h>
          ^~~~~~~
compilation terminated.

The meson version was 0.55.3.

Using similar options with the autoconf-based build system were successful: ./autogen.sh && ./configure --prefix=/usr --with-bzip2=no --with-png=no --with-harfbuzz=no

It seems that the

Torsten Hilbrich <myrkr_el>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #50367:  meson-fixes.patch added by myrkr_el (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by myrkr_el (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-06 wl Item GroupNone Incorrect behaviour
        StatusNeed Info Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.11
    2020-11-30 myrkr_el Attached File- Added meson-fixes.patch, #50367
    2020-11-20 wl StatusNone Need Info
        Assigned toNone wl

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code