Summary: | sys-power/iasl-20120816: build fails on Gentoo/FreeBSD | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Yuta SATOH <nigoro.dev> |
Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | 4glitch, robbat2 |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | sample patch for iasl-20120816.ebuild |
Description
Yuta SATOH
2012-12-25 12:19:20 UTC
Created attachment 333276 [details, diff]
sample patch for iasl-20120816.ebuild
Comment on attachment 333276 [details, diff] sample patch for iasl-20120816.ebuild >--- iasl-20120816.ebuild.orig 2012-09-08 08:11:29.000000000 +0900 >+++ iasl-20120816.ebuild 2012-12-25 21:15:00.000000000 +0900 >@@ -48,8 +48,22 @@ > xargs -0 -I '{}' \ > sed -r -e 's:-\<Werror\>::g' -i '{}' \ > || die >+ if use userland_BSD ; then >+ find "${S}/generate/unix" -type f -name 'Makefile*' -print0 | \ >+ xargs -0 -I '{}' \ >+ sed -r -e 's:make BITS=:gmake BITS=:g' \ This should use $(MAKE) instead. Makefiles should always be fixed to use it. >+ -e 's:--remove-destination:-f:g' -i '{}' \ IMHO, we may use "-f" always (not specific on Linux), since we are building the code in separated directory. >@@ -57,8 +71,8 @@ > } > > src_compile() { >- cd acpica/generate/unix >- emake BITS=${BITS} >+ cd "${S}"/generate/unix >+ emake -j1 BITS=${BITS} This line can be preserved if we patch the code to use $(MAKE) > } > > src_test() { >@@ -68,9 +82,14 @@ > } > > src_install() { >- cd acpica/generate/unix >- emake install DESTDIR="${D}" BITS=${BITS} >- default_src_install >+ if use userland_BSD ; then >+ cd "${S}"/generate/unix/bin${BITS} >+ dobin * >+ else >+ cd "${S}"/generate/unix >+ emake install DESTDIR="${D}" BITS=${BITS} >+ default_src_install >+ fi I'd prefer to patch the code to do "portable" install usage. Now, sys-power/iasl-20171215 can compile on Gentoo/FreeBSD. closing. |