1 |
commit: acfe337d09539ed91c0b34006572ef83c2b7e7b2 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 15 12:33:01 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 15 12:52:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acfe337d |
7 |
|
8 |
sys-apps/systemd-readahead: Fix compilation, bug #607068 |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
sys-apps/systemd-readahead/systemd-readahead-216.ebuild | 14 +++++++++++--- |
13 |
1 file changed, 11 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/systemd-readahead/systemd-readahead-216.ebuild b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
16 |
index e256882d916..a7580f0a561 100644 |
17 |
--- a/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
18 |
+++ b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
@@ -135,8 +135,16 @@ src_configure() { |
26 |
} |
27 |
|
28 |
src_compile() { |
29 |
- echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra |
30 |
- emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES |
31 |
+ echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > ./Makefile.extra |
32 |
+ emake -f Makefile -f ./Makefile.extra BUILT_SOURCES |
33 |
+ |
34 |
+ # Fix compilation, bug #607068 |
35 |
+ # From comments at https://aur.archlinux.org/packages/systemd-readahead |
36 |
+ gperf < src/libsystemd/sd-bus/bus-error-mapping.gperf > src/libsystemd/sd-bus/bus-error-mapping.c || die |
37 |
+ sed -i -e "/bus_error_mapping_lookup/s/size_t/unsigned int/" src/libsystemd/sd-bus/bus-error-mapping.c || die |
38 |
+ sed -i -e "/lookup_errno/s/size_t/unsigned int/" src/shared/errno-from-name.h || die |
39 |
+ sed -i -e "/lookup_af/s/size_t/unsigned int/" src/shared/af-from-name.h || die |
40 |
+ sed -i -e "/lookup_arphrd/s/size_t/unsigned int/" src/shared/arphrd-from-name.h || die |
41 |
|
42 |
emake systemd-readahead |
43 |
emake units/systemd-readahead-{drop,collect,replay,done}.service units/systemd-readahead-done.timer |