[blfs-book] [BLFS Trac] #4655: libffi required patch modification

BLFS Trac trac at linuxfromscratch.org
Tue Feb 4 14:46:28 PST 2014


#4655: libffi required patch modification
---------------------+-------------------------
 Reporter:  paucoma  |      Owner:  blfs-book@…
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:  current
Component:  BOOK     |    Version:  SVN
 Severity:  normal   |   Keywords:  patch
---------------------+-------------------------
 The required patch to be applied
 Required patch:
 http://www.linuxfromscratch.org/patches/blfs/svn/libffi-3.0.13-includedir-1.patch
 following changes the pkgconfig file, libffi.pc, should not be applied

 -Cflags: -I${includedir}

 +Cflags:

 When attempting to compile glib2 sources, "ffi.h" is required and not
 found if the includedir is not defined in the compiler flags.

 My solution. I manually modified my libffi.pc file.

 The proposed solution. Update the patch.



 -----------------
 {{{
 #!sh
 Submitted By:            Armin K. <krejzi at email dot com>
 Date:                    2012-03-29
 Initial Package Version: 3.0.10
 Upstream Status:         Not Submitted
 Origin:                  Self
 Description:             Makes package install headers into /usr/include
 instead
                          of /usr/lib/libffi-3.0.10/include

 --- libffi.orig/include/Makefile.in     2011-08-23 16:28:35.000000000
 +0200
 +++ libffi/include/Makefile.in  2012-03-29 19:57:53.919343783 +0200
 @@ -221,7 +221,7 @@
  AUTOMAKE_OPTIONS = foreign
  DISTCLEANFILES = ffitarget.h
  EXTRA_DIST = ffi.h.in ffi_common.h
 -includesdir = $(libdir)/@PACKAGE_NAME at -@PACKAGE_VERSION@/include
 +includesdir = $(includedir)
  nodist_includes_HEADERS = ffi.h ffitarget.h
  all: all-am

 --- libffi.orig/libffi.pc.in    2011-08-22 20:38:12.000000000 +0200
 +++ libffi/libffi.pc.in 2012-03-29 19:57:18.263549738 +0200
 @@ -1,7 +1,7 @@
  prefix=@prefix@
  exec_prefix=@exec_prefix@
  libdir=@libdir@
 -includedir=${libdir}/@PACKAGE_NAME at -@PACKAGE_VERSION@/include
 +includedir=@includedir@

  Name: @PACKAGE_NAME@
  Description: Library supporting Foreign Function Interfaces
 }}}
 -----------------------

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4655>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list