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

Collapse All | Expand All

(-)a/app-arch/bzip2/bzip2-1.0.8-r1.ebuild (-9 / +14 lines)
Lines 6-12 Link Here
6
6
7
EAPI=7
7
EAPI=7
8
8
9
inherit toolchain-funcs multilib-minimal usr-ldscript
9
inherit multilib multilib-minimal usr-ldscript
10
10
11
DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
11
DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
12
HOMEPAGE="https://sourceware.org/bzip2/"
12
HOMEPAGE="https://sourceware.org/bzip2/"
Lines 33-38 HTML_DOCS=( manual.html ) Link Here
33
src_prepare() {
33
src_prepare() {
34
	default
34
	default
35
35
36
	# - Use right libname extension
37
	sed -i \
38
		-e "s:bz2.so:bz2$(get_libname):g" \
39
		Makefile-libbz2_so || die
40
36
	# - Use right man path
41
	# - Use right man path
37
	# - Generate symlinks instead of hardlinks
42
	# - Generate symlinks instead of hardlinks
38
	# - pass custom variables to control libdir
43
	# - pass custom variables to control libdir
Lines 55-61 bemake() { Link Here
55
multilib_src_compile() {
60
multilib_src_compile() {
56
	bemake -f "${S}"/Makefile-libbz2_so all
61
	bemake -f "${S}"/Makefile-libbz2_so all
57
	# Make sure we link against the shared lib #504648
62
	# Make sure we link against the shared lib #504648
58
	ln -s libbz2.so.${PV} libbz2.so || die
63
	ln -s libbz2$(get_libname ${PV}) libbz2$(get_libname) || die
59
	bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')"
64
	bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')"
60
}
65
}
61
66
Lines 66-75 multilib_src_install() { Link Here
66
	#  .x.x.x - standard shared lib behavior
71
	#  .x.x.x - standard shared lib behavior
67
	#  .x.x   - SONAME some distros use #338321
72
	#  .x.x   - SONAME some distros use #338321
68
	#  .x     - SONAME Gentoo uses
73
	#  .x     - SONAME Gentoo uses
69
	dolib.so libbz2.so.${PV}
74
	dolib.so libbz2$(get_libname ${PV})
70
	local v
75
	local v
71
	for v in libbz2.so{,.{${PV%%.*},${PV%.*}}} ; do
76
	for v in libbz2$(get_libname){,.{${PV%%.*},${PV%.*}}} ; do
72
		dosym libbz2.so.${PV} /usr/$(get_libdir)/${v}
77
		dosym libbz2$(get_libname ${PV}) /usr/$(get_libdir)/${v}
73
	done
78
	done
74
79
75
	# Install libbz2.so.1.0 due to accidental soname change in 1.0.7.
80
	# Install libbz2.so.1.0 due to accidental soname change in 1.0.7.
Lines 84-92 multilib_src_install() { Link Here
84
	if multilib_is_native_abi ; then
89
	if multilib_is_native_abi ; then
85
		gen_usr_ldscript -a bz2
90
		gen_usr_ldscript -a bz2
86
91
87
		dobin bzip2recover
92
		dobin bzip2recover$(get_exeext)
88
		into /
93
		into /
89
		dobin bzip2
94
		dobin bzip2$(get_exeext)
90
	fi
95
	fi
91
}
96
}
92
97
Lines 117-122 multilib_src_install_all() { Link Here
117
	einstalldocs
122
	einstalldocs
118
123
119
	# move "important" bzip2 binaries to /bin and use the shared libbz2.so
124
	# move "important" bzip2 binaries to /bin and use the shared libbz2.so
120
	dosym bzip2 /bin/bzcat
125
	dosym bzip2$(get_exeext) /bin/bzcat$(get_exeext)
121
	dosym bzip2 /bin/bunzip2
126
	dosym bzip2$(get_exeext) /bin/bunzip2$(get_exeext)
122
}
127
}

Return to bug 680220