* [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly
@ 2018-02-27 21:21 Trent Piepho
2018-02-27 21:31 ` Yann E. MORIN
2018-02-27 21:44 ` Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Trent Piepho @ 2018-02-27 21:21 UTC (permalink / raw)
To: buildroot
The link in /etc/systemd/system/, named dbus-org.bluez.service, pointing to
../../../../usr/lib/systemd/system/bluetooth.service has one too many ".." in
it. Likely the target was copied from the other link in
/etc/systemd/system/bluetooth.target.wants/, which is one level deeper.
Adjust link to be correct.
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
---
package/bluez5_utils/bluez5_utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index 0634ec9f6f..395340a3e6 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -116,7 +116,7 @@ define BLUEZ5_UTILS_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants
ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
$(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants/bluetooth.service
- ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
+ ln -fs ../../../usr/lib/systemd/system/bluetooth.service \
$(TARGET_DIR)/etc/systemd/system/dbus-org.bluez.service
endef
--
2.14.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly
2018-02-27 21:21 [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly Trent Piepho
@ 2018-02-27 21:31 ` Yann E. MORIN
2018-02-27 21:56 ` Trent Piepho
2018-02-27 21:44 ` Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2018-02-27 21:31 UTC (permalink / raw)
To: buildroot
Trent, All,
On 2018-02-27 13:21 -0800, Trent Piepho spake thusly:
> The link in /etc/systemd/system/, named dbus-org.bluez.service, pointing to
> ../../../../usr/lib/systemd/system/bluetooth.service has one too many ".." in
> it. Likely the target was copied from the other link in
> /etc/systemd/system/bluetooth.target.wants/, which is one level deeper.
>
> Adjust link to be correct.
>
> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
However, this should not have any real problem on the target: this
succession of '..' will eventually reach / which has its own '..'
pointing back to itself; that is /.. points to / and so everything
should just work as expected. Only on the build machine does that have
an impact.
So, can you confirm that this is not fixing any runtime issue, but just
making the symlink "less incorrect"?
Regards,
Yann E. MORIN.
> ---
> package/bluez5_utils/bluez5_utils.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
> index 0634ec9f6f..395340a3e6 100644
> --- a/package/bluez5_utils/bluez5_utils.mk
> +++ b/package/bluez5_utils/bluez5_utils.mk
> @@ -116,7 +116,7 @@ define BLUEZ5_UTILS_INSTALL_INIT_SYSTEMD
> mkdir -p $(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants
> ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
> $(TARGET_DIR)/etc/systemd/system/bluetooth.target.wants/bluetooth.service
> - ln -fs ../../../../usr/lib/systemd/system/bluetooth.service \
> + ln -fs ../../../usr/lib/systemd/system/bluetooth.service \
> $(TARGET_DIR)/etc/systemd/system/dbus-org.bluez.service
> endef
>
> --
> 2.14.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly
2018-02-27 21:21 [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly Trent Piepho
2018-02-27 21:31 ` Yann E. MORIN
@ 2018-02-27 21:44 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-02-27 21:44 UTC (permalink / raw)
To: buildroot
>>>>> "Trent" == Trent Piepho <tpiepho@impinj.com> writes:
> The link in /etc/systemd/system/, named dbus-org.bluez.service, pointing to
> ../../../../usr/lib/systemd/system/bluetooth.service has one too many ".." in
> it. Likely the target was copied from the other link in
> /etc/systemd/system/bluetooth.target.wants/, which is one level deeper.
> Adjust link to be correct.
> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly
2018-02-27 21:31 ` Yann E. MORIN
@ 2018-02-27 21:56 ` Trent Piepho
0 siblings, 0 replies; 4+ messages in thread
From: Trent Piepho @ 2018-02-27 21:56 UTC (permalink / raw)
To: buildroot
On Tue, 2018-02-27 at 22:31 +0100, Yann E. MORIN wrote:
> On 2018-02-27 13:21 -0800, Trent Piepho spake thusly:
> > The link in /etc/systemd/system/, named dbus-org.bluez.service, pointing to
> > ../../../../usr/lib/systemd/system/bluetooth.service has one too many ".." in
> > it. Likely the target was copied from the other link in
> > /etc/systemd/system/bluetooth.target.wants/, which is one level deeper.
> >
> > Adjust link to be correct.
> >
> > Signed-off-by: Trent Piepho <tpiepho@impinj.com>
>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
> However, this should not have any real problem on the target: this
> succession of '..' will eventually reach / which has its own '..'
> pointing back to itself; that is /.. points to / and so everything
> should just work as expected. Only on the build machine does that have
> an impact.
>
> So, can you confirm that this is not fixing any runtime issue, but just
> making the symlink "less incorrect"?
Yes, it works on the target fs as the link bottoms out at /. It just
breaks on the build machine to look at the file or if one runs a script
looking for broken symlinks after discovering all the *.wants links are
broken...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-27 21:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 21:21 [Buildroot] [PATCH] bluez5_utils: Make systemd link correctly Trent Piepho
2018-02-27 21:31 ` Yann E. MORIN
2018-02-27 21:56 ` Trent Piepho
2018-02-27 21:44 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox