bugTeX Live - Bugs: bug #323, use...

 
 
Show feedback again

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

bug #323: use PKG_CHECK_MODULES([FONTCONFIG], [fontconfig])

Submitted by:  Karl Berry <karl>
Submitted on:  Sun Jul 3 17:57:11 2016  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Dec 24 23:32:07 2018, comment #1:

replying to myself here: as far as i can see, we do use pkgconfig to get fontconfig flags and libs used in the build, per m4/kpse-fontconfig-flags.m4. The other stuff is trying to determine if fontconfig is available at all.

I don't think it's a good idea, without a lot more evidence, to use pkg-config in general for all the external libraries in TL. Somewhat related:
https://tug.org/pipermail/tlbuild/2018q4/004308.html

Karl Berry <karl>
Project Administrator
Sun Jul 3 17:57:11 2016, original submission:

suggested by Vincent Torri, mail to karl 2 July 2016. The idea being that we require fontconfig on the system anyway, so may as well use system's idea of how to package it. Vincent writes:

---
In Build/source/m4/kpse-fontconfig.m4, one adds configure options to
get include and library directory of fontconfig. If they are not used,
one calls pkg-config to fill these 2 variables. In case they are not
empty, one checks if some type and function are found or not
(FcObjectSet and FcInit()). And finally, you set FONTCONFIG_INCLUDES
and FONTCONFIG_LIBS.

Imho, nowadays, one should trust packagers and require fontconfig
package (windows or Unix). That one call:

PKG_CHECK_MODULES([FONTCONFIG], [fontconfig])

1) can use FONTCONFIG_CFLAGS and FONTCONFIG_LIBS environment variables
if they are set.
2) in the last case, use the values in fontconfig.pc.
3) fails if fontconfig is not found.

I know that it maybe implies a lot of changes and you don't want to
change a build system that works. But nowadays, this PKG_CHECK_MODULES
use is very common and save a lot of work from a developper
perspective. As an example, the Enlightenment project, which works on
Linux, Mac, all the BSD OS, Solaris and Windows.

Karl Berry <karl>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Dec 24 23:32:07 2018karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray