/[gentoo-x86]/eclass/multilib-build.eclass
Gentoo

Diff of /eclass/multilib-build.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.6
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.3 2013/02/26 14:42:24 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.6 2013/02/27 23:23:11 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: flags and utility functions for building multilib packages 8# @BLURB: flags and utility functions for building multilib packages
30# @DESCRIPTION: 30# @DESCRIPTION:
31# The list of multilib flags and corresponding ABI values. 31# The list of multilib flags and corresponding ABI values.
32_MULTILIB_FLAGS=( 32_MULTILIB_FLAGS=(
33 abi_x86_32:x86 33 abi_x86_32:x86
34 abi_x86_64:amd64 34 abi_x86_64:amd64
35 abi_x86_x32:x32
35) 36)
36 37
37# @ECLASS-VARIABLE: MULTILIB_USEDEP 38# @ECLASS-VARIABLE: MULTILIB_USEDEP
38# @DESCRIPTION: 39# @DESCRIPTION:
39# The USE-dependency to be used on dependencies (libraries) needing 40# The USE-dependency to be used on dependencies (libraries) needing
98 local initial_dir=${BUILD_DIR:-${S}} 99 local initial_dir=${BUILD_DIR:-${S}}
99 100
100 local ABI 101 local ABI
101 for ABI in $(multilib_get_enabled_abis); do 102 for ABI in $(multilib_get_enabled_abis); do
102 multilib_toolchain_setup "${ABI}" 103 multilib_toolchain_setup "${ABI}"
103 local BUILD_DIR=${initial_dir%%/}-${ABI} 104 BUILD_DIR=${initial_dir%%/}-${ABI} "${@}"
104 "${@}" | tee -a "${T}/build-${ABI}.log"
105 done 105 done
106} 106}
107 107
108# @FUNCTION: multilib_parallel_foreach_abi 108# @FUNCTION: multilib_parallel_foreach_abi
109# @USAGE: <argv>... 109# @USAGE: <argv>...
126 for ABI in $(multilib_get_enabled_abis); do 126 for ABI in $(multilib_get_enabled_abis); do
127 ( 127 (
128 multijob_child_init 128 multijob_child_init
129 129
130 multilib_toolchain_setup "${ABI}" 130 multilib_toolchain_setup "${ABI}"
131 local BUILD_DIR=${initial_dir%%/}-${ABI} 131 BUILD_DIR=${initial_dir%%/}-${ABI}
132 "${@}" 2>&1 | tee -a "${T}/build-${ABI}.log" 132 "${@}"
133 ) & 133 ) &
134 134
135 multijob_post_fork 135 multijob_post_fork
136 done 136 done
137 137
145# This function needs to be called after each ABI's installation phase. 145# This function needs to be called after each ABI's installation phase.
146# It obtains the header file checksums and compares them with previous 146# It obtains the header file checksums and compares them with previous
147# runs (if any). Dies if header files differ. 147# runs (if any). Dies if header files differ.
148multilib_check_headers() { 148multilib_check_headers() {
149 _multilib_header_cksum() { 149 _multilib_header_cksum() {
150 [[ -d ${ED}usr/include ]] && \
150 find "${ED}"usr/include -type f \ 151 find "${ED}"usr/include -type f \
151 -exec cksum {} + | sort -k2 152 -exec cksum {} + | sort -k2
152 } 153 }
153 154
154 local cksum=$(_multilib_header_cksum) 155 local cksum=$(_multilib_header_cksum)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20