bugThe FreeType Project - Bugs: bug #25480, freetype-config does not...

 
 

bug #25480: freetype-config does not incorporate configure --includedir option

Submitted by:  Andrew SG Rojek <asgr>
Submitted on:  Tue 03 Feb 2009 01:26:09 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.9

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 04 Feb 2009 08:00:07 AM UTC, comment #3:

I think I've fixed this now in the CVS. Thanks for the report.
Please test.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 03 Feb 2009 06:25:14 PM UTC, comment #2:

Sorry,

system info:
iMactel 10.5.6/xcode 3.0/gcc 4.0.1/make 3.81

The version I had installed was 2.3.5 but I just installed 2.3.8
and have the same problem.

When configuring, I used the --includedir option to change the
name of the include directory and it hasn't incorporated it into the
freetype-config utility. It resorts to using the standard 'include'
directory name in the path used to the freetype.h file location.

I examined the freetype-config.in file and the option --ftversion
has been hard-coded with the 'include' directory;

@prefix@/include/freetype2/freetype/freetype.h

When I use configure with --includedir option, the above code
no longer points to the correct location as the name of the 'include'
directory has changed. As it is, this renders the --includedir option
ineffective.

For a quick solution, prefix can be substituted with includedir;

@includedir@/freetype2/freetype/freetype.h

However, additional code maybe needed where the --includedir
option is not set and the use of prefix/include would be appropriate.

With reference to my original post, additional, I assumed that

includedir=$prefix/include

would have been assigned, as the $local_prefix variable had been
assigned the value 'yes' in 'case --exec-prefix'. Which would have also
made me question the --libdir option in a similar context. Unfortunately
my shell scripting skills are limited.

A.

Andrew SG Rojek <asgr>
Tue 03 Feb 2009 04:11:03 PM UTC, comment #1:

You didn't tell us which freetype version you use.

I suspect that your `make' program is too old. If you use
freetype 2.3.8, you get a proper error message.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 03 Feb 2009 01:26:09 PM UTC, original submission:

Dev,

Due to installation specific requirements, I used the --includedir option when configuring the freetype package.

I used the freetype-config command to determine the version I installed and several errors were generated relating to the location of the file freetype.h that contains the version numbers.

freetype-config does not use the directory I requested through configure and uses the standard name of the 'include' directory.

In addition to the --ftversion argument for freetype-config, the following may also be relevant.

if test "$exec_prefix_set" = "yes" ; then
libdir=$exec_prefix/lib
else
if test "$local_prefix" = "yes" ; then
includedir=$prefix/include
libdir=$prefix/lib
fi
fi

A.

Andrew SG Rojek <asgr>

 

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

Attach File(s):
   
   
Comment:
   

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 wl (Posted a comment)
  • -unavailable- added by asgr (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):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Feb 2009 08:00:07 AM UTCwlOpen/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.9
    Wed 04 Feb 2009 08:00:06 AM UTCwlStatusNeed Info=>Fixed
    Tue 03 Feb 2009 04:11:03 PM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl
      Summaryfreetype-config does not incorpoarate configure --includedir option=>freetype-config does not incorporate configure --includedir option

    Back to the top


    Powered by Savane 3.1-cleanup1