1 |
commit: 0a0e6a5e0b7ed4069266f2fcee32e74b7f08b584 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 4 11:57:04 2017 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 4 12:05:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a0e6a5e |
7 |
|
8 |
sys-apps/readahead-list: Fix gcc6 support, bug #594092 by Peter Levine, also stop using base.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
.../readahead-list-1.20060421.1016-gcc-4.3.patch | 4 +- |
13 |
.../readahead-list-1.20060421.1016-gcc6.patch | 15 ++++++ |
14 |
.../readahead-list-1.20060421.1016-r2.ebuild | 60 ++++++++++++++++++++++ |
15 |
3 files changed, 77 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch |
18 |
index 6264bbad952..ccee025dcbf 100644 |
19 |
--- a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch |
20 |
+++ b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch |
21 |
@@ -1,5 +1,5 @@ |
22 |
---- src/filelist-order.cxx |
23 |
-+++ src/filelist-order.cxx |
24 |
+--- a/src/filelist-order.cxx |
25 |
++++ b/src/filelist-order.cxx |
26 |
@@ -19,6 +19,7 @@ |
27 |
#include <iostream> |
28 |
#include <fstream> |
29 |
|
30 |
diff --git a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..a987e4aa767 |
33 |
--- /dev/null |
34 |
+++ b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch |
35 |
@@ -0,0 +1,15 @@ |
36 |
+filelist-order.cxx:276:37: error: unable to find string literal operator ‘operator""fmt’ with ‘const char [3]’, ‘long unsigned int’ arguments |
37 |
+ |
38 |
+https://bugs.gentoo.org/594092 |
39 |
+ |
40 |
+--- a/src/filelist-order.cxx |
41 |
++++ b/src/filelist-order.cxx |
42 |
+@@ -273,7 +273,7 @@ void printItem(PAIR_COMPLETE_TYPE p,vector <OrderField*> *ofa) { |
43 |
+ continue; |
44 |
+ } |
45 |
+ OrderField of = *ofp; |
46 |
+-#define case_entry(fmt,func) printf("%s"fmt,(first ? "" : " "),func_##func(mk)); break; |
47 |
++#define case_entry(fmt,func) printf("%s" fmt,(first ? "" : " "),func_##func(mk)); break; |
48 |
+ switch(of.type) { |
49 |
+ case ST_DEV: case_entry("%lld",ST_DEV); |
50 |
+ case ST_INO: case_entry("%lld",ST_INO); |
51 |
|
52 |
diff --git a/sys-apps/readahead-list/readahead-list-1.20060421.1016-r2.ebuild b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r2.ebuild |
53 |
new file mode 100644 |
54 |
index 00000000000..80b37f7a964 |
55 |
--- /dev/null |
56 |
+++ b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r2.ebuild |
57 |
@@ -0,0 +1,60 @@ |
58 |
+# Copyright 1999-2017 Gentoo Foundation |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=6 |
62 |
+ |
63 |
+DESCRIPTION="Preloads files into the page cache to accelerate program loading" |
64 |
+HOMEPAGE="http://www.orbis-terrarum.net" |
65 |
+SRC_URI="mirror://gentoo/${P}.tar.bz2" |
66 |
+LICENSE="GPL-2" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~ppc ~x86" |
69 |
+IUSE="doc" |
70 |
+ |
71 |
+RDEPEND="" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ virtual/os-headers |
74 |
+" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}/${P}-gcc-4.3.patch" |
78 |
+ "${FILESDIR}/${P}-gcc6.patch" |
79 |
+) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf --sbindir=/sbin |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ default |
87 |
+ |
88 |
+ # init scripts |
89 |
+ #cd "${S}/contrib/init/gentoo/" |
90 |
+ newinitd "${FILESDIR}"/init.d-readahead-list readahead-list |
91 |
+ newinitd "${FILESDIR}"/init.d-readahead-list-early readahead-list-early |
92 |
+ newconfd "${FILESDIR}"/conf.d-readahead-list readahead-list |
93 |
+ |
94 |
+ # default config |
95 |
+ insinto /etc/readahead-list |
96 |
+ cd "${S}/contrib/data" |
97 |
+ newins readahead.runlevel-default.list runlevel-default |
98 |
+ newins readahead.runlevel-boot.list runlevel-boot |
99 |
+ newins readahead._sbin_rc.list exec_sbin_rc |
100 |
+ |
101 |
+ # docs |
102 |
+ cd "${S}" |
103 |
+ if use doc; then |
104 |
+ docinto scripts |
105 |
+ dodoc contrib/scripts/* |
106 |
+ fi |
107 |
+ # clean up a bit |
108 |
+ find "${D}/usr/share/doc/${PF}/" -type f -name 'Makefile*' -exec rm -f \{\} \; |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ einfo "You should add readahead-list to your runlevels:" |
113 |
+ einfo " rc-update add readahead-list-early boot" |
114 |
+ einfo " rc-update add readahead-list boot" |
115 |
+ einfo "Also consider customizing the lists in /etc/readahead-list" |
116 |
+ einfo "for maximum performance gain." |
117 |
+} |