Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix freetype build on systems where make is not GNU make. #5866

Closed
peterjeremy opened this issue Apr 23, 2009 · 8 comments
Closed

Fix freetype build on systems where make is not GNU make. #5866

peterjeremy opened this issue Apr 23, 2009 · 8 comments

Comments

@peterjeremy
Copy link

Change 'make' to ${MAKE} - is the recommended way to recursively invoke make to ensure that the subordinate make is the same as the parent make (and also ensures that the two make instances will communicate on things like '-jX').

Explicitly export the parent make into the configure script.

These changes avoid problems on systems like FreeBSD where make is not GNU make.

Component: porting: BSD

Author: Peter Jeremy

Reviewer: Mike Hansen

Merged: sage-4.1.rc0

Issue created by migration from https://trac.sagemath.org/ticket/5866

@peterjeremy
Copy link
Author

Attachment: freetype-2.3.5.p0.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 23, 2009

comment:1

I will work on integrating this tomorrow.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.4.2 milestone Apr 23, 2009
@mwhansen
Copy link
Contributor

comment:2

Looks good to me.

The spkg with this change incorporated can be found at http://sage.math.washington.edu/home/mhansen/freetype-2.3.5.p1.spkg

@mwhansen
Copy link
Contributor

Author: Peter Jeremy

@mwhansen
Copy link
Contributor

Reviewer: Mike Hansen

@rlmill
Copy link
Mannequin

rlmill mannequin commented Jul 2, 2009

Merged: sage-4.1.rc0

@rlmill rlmill mannequin closed this as completed Jul 2, 2009
@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Jun 10, 2010

comment:4

I'll create a new ticket for this issue, but I thought it useful to add to this ticket.

I tried to update freetype to the latest version (2.3.12), but the build fails with:

libtool: link: (cd "/export/home/drkirkby/32/sage-4.4.3/spkg/build/freetype-2.3.12/src/objs/.libs" && rm "libfreetype.so.6" && ln -s "libfreetype.so.6.4.0" "libfreetype.so.6")
libfreetype.so.6: No such file or directory
make: *** [/export/home/drkirkby/32/sage-4.4.3/spkg/build/freetype-2.3.12/src/objs/libfreetype.la] Error 2

real    3m16.562s
user    2m54.021s
sys     0m22.112s
sage: An error occurred while installing freetype-2.3.12

Changing spkg-install to

if [ "x`uname`" != xSunOS ] ; then 
   GNUMAKE=${MAKE} ./configure --prefix="$SAGE_LOCAL"
else
  ./configure --prefix="$SAGE_LOCAL"
fi

allows the latest freetype to build on Solaris 10 on SPARC.

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Jun 10, 2010

comment:5

I should have added that 'make' is a version of GNU make on Solaris, as Sun's make will never build Sage. The MAKE environment variable was not set.

Dave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants