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

Collapse All | Expand All

(-)e2fsprogs-libs-1.41.3-r1.ebuild (-4 / +10 lines)
Lines 22-27 Link Here
22
22
23
src_prepare() {
23
src_prepare() {
24
	epatch "${FILESDIR}"/${PN}-1.41.1-darwin-makefile.patch
24
	epatch "${FILESDIR}"/${PN}-1.41.1-darwin-makefile.patch
25
	if [[ ${CHOST} == *-mint* ]]; then
26
		cd "${S}"
27
		sed -i -e 's/_SVID_SOURCE/_GNU_SOURCE/' lib/uuid/gen_uuid.c
28
	fi
25
}
29
}
26
30
27
src_configure() {
31
src_configure() {
Lines 32-39 Link Here
32
	# building on other Gentoo/*BSD we prefer elf-naming scheme.
36
	# building on other Gentoo/*BSD we prefer elf-naming scheme.
33
	local libtype
37
	local libtype
34
	case ${CHOST} in
38
	case ${CHOST} in
35
		*-darwin*) libtype=bsd;;
39
		*-darwin*) myconf="--enable-bsd-shlibs";;
36
		*)         libtype=elf;;
40
		*-mint*)   ;;
41
		*)         myconf="--enable-elf-shlibs";;
37
	esac
42
	esac
38
43
39
	# avoid a problem during parallel make, it bails because it creates the pic
44
	# avoid a problem during parallel make, it bails because it creates the pic
Lines 41-47 Link Here
41
	mkdir ./lib/blkid/pic ./lib/et/pic ./lib/ss/pic ./lib/uuid/pic 
46
	mkdir ./lib/blkid/pic ./lib/et/pic ./lib/ss/pic ./lib/uuid/pic 
42
47
43
	econf \
48
	econf \
44
		--enable-${libtype}-shlibs \
49
		${myconf} \
45
		$(use_enable !elibc_uclibc tls) \
50
		$(use_enable !elibc_uclibc tls) \
46
		$(use_enable nls) \
51
		$(use_enable nls) \
47
		|| die
52
		|| die
Lines 64-70 Link Here
64
	local lib slib
69
	local lib slib
65
	for lib in "${ED}"/usr/$(get_libdir)/*.a ; do
70
	for lib in "${ED}"/usr/$(get_libdir)/*.a ; do
66
		slib=${lib##*/}
71
		slib=${lib##*/}
67
		mv "${lib%.a}"*$(get_libname)* "${ED}"/$(get_libdir)/ || die "moving lib ${slib}"
72
		[[ $C{HOST} != *-mint* ]] && \
73
			mv "${lib%.a}"*$(get_libname)* "${ED}"/$(get_libdir)/ || die "moving lib ${slib}"
68
		gen_usr_ldscript ${slib%.a}$(get_libname)
74
		gen_usr_ldscript ${slib%.a}$(get_libname)
69
	done
75
	done
70
}
76
}

Return to bug 256234