1 |
Hi. I have an ebuild for app-accessibility/brltty-6.2.ebuild -- I |
2 |
copied it from the 6.1, but the install fails, it compiles OK. The |
3 |
ebuild is attached for your convenience. |
4 |
|
5 |
|
6 |
Here is what I get and what the developer told me. |
7 |
|
8 |
ectory |
9 |
'/var/tmp/portage/app-accessibility/brltty-6.2/work/brltty-6.2-python3_8/Programs' |
10 |
set -- --quiet build --build-temp .; \ |
11 |
[ "linux-gnu" != "mingw32" ] || set -- "${@}" --compiler mingw32; \ |
12 |
"/usr/bin/python3.8" ./setup.py "${@}" |
13 |
[ "linux-gnu" != "mingw32" ] || "/usr/bin/python3.8" ./setup.py |
14 |
--quiet bdist_wininst --skip-build |
15 |
set -- --quiet install --skip-build --record "installed-files"; \ |
16 |
[ -z "/var/tmp/portage/app-accessibility/brltty-6.2/image" ] || set -- |
17 |
"${@}" --root "/var/tmp/portage/app-accessibility/brltty-6.2/image"; \ |
18 |
[ -z "" ] || set -- "${@}" --prefix ""; \ |
19 |
"/usr/bin/python3.8" ./setup.py "${@}" |
20 |
* ERROR: app-accessibility/brltty-6.2::local_ebuilds failed (install |
21 |
phase): |
22 |
* !!! newins: Autostart/Udev/rules does not exist |
23 |
* |
24 |
|
25 |
Here is what the developer said: |
26 |
|
27 |
> * !!! newins: Autostart/Udev/rules does not exist |
28 |
|
29 |
That file has been renamed to device.rules. That's because there are |
30 |
now two |
31 |
ruells files - device.rules and uinput.rules. They should both be |
32 |
installed. |
33 |
Why doesn't gentoo just use brltty's make install-udev? |
34 |
|
35 |
udev_newrules Autostart/Udev/rules 70-brltty.rules |
36 |
|
37 |
It should be: Autostart/Udev/device.rules |
38 |
|
39 |
Note that there's another file now that also needs to be installed: |
40 |
|
41 |
Autopstart/Udev/uinput.rules newinitd |
42 |
"${FILESDIR}"/brltty.rc brltty |
43 |
|
44 |
>systemd_dounit Autostart/Systemd/brltty@.service |
45 |
|
46 |
Note that there's a new systemd instance unit that also needs to be |
47 |
installed: |
48 |
|
49 |
Autostart/Systemd/brltty-device@.service |
50 |
|
51 |
>systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
52 |
|
53 |
I'm not sure of the precise syntax, here, but this file should be |
54 |
installed as |
55 |
brltty.conf (i.e. named after the package) when it's installed into |
56 |
the |
57 |
tmpfiles.d/ subdirectory. |
58 |
|
59 |
There's also another systemd file, sysusers, which should be named |
60 |
brltty.conf |
61 |
(again named after the package) when it's installed into the |
62 |
sysusers.d/ |
63 |
subdirectory. |
64 |
|
65 |
>I wonder what to change to get this working? |
66 |
|
67 |
Explained above. What I'm wondering, however, is why this is being |
68 |
done outside |
69 |
of the make file that brltty already comes to do all of this. Why not |
70 |
just do: |
71 |
|
72 |
make install-systemd install-udev |
73 |
|
74 |
I should also make sure to mention that there are two more systemd |
75 |
units - |
76 |
brltty.path and brltty@.path - that also need to be installed. |
77 |
|
78 |
Really, we provide make files that do all of these things. How can any |
79 |
distribution ever get it right when it wants to try to get it all |
80 |
right its own |
81 |
way? Code duplication is never good! |
82 |
|
83 |
|
84 |
Please bear with me -- although I have used gentoo for years, I have |
85 |
not done much with writing ebuilds. |
86 |
|
87 |
Thanks in advance for any suggestions. |
88 |
|
89 |
And, Merry Christmas to all on this list, you folks have been a great |
90 |
help over the years. |