Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363275 - [patch] dev-libs/libffi-3.0.10_rc8 fails to compile on Gentoo/FBSD
Summary: [patch] dev-libs/libffi-3.0.10_rc8 fails to compile on Gentoo/FBSD
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2011-04-12 10:37 UTC by Yuta SATOH
Modified: 2014-01-02 10:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

patch for libffi-3.0.10_rc8.ebuild (libffi-3.0.10_rc8.ebuild.patch,305 bytes, patch)
2011-04-12 10:38 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-04-12 10:37:38 UTC
The following message is displayed and fails to compile on Gentoo/FBSD.

config.status: build in i686-gentoo-freebsd8.0 (HOST=)
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands
>>> Source configured.
/usr/portage/profiles/default/bsd/profile.bashrc: line 14: 40253 Segmentation fault: 11  (core dumped) grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c
/usr/portage/profiles/default/bsd/profile.bashrc: line 14: 40254 Segmentation fault: 11  (core dumped) grep -q "test .*==" "${S}" -r --include configure
>>> Compiling source in /var/tmp/portage/dev-libs/libffi-3.0.10_rc8/work/libffi-3.0.10rc8 ...
MAKE i386-unknown-freebsd8.0 :        0 * all-all
gmake: *** [all-all] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge dev-libs/libffi
Comment 1 Yuta SATOH 2011-04-12 10:38:24 UTC
Created attachment 269635 [details, diff]
patch for libffi-3.0.10_rc8.ebuild

When I confirmed Makefile, it is used if HOST is defined. 
Because Gentoo/*BSD uses special CHOST, it is necessary to define HOST.
Comment 2 Naohiro Aota gentoo-dev 2011-05-21 18:43:50 UTC
Applied patch for BSD.

BTW, I asked upstream about the m4 macro used in this package (and causing this bug).

I think it would be better to have this patch for all archs ...