Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/bzip2/
Date: Mon, 02 Oct 2017 09:11:59
Message-Id: 1506935510.a6eb83da9c38ad23a3dd6acdb8691dd51de94bc5.whissi@gentoo
1 commit: a6eb83da9c38ad23a3dd6acdb8691dd51de94bc5
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 2 09:11:11 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 2 09:11:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6eb83da
7
8 app-arch/bzip2: Security cleanup (bug #620466)
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 app-arch/bzip2/bzip2-1.0.6-r7.ebuild | 114 -----------------------------------
13 1 file changed, 114 deletions(-)
14
15 diff --git a/app-arch/bzip2/bzip2-1.0.6-r7.ebuild b/app-arch/bzip2/bzip2-1.0.6-r7.ebuild
16 deleted file mode 100644
17 index 3d35c6f1574..00000000000
18 --- a/app-arch/bzip2/bzip2-1.0.6-r7.ebuild
19 +++ /dev/null
20 @@ -1,114 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# XXX: atm, libbz2.a is always PIC :(, so it is always built quickly
25 -# (since we're building shared libs) ...
26 -
27 -EAPI=4
28 -
29 -inherit eutils toolchain-funcs multilib multilib-minimal
30 -
31 -DESCRIPTION="A high-quality data compressor used extensively by Gentoo Linux"
32 -HOMEPAGE="http://www.bzip.org/"
33 -SRC_URI="http://www.bzip.org/${PV}/${P}.tar.gz"
34 -
35 -LICENSE="BZIP2"
36 -SLOT="0"
37 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
38 -IUSE="static static-libs"
39 -
40 -RDEPEND="abi_x86_32? (
41 - !<=app-emulation/emul-linux-x86-baselibs-20130224
42 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
43 - )"
44 -
45 -src_prepare() {
46 - epatch "${FILESDIR}"/${PN}-1.0.4-makefile-CFLAGS.patch
47 - epatch "${FILESDIR}"/${PN}-1.0.6-saneso.patch
48 - epatch "${FILESDIR}"/${PN}-1.0.4-man-links.patch #172986
49 - epatch "${FILESDIR}"/${PN}-1.0.6-progress.patch
50 - epatch "${FILESDIR}"/${PN}-1.0.3-no-test.patch
51 - epatch "${FILESDIR}"/${PN}-1.0.4-POSIX-shell.patch #193365
52 - epatch "${FILESDIR}"/${PN}-1.0.6-mingw.patch #393573
53 - epatch "${FILESDIR}"/${PN}-1.0.6-out-of-tree-build.patch
54 -
55 - # - Use right man path
56 - # - Generate symlinks instead of hardlinks
57 - # - pass custom variables to control libdir
58 - sed -i \
59 - -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
60 - -e 's:ln -s -f $(PREFIX)/bin/:ln -s -f :' \
61 - -e 's:$(PREFIX)/lib:$(PREFIX)/$(LIBDIR):g' \
62 - Makefile || die
63 -}
64 -
65 -bemake() {
66 - emake \
67 - VPATH="${S}" \
68 - CC="$(tc-getCC)" \
69 - AR="$(tc-getAR)" \
70 - RANLIB="$(tc-getRANLIB)" \
71 - "$@"
72 -}
73 -
74 -multilib_src_compile() {
75 - bemake -f "${S}"/Makefile-libbz2_so all
76 - # Make sure we link against the shared lib #504648
77 - ln -sf libbz2.so.${PV} libbz2.so
78 - bemake -f "${S}"/Makefile all LDFLAGS="${LDFLAGS} $(usex static -static '')"
79 -}
80 -
81 -multilib_src_install() {
82 - into /usr
83 -
84 - # Install the shared lib manually. We install:
85 - # .x.x.x - standard shared lib behavior
86 - # .x.x - SONAME some distros use #338321
87 - # .x - SONAME Gentoo uses
88 - dolib.so libbz2.so.${PV}
89 - local v
90 - for v in libbz2.so{,.{${PV%%.*},${PV%.*}}} ; do
91 - dosym libbz2.so.${PV} /usr/$(get_libdir)/${v}
92 - done
93 - use static-libs && dolib.a libbz2.a
94 -
95 - if multilib_is_native_abi ; then
96 - gen_usr_ldscript -a bz2
97 -
98 - dobin bzip2recover
99 - into /
100 - dobin bzip2
101 - fi
102 -}
103 -
104 -multilib_src_install_all() {
105 - # `make install` doesn't cope with out-of-tree builds, nor with
106 - # installing just non-binaries, so handle things ourselves.
107 - insinto /usr/include
108 - doins bzlib.h
109 - into /usr
110 - dobin bz{diff,grep,more}
111 - doman *.1
112 -
113 - dosym bzdiff /usr/bin/bzcmp
114 - dosym bzdiff.1 /usr/share/man/man1/bzcmp.1
115 -
116 - dosym bzmore /usr/bin/bzless
117 - dosym bzmore.1 /usr/share/man/man1/bzless.1
118 -
119 - local x
120 - for x in bunzip2 bzcat bzip2recover ; do
121 - dosym bzip2.1 /usr/share/man/man1/${x}.1
122 - done
123 - for x in bz{e,f}grep ; do
124 - dosym bzgrep /usr/bin/${x}
125 - dosym bzgrep.1 /usr/share/man/man1/${x}.1
126 - done
127 -
128 - dodoc README* CHANGES manual.pdf
129 - dohtml manual.html
130 -
131 - # move "important" bzip2 binaries to /bin and use the shared libbz2.so
132 - dosym bzip2 /bin/bzcat
133 - dosym bzip2 /bin/bunzip2
134 -}