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

Already on GitHub? Sign in to your account

Libffi 3.0.12 creates invalid package info for library install directories on OS X 10.8 #31

Open
arttaylor opened this Issue Mar 8, 2013 · 8 comments

Comments

Projects
None yet
3 participants

libffi 3.0.12 introduced a few changes that cause pkginfo to be out of sync with the installation when building on OS X 10.8.2 (Mountain Lion). This causes an error through dependent builds.
gtk+/gio example.

libffi 3.0.11:

  • installed libraries in ${PREFIX}/lib.
  • specified libdir=${exec_prefix}/lib in pkginfo/libffi.pc.

libffi 3.0.12:

  • installed libraries in ${PREFIX}/lib/X86_64.
  • specified libdir=${exec_prefix}/lib in pkginfo/libffi.pc.

git bisect can't identify the specific cause because a number of the commits are unbuildable for other reasons. However, there are "good" commits before the jrails patch and mostly bad ones after.

Owner

atgreen commented Mar 16, 2013

Could you please send me a configured tree? I'd like to look at the log files and resulting Makefiles.

Thanks!

AG

Absolutely. Please find attached.

-a.

On 16 Mar 2013, at 5:08 AM, Anthony Green notifications@github.com wrote:

Could you please send me a configured tree? I'd like to look at the log files and resulting Makefiles.

Thanks!

AG


Reply to this email directly or view it on GitHub.

risto3 commented Mar 17, 2013

Hi, for information there is a similar problem for x64 solaris with pkgsrc.
please see my post: http://permalink.gmane.org/gmane.os.netbsd.devel.pkgsrc.user/17892

Owner

atgreen commented Mar 17, 2013

@arttaylor - I don't see anything attached. Could you please send it to me directly: green@moxielogic.com ?

@risto3 - could you also please send me a configured tree?

Thanks!

AG

@atgreen atgreen closed this Mar 17, 2013

@atgreen atgreen reopened this Mar 17, 2013

Owner

atgreen commented Mar 17, 2013

It looks like toolexeclibdir is being set wrong for you guys. Can somebody add "set -x" to the top of their configure file, run configure while directing output to a file and send me the output file. Something like...

$ ./configure > log.txt 2>&1

Owner

atgreen commented Mar 17, 2013

Could you please try this...

ftp://sourceware.org/pub/libffi/libffi-3.0.13-rc2.tar.gz

risto3 commented Mar 17, 2013

seems to build okay now for me:

$ tree .destdir/opt/pkg/
.destdir/opt/pkg/
|-- include
|   |-- ffi.h
|   `-- ffitarget.h
|-- info
|   `-- libffi.info
|-- lib
|   |-- libffi.a
|   |-- libffi.la
|   |-- libffi.so -> libffi.so.6.0.1
|   |-- libffi.so.6 -> libffi.so.6.0.1
|   |-- libffi.so.6.0.1
|   `-- pkgconfig
|       `-- libffi.pc
`-- man
    `-- man3
        |-- ffi.3
        |-- ffi_call.3
        |-- ffi_prep_cif.3
        `-- ffi_prep_cif_var.3

6 directories, 13 files
$ cat .destdir/opt/pkg/lib/pkgconfig/libffi.pc 
prefix=/opt/pkg
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=/opt/pkg/include

Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.0.13-rc2
Libs: -Wl,-R${libdir} -L${libdir} -lffi
Cflags: -I${includedir}

thanks, when is 3.0.13 expected to drop?

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