View previous topic :: View next topic |
Author |
Message |
GreyWizard n00b
Joined: 12 Sep 2024 Posts: 5 Location: The Deep South
|
Posted: Thu Sep 19, 2024 5:42 pm Post subject: Any iio sensor proxy alternative for openrc? |
|
|
[Administrator note: this post was originally attached to the four year old solved topic Any iio sensor proxy alternative for openrc?[SOLVED]. For reader convenience, I modified the quote attributions to point to the posts they quote, rather than being usernames with no link to the original thread. -Hu]
GDH-gentoo wrote: | Anroch2020 wrote: | The patch fail
Code: | patching file configure.ac
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
|
| Check that indented lines really have a TAB character after the first character (a space or a '-', depending on the line), followed by 4 spaces. Copy & paste from the forum might have messed whitespace characters. |
I'm having some trouble with this. You're saying that the indented lines (lines 4, 9, 10, and 14?) should have:
<space><tab><space><space><space><space>
as the white space at the beginning of the line?
And the lines with a dash (line 11?) should be:
-<tab><space><space><space><space>
Sorry, I've never tried to patch something before, please excuse my ignorance :) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22418
|
Posted: Thu Sep 19, 2024 6:02 pm Post subject: |
|
|
Welcome to the forums.
Rather than try to repair the patch, I suggest you get a clean copy, the easy way:- Start a reply-with-quote to the post containing the patch
- In the text edit box on the reply page, copy the patch to your clipboard, and then paste it into your favorite editor.
- Save the content of the editor as a patch file.
- Close the reply-with-quote page without replying. You only needed it for the side effect of getting the text edit box.
This path preserves whitespace, where copying it from the reading view of the thread does not. |
|
Back to top |
|
|
GreyWizard n00b
Joined: 12 Sep 2024 Posts: 5 Location: The Deep South
|
Posted: Thu Sep 19, 2024 6:56 pm Post subject: |
|
|
Hu wrote: | Welcome to the forums.
Rather than try to repair the patch, I suggest you get a clean copy, the easy way:- Start a reply-with-quote to the post containing the patch
- In the text edit box on the reply page, copy the patch to your clipboard, and then paste it into your favorite editor.
- Save the content of the editor as a patch file.
- Close the reply-with-quote page without replying. You only needed it for the side effect of getting the text edit box.
This path preserves whitespace, where copying it from the reading view of the thread does not. |
Thank you! I'm glad to be here! I'm loving Gentoo; the performance gains are real!
Thanks for the tip, that was what I needed to do.
So I got it to patch, but trying to install it by running:
Code: | $ sudo ./configure --prefix=/usr --sysconfdir=/etc
bash: ./configure: No such file or directory |
So I made configure.ac executable and ran:
Code: | $ sudo ./configure.ac --prefix=/usr --sysconfdir=/etc
./configure.ac: line 1: syntax error near unexpected token `2.59'
./configure.ac: line 1: `AC_PREREQ(2.59)' |
and now I don't know what to do. I suppose the error has something to do with dependencies, because it mentions prereq's, but how to resolve it is beyond me.
It would be great if there was a way to get the latest version (3.5, I believe) to work, but it uses meson to install, so everything is different and the patch doesn't work on it. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1649 Location: South America
|
Posted: Thu Sep 19, 2024 8:29 pm Post subject: |
|
|
GreyWizard wrote: | It would be great if there was a way to get the latest version (3.5, I believe) to work, but it uses meson to install, so everything is different and the patch doesn't work on it. |
I believe that version 3.5 doesn't need patching, just the extra option -Dsystemdsystemunitdir=/lib/systemd/system in the invocation of meson on a Gentoo OpenRC computer. Plus the service script for OpenRC because the installed systemd service unit file won't do anything. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
GreyWizard n00b
Joined: 12 Sep 2024 Posts: 5 Location: The Deep South
|
Posted: Thu Sep 19, 2024 9:24 pm Post subject: |
|
|
GDH-gentoo wrote: | Exactly. Was file 80-iio-sensor-proxy.rules installed in /lib/udev/rules.d, and file net.hadess.SensorProxy.conf installed in /etc/dbus-1/system.d? |
Okay so the extra option let me install the service, and I was able to make a rc script, but net.hadess.SensorProxy.conf is not in the noted location and the service stops. find / -iname SensorProxy yeilded no results. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1649 Location: South America
|
Posted: Thu Sep 19, 2024 10:11 pm Post subject: |
|
|
GreyWizard wrote: | Okay so the extra option let me install the service, and I was able to make a rc script, but net.hadess.SensorProxy.conf is not in the noted location and the service stops. find / -iname SensorProxy yeilded no results. |
iio-sensor-proxy 3.5 should have net.hadess.SensorProxy.conf installed in /usr/share/dbus-1/system.d, with the same effect. Is it not there? _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
GreyWizard n00b
Joined: 12 Sep 2024 Posts: 5 Location: The Deep South
|
Posted: Thu Sep 19, 2024 10:18 pm Post subject: |
|
|
Oh, yes, but for some reason find didn't find it.
Okay, so here's what I get, and the log files didn't get created:
Code: |
# rc-service iio-sensor-proxy start
* Starting iio-sensor-proxy ...
* start-stop-daemon: (null) does not exist
* Failed to start iio-sensor-proxy [ !! ]
* ERROR: iio-sensor-proxy failed to start
| [/code] |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1649 Location: South America
|
Posted: Thu Sep 19, 2024 10:45 pm Post subject: |
|
|
GreyWizard wrote: | Code: | * start-stop-daemon: (null) does not exist |
|
Did you use the script that was posted in this thread? Repeat with the verbose option:
Code: | # rc-service -v iio-sensor-proxy start |
_________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
GreyWizard n00b
Joined: 12 Sep 2024 Posts: 5 Location: The Deep South
|
Posted: Thu Sep 19, 2024 10:48 pm Post subject: |
|
|
Yeah, the second version with the logging stuff.
Code: | $ sudo rc-service -v iio-sensor-proxy start
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/iio-sensor-proxy start
* Starting iio-sensor-proxy ...
* start-stop-daemon: (null) does not exist
* Failed to start iio-sensor-proxy [ !! ]
* ERROR: iio-sensor-proxy failed to start |
|
|
Back to top |
|
|
|