Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/dpkg/, app-arch/dpkg/files/
Date: Thu, 07 Jul 2016 10:28:21
Message-Id: 1467887259.9d6dd3a496d322908591aa99e364bca59f677bea.jer@gentoo
1 commit: 9d6dd3a496d322908591aa99e364bca59f677bea
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 7 10:12:43 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 10:27:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d6dd3a4
7
8 app-arch/dpkg: Version bump.
9
10 Package-Manager: portage-2.3.0
11
12 app-arch/dpkg/Manifest | 1 +
13 app-arch/dpkg/dpkg-1.18.9.ebuild | 102 +++++++++++++++++++++++++
14 app-arch/dpkg/files/dpkg-1.18.9-strerror.patch | 11 +++
15 3 files changed, 114 insertions(+)
16
17 diff --git a/app-arch/dpkg/Manifest b/app-arch/dpkg/Manifest
18 index 74030be..f92206d 100644
19 --- a/app-arch/dpkg/Manifest
20 +++ b/app-arch/dpkg/Manifest
21 @@ -2,3 +2,4 @@ DIST dpkg_1.17.26.tar.xz 4410860 SHA256 aa4e758752cdfd7ecb118d7a7d31139a0c090c92
22 DIST dpkg_1.17.27.tar.xz 4413092 SHA256 90749c31b9f1fceb46dd9fab5b50de34272efef333cc16d9e144f514fd944bb6 SHA512 6f0229bf6c6b76be22d0baf4af21b1175b5397c4a84eb47f0d02bb93173207cc087015a53a2ed9feb7195d313d447d71a0d7361eb1238377c38f8be4465f8bbd WHIRLPOOL cc8525d391bbb42e399e4a1ecb526db1071122272f7eb1b23bdbbad361dfa0f7af8f1fac867f5fb2028d74171ecd3b175b813b2370b2982b17c1d05b39921455
23 DIST dpkg_1.18.6.tar.xz 4617492 SHA256 dd0bc323baafe7aae1571a41d37ab92452171e7a2ce34429f77621fdc0e5dea2 SHA512 84bec49af80ca6e003413dcfbd8da6962f397c8319fbcd93a1c83ed613b4f9a5512ee51d01512203475e97e6570a802238515647cbd5aeab096c13104c50dd33 WHIRLPOOL a8ce16147f933ca6f1d902b7e25cbc34100b710429886eef5b2cfdb333d418d94c33bfd1a7b9bcd5f91e5729ebb70cb38398122d90e4d01304e6c3ce21825ffc
24 DIST dpkg_1.18.7.tar.xz 4617284 SHA256 ace36d3a6dc750a42baf797f9e75ec580a21f92bb9ff96b482100755d6d9b87b SHA512 f5a0d35040338eecd303d2c39469f2cb38e8e135df2179c0ad6cbf67cb509303df528cb03db9fb26db82456171320ee2ba9b31f18c4b994af3fdcecb2e8a0a80 WHIRLPOOL fe7adc4f07ec239a3c09e3d7e237c007853b456875d1789b2ad9bae93ea35b1c008ec4bfcf28417241e4060af7913dadd2ab62cc620cd18bfa8644ee0523b02b
25 +DIST dpkg_1.18.9.tar.xz 4632900 SHA256 86ac4af917e9e75eb9b6c947a0a11439d1de32f72237413f7ddab17f77082093 SHA512 d1253734f7949c6e486920b6b67a4412142747be419d8be83792e2fba1fc9e803e6d0988ae028da9d7d1885176659d5e61b9e69f814a9080ea30c36482a17dd5 WHIRLPOOL 6dbc4aaf3d88741c87a7e99637caae83e4ee314f6dc762782c9f83bba4167e34dd0ee5ffdac0f4ef5944981e6d3e091180935961bf1cb66fc7b825f46cbb8051
26
27 diff --git a/app-arch/dpkg/dpkg-1.18.9.ebuild b/app-arch/dpkg/dpkg-1.18.9.ebuild
28 new file mode 100644
29 index 0000000..b90321f
30 --- /dev/null
31 +++ b/app-arch/dpkg/dpkg-1.18.9.ebuild
32 @@ -0,0 +1,102 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +inherit eutils multilib autotools toolchain-funcs
39 +
40 +DESCRIPTION="Package maintenance system for Debian"
41 +HOMEPAGE="http://packages.qa.debian.org/dpkg"
42 +SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris"
47 +IUSE="+bzip2 +lzma nls selinux test unicode +update-alternatives +zlib"
48 +
49 +RDEPEND="
50 + >=dev-lang/perl-5.6.0:=
51 + dev-perl/TimeDate
52 + bzip2? ( app-arch/bzip2 )
53 + lzma? ( app-arch/xz-utils )
54 + selinux? ( sys-libs/libselinux )
55 + zlib? ( >=sys-libs/zlib-1.1.4 )
56 +"
57 +DEPEND="
58 + ${RDEPEND}
59 + app-arch/xz-utils
60 + sys-devel/flex
61 + virtual/pkgconfig
62 + nls? (
63 + app-text/po4a
64 + >=sys-devel/gettext-0.18.2
65 + )
66 + test? (
67 + dev-perl/DateTime-Format-DateParse
68 + dev-perl/IO-String
69 + dev-perl/Test-Pod
70 + virtual/perl-Test-Harness
71 + )
72 +"
73 +
74 +DOCS=( ChangeLog THANKS TODO )
75 +
76 +src_prepare() {
77 + # do not expect Debian's gzip --rsyncable extension
78 + eapply "${FILESDIR}"/${PN}-1.17.0-gzip-rsyncable.patch
79 +
80 + eapply "${FILESDIR}"/${PN}-1.17.1-flags.patch
81 +
82 + eapply "${FILESDIR}"/${PN}-1.18.9-strerror.patch
83 +
84 + # Force the use of the running bash for get-version (this file is never
85 + # installed, so no need to worry about hardcoding a temporary bash)
86 + sed -i -e '1c\#!'"${BASH}" get-version || die
87 +
88 + if [[ ${CHOST} == mips64*-linux-gnu ]] ; then
89 + # Debian targets use custom full tuples. Map the default one
90 + # based on the ABI we're using.
91 + local abi
92 + if [[ ${ABI} == "n64" ]] ; then
93 + abi="mips64"
94 + else
95 + abi="mipsn32"
96 + fi
97 + printf "gnu-linux-mips64 ${abi}\ngnu-linux-mips64el ${abi}el\n" >> triplettable
98 + fi
99 +
100 + use nls && strip-linguas -i po
101 +
102 + eapply_user
103 +
104 + eautoreconf
105 +}
106 +
107 +src_configure() {
108 + tc-export CC
109 + econf \
110 + $(use_enable nls) \
111 + $(use_enable unicode) \
112 + $(use_enable update-alternatives) \
113 + $(use_with bzip2 libbz2) \
114 + $(use_with lzma liblzma) \
115 + $(use_with selinux libselinux) \
116 + $(use_with zlib libz) \
117 + --disable-compiler-warnings \
118 + --disable-dselect \
119 + --disable-silent-rules \
120 + --disable-start-stop-daemon \
121 + --localstatedir="${EPREFIX}"/var \
122 + --without-libmd
123 +}
124 +
125 +src_compile() {
126 + emake AR=$(tc-getAR)
127 +}
128 +
129 +src_install() {
130 + default
131 +
132 + keepdir /usr/$(get_libdir)/db/methods/{mnt,floppy,disk}
133 + keepdir /usr/$(get_libdir)/db/{alternatives,info,methods,parts,updates}
134 +}
135
136 diff --git a/app-arch/dpkg/files/dpkg-1.18.9-strerror.patch b/app-arch/dpkg/files/dpkg-1.18.9-strerror.patch
137 new file mode 100644
138 index 0000000..9cc0387
139 --- /dev/null
140 +++ b/app-arch/dpkg/files/dpkg-1.18.9-strerror.patch
141 @@ -0,0 +1,11 @@
142 +--- a/lib/dpkg/path-remove.c
143 ++++ b/lib/dpkg/path-remove.c
144 +@@ -28,6 +28,8 @@
145 + #include <errno.h>
146 + #include <unistd.h>
147 +
148 ++#include <string.h> /* strerror() */
149 ++
150 + #include <dpkg/i18n.h>
151 + #include <dpkg/dpkg.h>
152 + #include <dpkg/path.h>