1 |
Many thanks again. |
2 |
|
3 |
OK I went into the ebuild directory for libinput. |
4 |
|
5 |
I then edited the ebuild file and added the code you gave at the end of the |
6 |
file: |
7 |
|
8 |
src_install() { |
9 |
meson_src_install |
10 |
if use doc ; then |
11 |
docinto html |
12 |
dodoc -r "${BUILD_DIR}"/Documentation/. |
13 |
fi |
14 |
} |
15 |
|
16 |
pkg_postinst() { |
17 |
udevadm hwdb --update --root="${ROOT%/}" |
18 |
} |
19 |
|
20 |
--- a/dev-libs/libinput/libinput-1.13.2.ebuild |
21 |
+++ b/dev-libs/libinput/libinput-1.13.2.ebuild |
22 |
@@ -60,7 +60,7 @@ src_configure() { |
23 |
$(meson_use doc documentation) |
24 |
$(meson_use input_devices_wacom libwacom) |
25 |
-Dtests=false # tests are restricted |
26 |
- -Dudev-dir="$(get_udevdir)" |
27 |
+ -Dudev-dir="${EPREFIX}$(get_udevdir)" |
28 |
) |
29 |
meson_src_configure |
30 |
} |
31 |
|
32 |
I then ran |
33 |
|
34 |
ebuild libinput-1.13.2.ebuild digest |
35 |
|
36 |
and got an error message: |
37 |
|
38 |
mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$ ebuild |
39 |
libinput-1.13.2.ebuild digest |
40 |
* ERROR: dev-libs/libinput-1.13.2::gentoo failed (depend phase): |
41 |
* External commands disallowed while sourcing ebuild: --- |
42 |
a/dev-libs/libinput/libinput-1.13.2.ebuild |
43 |
* |
44 |
* Call stack: |
45 |
* ebuild.sh, line 623: Called source |
46 |
'/home/mikef/gentoo/usr/portage/dev-libs/libinput/libinput-1.13.2.ebuild' |
47 |
* libinput-1.13.2.ebuild, line 80: Called command_not_found_handle |
48 |
'---' 'a/dev-libs/libinput/libinput-1.13.2.ebuild' |
49 |
* ebuild.sh, line 88: Called die |
50 |
* The specific snippet of code: |
51 |
* die "External commands disallowed while sourcing ebuild: |
52 |
${*}" |
53 |
* |
54 |
* If you need support, post the output of `emerge --info |
55 |
'=dev-libs/libinput-1.13.2::gentoo'`, |
56 |
* the complete build log and the output of `emerge -pqv |
57 |
'=dev-libs/libinput-1.13.2::gentoo'`. |
58 |
* The ebuild environment file is located at |
59 |
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/temp/environment'. |
60 |
* Working directory: |
61 |
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/homedir' |
62 |
* S: |
63 |
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/work/libinput-1.13.2' |
64 |
mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$ |
65 |
|
66 |
Was I meant to add it to the existing code as I just did? |
67 |
|
68 |
Comments appreciated. |
69 |
|
70 |
Regards |
71 |
|
72 |
MF |