Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 83811 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-libs/pam/pam-0.77-r6.ebuild.orig (-2 / +59 lines)
Lines 16-22 Link Here
16
	>=sys-devel/autoconf-2.59
16
	>=sys-devel/autoconf-2.59
17
	>=sys-devel/automake-1.6
17
	>=sys-devel/automake-1.6
18
	>=sys-devel/flex-2.5.4a-r5
18
	>=sys-devel/flex-2.5.4a-r5
19
	pwdb? ( >=sys-libs/pwdb-0.62 )"
19
	pwdb? ( >=sys-libs/pwdb-0.62 )
20
	!app-emulation/emul-linux-x86-baselibs"
20
21
21
# Have python sandbox issues currently ...
22
# Have python sandbox issues currently ...
22
#	doc? ( app-text/sgmltools-lite )
23
#	doc? ( app-text/sgmltools-lite )
Lines 32-38 Link Here
32
# link statically to it - <azarah@gentoo.org> (09 Nov 2003).
33
# link statically to it - <azarah@gentoo.org> (09 Nov 2003).
33
34
34
#inherit needs to be after DEPEND definition to protect RDEPEND
35
#inherit needs to be after DEPEND definition to protect RDEPEND
35
inherit gcc eutils flag-o-matic gnuconfig
36
inherit gcc eutils flag-o-matic gnuconfig multilib
36
37
37
# Note that we link to static versions of glib (pam_console.so)
38
# Note that we link to static versions of glib (pam_console.so)
38
# and pwdb (pam_pwdb.so) ...
39
# and pwdb (pam_pwdb.so) ...
Lines 99-107 Link Here
99
	cp /usr/share/automake/install-sh . || die
100
	cp /usr/share/automake/install-sh . || die
100
	export WANT_AUTOCONF=2.5
101
	export WANT_AUTOCONF=2.5
101
	autoconf || die
102
	autoconf || die
103
104
	if use amd64 && has_multilib_profile; then
105
		cp -ar ${S} ${S}-x86
106
		mv ${S} ${S}-amd64
107
	fi
102
}
108
}
103
109
104
src_compile() {
110
src_compile() {
111
	if use amd64 && has_multilib_profile; then
112
		local OABI=${ABI}
113
		local OS=${S}
114
		local OPWD=$PWD
115
		ABI="x86"
116
		S=${OS}-x86
117
		cd ${S}
118
		src_compile-multilib
119
		ABI="amd64"
120
		S=${OS}-amd64
121
		cd ${WORKDIR}
122
		cd db-${BDB_VER}/dist || die
123
		make distclean || die
124
		cd ${S}
125
		src_compile-multilib
126
		S=${OS}
127
		cd ${OPWD}
128
		ABI=${OABI}
129
		unset OPWD
130
		unset OS
131
		unset OABI
132
	else
133
		src_compile-multilib
134
	fi
135
}
136
137
src_compile-multilib() {
105
	export CFLAGS="${CFLAGS} -fPIC"
138
	export CFLAGS="${CFLAGS} -fPIC"
106
139
107
	if use berkdb
140
	if use berkdb
Lines 210-215 Link Here
210
}
243
}
211
244
212
src_install() {
245
src_install() {
246
	if use amd64 && has_multilib_profile; then
247
		local OABI=${ABI}
248
		local OS=${S}
249
		local OPWD=$PWD
250
		ABI="x86"
251
		S=${OS}-x86
252
		cd ${S}
253
		src_install-multilib
254
		ABI="amd64"
255
		S=${OS}-amd64
256
		cd ${S}
257
		src_install-multilib
258
		S=${OS}
259
		cd ${OPWD}
260
		ABI=${OABI}
261
		unset OPWD
262
		unset OS
263
		unset OABI
264
	else
265
		src_install-multilib
266
	fi
267
}
268
269
src_install-multilib() {
213
	local x=
270
	local x=
214
271
215
	einfo "Installing Linux-PAM ${PV}..."
272
	einfo "Installing Linux-PAM ${PV}..."

Return to bug 83811