Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 85069
Collapse All | Expand All

(-)pam-0.78-r2.ebuild (-7 / +13 lines)
Lines 294-307 Link Here
294
				echo
294
				echo
295
				die "${mod_name} module did not build."
295
				die "${mod_name} module did not build."
296
			fi
296
			fi
297
			if [[ -n $(ldd "${sec_dir}/${mod_name}"*.so 2>&1 | \
297
			local usr_dependencies=$(
298
			           grep "/usr/lib/" | \
298
				ldd "${sec_dir}/${mod_name}"*.so 2>&1 | \
299
			           grep "/usr/$(get_libdir)/" | \
299
				grep "/usr/lib/" | \
300
			           grep -v "/usr/lib/gcc" | \
300
				grep "/usr/$(get_libdir)/" | \
301
			           grep -v "/usr/$(get_libdir)/gcc" | \
301
				grep -v "/usr/lib/gcc" | \
302
			           grep -v "libsandbox") ]] ; then
302
				grep -v "/usr/$(get_libdir)/gcc" | \
303
				grep -v "libsandbox")
304
			if [[ -n ${usr_dependencies} ]] ; then
303
				echo
305
				echo
304
				eerror "ERROR: ${mod_name} have dependencies in /usr."
306
				eerror "ERROR: ${mod_name} has dependencies in /usr: $(echo ${usr_dependencies} | awk '{print $3}')"
307
				eerror "       Perhaps updating/recompiling the package owning the offending"
308
				eerror "       file(s) would help."
309
				eerror "       It is also possible that the file has been left behind and does not"
310
				eerror "       belong to any package, and should be removed."
305
				echo
311
				echo
306
				die "${mod_name} have dependencies in /usr."
312
				die "${mod_name} have dependencies in /usr."
307
			fi
313
			fi

Return to bug 85069