freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Fwd: Bug#87691: Build problem on hurd-i386


From: Anthony Fok
Subject: [Devel] Fwd: Bug#87691: Build problem on hurd-i386
Date: Mon, 26 Feb 2001 00:56:55 -0700
User-agent: Mutt/1.2.5i

Hope it is not too late to fix it for FreeType 2.0.2 so it can build
correctly on Hurd.  :-)

----- Forwarded message from Jeff Bailey <address@hidden> -----

Date: Sat, 24 Feb 2001 21:40:42 -0800
From: Jeff Bailey <address@hidden>
Subject: Bug#87691: Build problem on hurd-i386
To: Debian Bug Tracking System <address@hidden>
X-Mailer: reportbug 1.14

Package: libfreetype6
Version: 2.0.1-1
Severity: important

When building on hurd-i386, freetype does not correctly detect the 
operating system as being unix-like.  This is because freetype beleives
that anything unix-like must have /sbin/init.  This is a simple fix for this
problem (all I'm doing is detecting /hurd/auth instead of /sbin/init.  There 
may be a better way, but this way I didn't have to worry about changing their 
code):

Create a new directory builds/hurd
Create this detect.mk in it:

#
# FreeType 2 configuration file to detect a UNIX host platform.
#


# Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.

.PHONY: devel lcc setup unix

ifeq ($(PLATFORM),ansi)

  is_hurd := $(strip $(wildcard /hurd/auth))
  ifneq ($(is_hurd),)

  PLATFORM := unix
  COPY     := cp
  DELETE   := rm -f


  # If `devel' is the requested target, we use a special configuration
  # file named `unix-dev.mk'.  It disables optimization and libtool.
  #
  ifneq ($(findstring devel,$(MAKECMDGOALS)),)
    CONFIG_FILE := unix-dev.mk
    CC          := gcc
    devel: setup
  else

    # If `lccl' is the requested target, we use a special configuration
    # file named `unix-lcc.mk'.  It disables libtool for LCC
    #
    ifneq ($(findstring lcc,$(MAKECMDGOALS)),)
      CONFIG_FILE := unix-lcc.mk
      CC          := lcc
      lcc: setup
    else
      # If a Unix platform is detected, the configure script is called and
      # `unix-def.mk' together with `unix-cc.mk' is created.
      #
      # Arguments to `configure' should be in the CFG variable.  Example:
      #
      #   make CFG="--prefix=/usr --disable-static"
      #
      # If you need to set CFLAGS or LDFLAGS, do it here also.
      #
      # Feel free to add support for other platform specific compilers in
      # this directory (e.g. solaris.mk + changes here to detect the
      # platform).
      #
       CONFIG_FILE := unix.mk
       setup: unix-def.mk
       unix: setup
     endif
   endif

   setup: std_setup

   unix-def.mk: $(TOP)/builds/unix/unix-def.in
           cd builds/unix; $(USE_CFLAGS) ./configure $(CFG)

  endif # test Unix
endif   # test PLATFORM

# EOF



-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux oasis 2.2.18 #1 Thu Dec 21 21:13:10 EST 2000 i686

Versions of packages libfreetype6 depends on:
ii  libc6                         2.2.2-1    GNU C Library: Shared libraries an


----- End forwarded message -----

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
address@hidden, address@hidden    University of Alberta, Canada
   Debian GNU/Linux Chinese Project -- http://www.debian.org/intl/zh/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]