All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
@ 2021-04-15 14:42 Jean-pierre Cartal
  2021-04-19 21:28 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-pierre Cartal @ 2021-04-15 14:42 UTC (permalink / raw)
  To: buildroot

Fix dbus system socket location moved from
/var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket

Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
---
 package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/libglib2/0005-dbus-system-socket-path.patch

diff --git a/package/libglib2/0005-dbus-system-socket-path.patch b/package/libglib2/0005-dbus-system-socket-path.patch
new file mode 100644
index 0000000000..bb2ec33dc6
--- /dev/null
+++ b/package/libglib2/0005-dbus-system-socket-path.patch
@@ -0,0 +1,11 @@
+diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c libglib2-2.66.8/gio/gdbusaddress.c
+--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18 14:47:48.256693000 +0100
++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15 16:14:28.519296584 +0200
+@@ -1331,7 +1331,7 @@
+
+       if (ret == NULL)
+         {
+-          ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
+         }
+       break;
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2021-04-15 14:42 [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location Jean-pierre Cartal
@ 2021-04-19 21:28 ` Thomas Petazzoni
  2021-04-19 21:43   ` Jean-pierre Cartal
  2021-04-20  8:19   ` Norbert Lange
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2021-04-19 21:28 UTC (permalink / raw)
  To: buildroot

Hello Jean-Pierre,

+Norbert in Cc, since he changed the DBus socket location in commit
6b9a75a5bd1b1a559b7352003588d1461de8c4d1.

On Thu, 15 Apr 2021 16:42:26 +0200
Jean-pierre Cartal <jpcartal@free.fr> wrote:

> Fix dbus system socket location moved from
> /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
> 
> Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
> ---
>  package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>  create mode 100644 package/libglib2/0005-dbus-system-socket-path.patch
> 
> diff --git a/package/libglib2/0005-dbus-system-socket-path.patch b/package/libglib2/0005-dbus-system-socket-path.patch
> new file mode 100644
> index 0000000000..bb2ec33dc6
> --- /dev/null
> +++ b/package/libglib2/0005-dbus-system-socket-path.patch
> @@ -0,0 +1,11 @@
> +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c libglib2-2.66.8/gio/gdbusaddress.c
> +--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18 14:47:48.256693000 +0100
> ++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15 16:14:28.519296584 +0200
> +@@ -1331,7 +1331,7 @@
> +
> +       if (ret == NULL)
> +         {
> +-          ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
> ++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
> +         }
> +       break;

On the form, all patches in Buildroot need to have a proper commit
description and Signed-off-by line.

But on the actual content, I am wondering if this is the right
direction to take. Do we want to keep this non-upstreamable patch
around forever ?

According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
is supposed to be a symlink to /run, so your patch should be a no-op.
Both our systemd and sysv skeletons ensure this symlink exist.

Could you provide more details about the issue ?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2021-04-19 21:28 ` Thomas Petazzoni
@ 2021-04-19 21:43   ` Jean-pierre Cartal
  2021-04-20  7:09     ` jean-pierre cartal
  2021-04-20  8:19   ` Norbert Lange
  1 sibling, 1 reply; 7+ messages in thread
From: Jean-pierre Cartal @ 2021-04-19 21:43 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

We recently moved to the new 2021.02.x LTS version from previous 2020.02.x LTS version.

While testing this new branch we discovered that we could not connect to dbus anymore when using libglib2 because the dbus socket location changed from /var/run to /run.

I'll double check tomorrow but I'm quite sure that those are 2 distinct directories and not a symlink in our builds.

Regards

Le 19 avril 2021 23:28:10 GMT+02:00, Thomas Petazzoni <thomas.petazzoni@bootlin.com> a ?crit :
>Hello Jean-Pierre,
>
>+Norbert in Cc, since he changed the DBus socket location in commit
>6b9a75a5bd1b1a559b7352003588d1461de8c4d1.
>
>On Thu, 15 Apr 2021 16:42:26 +0200
>Jean-pierre Cartal <jpcartal@free.fr> wrote:
>
>> Fix dbus system socket location moved from
>> /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
>> 
>> Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
>> ---
>>  package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
>>  1 file changed, 11 insertions(+)
>>  create mode 100644
>package/libglib2/0005-dbus-system-socket-path.patch
>> 
>> diff --git a/package/libglib2/0005-dbus-system-socket-path.patch
>b/package/libglib2/0005-dbus-system-socket-path.patch
>> new file mode 100644
>> index 0000000000..bb2ec33dc6
>> --- /dev/null
>> +++ b/package/libglib2/0005-dbus-system-socket-path.patch
>> @@ -0,0 +1,11 @@
>> +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c
>libglib2-2.66.8/gio/gdbusaddress.c
>> +--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18
>14:47:48.256693000 +0100
>> ++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15
>16:14:28.519296584 +0200
>> +@@ -1331,7 +1331,7 @@
>> +
>> +       if (ret == NULL)
>> +         {
>> +-          ret = g_strdup
>("unix:path=/var/run/dbus/system_bus_socket");
>> ++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
>> +         }
>> +       break;
>
>On the form, all patches in Buildroot need to have a proper commit
>description and Signed-off-by line.
>
>But on the actual content, I am wondering if this is the right
>direction to take. Do we want to keep this non-upstreamable patch
>around forever ?
>
>According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
>is supposed to be a symlink to /run, so your patch should be a no-op.
>Both our systemd and sysv skeletons ensure this symlink exist.
>
>Could you provide more details about the issue ?
>
>Thomas
>-- 
>Thomas Petazzoni, co-owner and CEO, Bootlin
>Embedded Linux and Kernel engineering
>https://bootlin.com
>_______________________________________________
>buildroot mailing list
>buildroot at busybox.net
>http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210419/c93e1d03/attachment.html>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2021-04-19 21:43   ` Jean-pierre Cartal
@ 2021-04-20  7:09     ` jean-pierre cartal
  0 siblings, 0 replies; 7+ messages in thread
From: jean-pierre cartal @ 2021-04-20  7:09 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

After further checking, I realized that because of historical reasons 
we've been mounting a tmpfs directory on top on /var as part of the boot 
process, hence loosing the /var/run -> /run link in the process.

Sorry for the erroneous patch.

Regards
Le 19/04/2021 ? 23:43, Jean-pierre Cartal a ?crit?:
> Hello Thomas,
>
> We recently moved to the new 2021.02.x LTS version from previous 
> 2020.02.x LTS version.
>
> While testing this new branch we discovered that we could not connect 
> to dbus anymore when using libglib2 because the dbus socket location 
> changed from /var/run to /run.
>
> I'll double check tomorrow but I'm quite sure that those are 2 
> distinct directories and not a symlink in our builds.
>
> Regards
>
> Le 19 avril 2021 23:28:10 GMT+02:00, Thomas Petazzoni 
> <thomas.petazzoni@bootlin.com> a ?crit :
>
>     Hello Jean-Pierre,
>
>     +Norbert in Cc, since he changed the DBus socket location in commit
>     6b9a75a5bd1b1a559b7352003588d1461de8c4d1.
>
>     On Thu, 15 Apr 2021 16:42:26 +0200
>     Jean-pierre Cartal <jpcartal@free.fr> wrote:
>
>         Fix dbus system socket location moved from
>         /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
>         Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
>         ------------------------------------------------------------------------
>         package/libglib2/0005-dbus-system-socket-path.patch | 11
>         +++++++++++ 1 file changed, 11 insertions(+) create mode
>         100644 package/libglib2/0005-dbus-system-socket-path.patch
>         diff --git
>         a/package/libglib2/0005-dbus-system-socket-path.patch
>         b/package/libglib2/0005-dbus-system-socket-path.patch new file
>         mode 100644 index 0000000000..bb2ec33dc6 --- /dev/null +++
>         b/package/libglib2/0005-dbus-system-socket-path.patch @@ -0,0
>         +1,11 @@ +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c
>         libglib2-2.66.8/gio/gdbusaddress.c +---
>         libglib2-2.66.8.orig/gio/gdbusaddress.c 2021-03-18
>         14:47:48.256693000 +0100 ++++
>         libglib2-2.66.8/gio/gdbusaddress.c 2021-04-15
>         16:14:28.519296584 +0200 +@@ -1331,7 +1331,7 @@ + + if (ret ==
>         NULL) + { +- ret = g_strdup
>         ("unix:path=/var/run/dbus/system_bus_socket"); ++ ret =
>         g_strdup ("unix:path=/run/dbus/system_bus_socket"); + } + break; 
>
>
>     On the form, all patches in Buildroot need to have a proper commit
>     description and Signed-off-by line.
>
>     But on the actual content, I am wondering if this is the right
>     direction to take. Do we want to keep this non-upstreamable patch
>     around forever ?
>
>     According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
>     is supposed to be a symlink to /run, so your patch should be a no-op.
>     Both our systemd and sysv skeletons ensure this symlink exist.
>
>     Could you provide more details about the issue ?
>
>     Thomas
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2021-04-19 21:28 ` Thomas Petazzoni
  2021-04-19 21:43   ` Jean-pierre Cartal
@ 2021-04-20  8:19   ` Norbert Lange
  2022-07-24  9:20     ` Romain Naour
  1 sibling, 1 reply; 7+ messages in thread
From: Norbert Lange @ 2021-04-20  8:19 UTC (permalink / raw)
  To: buildroot

Am Mo., 19. Apr. 2021 um 23:28 Uhr schrieb Thomas Petazzoni
<thomas.petazzoni@bootlin.com>:
>
> Hello Jean-Pierre,
>
> +Norbert in Cc, since he changed the DBus socket location in commit
> 6b9a75a5bd1b1a559b7352003588d1461de8c4d1.
>
> On Thu, 15 Apr 2021 16:42:26 +0200
> Jean-pierre Cartal <jpcartal@free.fr> wrote:
>
> > Fix dbus system socket location moved from
> > /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
> >
> > Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
> > ---
> >  package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
> >  1 file changed, 11 insertions(+)
> >  create mode 100644 package/libglib2/0005-dbus-system-socket-path.patch
> >
> > diff --git a/package/libglib2/0005-dbus-system-socket-path.patch b/package/libglib2/0005-dbus-system-socket-path.patch
> > new file mode 100644
> > index 0000000000..bb2ec33dc6
> > --- /dev/null
> > +++ b/package/libglib2/0005-dbus-system-socket-path.patch
> > @@ -0,0 +1,11 @@
> > +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c libglib2-2.66.8/gio/gdbusaddress.c
> > +--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18 14:47:48.256693000 +0100
> > ++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15 16:14:28.519296584 +0200
> > +@@ -1331,7 +1331,7 @@
> > +
> > +       if (ret == NULL)
> > +         {
> > +-          ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
> > ++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
> > +         }
> > +       break;
>
> On the form, all patches in Buildroot need to have a proper commit
> description and Signed-off-by line.
>
> But on the actual content, I am wondering if this is the right
> direction to take. Do we want to keep this non-upstreamable patch
> around forever ?

why non-upstreamable?
All the modern build systems like CMake [1] and Autotools [2] have a
"runstatedir", would
be good practice to use it. Dont see why this shouldn't be fixed upstream.

(Might be a good idea if buildroot could set the runstatedir for CMake
and Autotools, but its a bit of a hassle to check if the later
supports the argument)

> According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
> is supposed to be a symlink to /run, so your patch should be a no-op.
> Both our systemd and sysv skeletons ensure this symlink exist.
>
> Could you provide more details about the issue ?

To quote FHS 3.15:
"The purposes of this directory were once served by /var/run. In
general, programs may continue to use /var/run to fulfill the
requirements set out for /run for the purposes of backwards
compatibility. Programs which have migrated to use /run should cease
their usage of /var/run, except as noted in the section on /var/run."

if you use /run you should do so consistently, /var/run symlink is a
bandaid. if you want a technical reason, think of / being a tmpfs and
/var being a NFS mount,
you don't want to traverse /var if you dont have to.

Norbert

[1] - https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
[2] - https://www.gnu.org/prep/standards/html_node/Directory-Variables.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2021-04-20  8:19   ` Norbert Lange
@ 2022-07-24  9:20     ` Romain Naour
  2022-07-24 10:35       ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Romain Naour @ 2022-07-24  9:20 UTC (permalink / raw)
  To: Norbert Lange, Thomas Petazzoni
  Cc: Jean-pierre Cartal, Fabrice Fontaine, buildroot

Hello,

Le 20/04/2021 à 10:19, Norbert Lange a écrit :
> Am Mo., 19. Apr. 2021 um 23:28 Uhr schrieb Thomas Petazzoni
> <thomas.petazzoni@bootlin.com>:
>>
>> Hello Jean-Pierre,
>>
>> +Norbert in Cc, since he changed the DBus socket location in commit
>> 6b9a75a5bd1b1a559b7352003588d1461de8c4d1.
>>
>> On Thu, 15 Apr 2021 16:42:26 +0200
>> Jean-pierre Cartal <jpcartal@free.fr> wrote:
>>
>>> Fix dbus system socket location moved from
>>> /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
>>>
>>> Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
>>> ---
>>>  package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
>>>  1 file changed, 11 insertions(+)
>>>  create mode 100644 package/libglib2/0005-dbus-system-socket-path.patch
>>>
>>> diff --git a/package/libglib2/0005-dbus-system-socket-path.patch b/package/libglib2/0005-dbus-system-socket-path.patch
>>> new file mode 100644
>>> index 0000000000..bb2ec33dc6
>>> --- /dev/null
>>> +++ b/package/libglib2/0005-dbus-system-socket-path.patch
>>> @@ -0,0 +1,11 @@
>>> +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c libglib2-2.66.8/gio/gdbusaddress.c
>>> +--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18 14:47:48.256693000 +0100
>>> ++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15 16:14:28.519296584 +0200
>>> +@@ -1331,7 +1331,7 @@
>>> +
>>> +       if (ret == NULL)
>>> +         {
>>> +-          ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
>>> ++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
>>> +         }
>>> +       break;
>>
>> On the form, all patches in Buildroot need to have a proper commit
>> description and Signed-off-by line.
>>
>> But on the actual content, I am wondering if this is the right
>> direction to take. Do we want to keep this non-upstreamable patch
>> around forever ?
> 
> why non-upstreamable?
> All the modern build systems like CMake [1] and Autotools [2] have a
> "runstatedir", would
> be good practice to use it. Dont see why this shouldn't be fixed upstream.
> 
> (Might be a good idea if buildroot could set the runstatedir for CMake
> and Autotools, but its a bit of a hassle to check if the later
> supports the argument)
> 
>> According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
>> is supposed to be a symlink to /run, so your patch should be a no-op.
>> Both our systemd and sysv skeletons ensure this symlink exist.
>>
>> Could you provide more details about the issue ?
> 
> To quote FHS 3.15:
> "The purposes of this directory were once served by /var/run. In
> general, programs may continue to use /var/run to fulfill the
> requirements set out for /run for the purposes of backwards
> compatibility. Programs which have migrated to use /run should cease
> their usage of /var/run, except as noted in the section on /var/run."
> 
> if you use /run you should do so consistently, /var/run symlink is a
> bandaid. if you want a technical reason, think of / being a tmpfs and
> /var being a NFS mount,
> you don't want to traverse /var if you dont have to.

I have marked this patch as "Rejected" in patchwork.

upstream libglib2 still use /var/run to connect with the dbus system socket.

Best regards,
Romain


> 
> Norbert
> 
> [1] - https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
> [2] - https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location
  2022-07-24  9:20     ` Romain Naour
@ 2022-07-24 10:35       ` Arnout Vandecappelle
  0 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2022-07-24 10:35 UTC (permalink / raw)
  To: Romain Naour, Norbert Lange, Thomas Petazzoni
  Cc: buildroot, Fabrice Fontaine, Jean-pierre Cartal



On 24/07/2022 11:20, Romain Naour wrote:
> Hello,
> 
> Le 20/04/2021 à 10:19, Norbert Lange a écrit :
>> Am Mo., 19. Apr. 2021 um 23:28 Uhr schrieb Thomas Petazzoni
>> <thomas.petazzoni@bootlin.com>:
>>>
>>> Hello Jean-Pierre,
>>>
>>> +Norbert in Cc, since he changed the DBus socket location in commit
>>> 6b9a75a5bd1b1a559b7352003588d1461de8c4d1.
>>>
>>> On Thu, 15 Apr 2021 16:42:26 +0200
>>> Jean-pierre Cartal <jpcartal@free.fr> wrote:
>>>
>>>> Fix dbus system socket location moved from
>>>> /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket
>>>>
>>>> Signed-off-by: Jean-pierre Cartal <jpcartal@free.fr>
>>>> ---
>>>>   package/libglib2/0005-dbus-system-socket-path.patch | 11 +++++++++++
>>>>   1 file changed, 11 insertions(+)
>>>>   create mode 100644 package/libglib2/0005-dbus-system-socket-path.patch
>>>>
>>>> diff --git a/package/libglib2/0005-dbus-system-socket-path.patch b/package/libglib2/0005-dbus-system-socket-path.patch
>>>> new file mode 100644
>>>> index 0000000000..bb2ec33dc6
>>>> --- /dev/null
>>>> +++ b/package/libglib2/0005-dbus-system-socket-path.patch
>>>> @@ -0,0 +1,11 @@
>>>> +diff -Naur libglib2-2.66.8.orig/gio/gdbusaddress.c libglib2-2.66.8/gio/gdbusaddress.c
>>>> +--- libglib2-2.66.8.orig/gio/gdbusaddress.c     2021-03-18 14:47:48.256693000 +0100
>>>> ++++ libglib2-2.66.8/gio/gdbusaddress.c  2021-04-15 16:14:28.519296584 +0200
>>>> +@@ -1331,7 +1331,7 @@
>>>> +
>>>> +       if (ret == NULL)
>>>> +         {
>>>> +-          ret = g_strdup ("unix:path=/var/run/dbus/system_bus_socket");
>>>> ++          ret = g_strdup ("unix:path=/run/dbus/system_bus_socket");
>>>> +         }
>>>> +       break;
>>>
>>> On the form, all patches in Buildroot need to have a proper commit
>>> description and Signed-off-by line.
>>>
>>> But on the actual content, I am wondering if this is the right
>>> direction to take. Do we want to keep this non-upstreamable patch
>>> around forever ?
>>
>> why non-upstreamable?
>> All the modern build systems like CMake [1] and Autotools [2] have a
>> "runstatedir", would
>> be good practice to use it. Dont see why this shouldn't be fixed upstream.
>>
>> (Might be a good idea if buildroot could set the runstatedir for CMake
>> and Autotools, but its a bit of a hassle to check if the later
>> supports the argument)
>>
>>> According to commit 6b9a75a5bd1b1a559b7352003588d1461de8c4d1, /var/run
>>> is supposed to be a symlink to /run, so your patch should be a no-op.
>>> Both our systemd and sysv skeletons ensure this symlink exist.
>>>
>>> Could you provide more details about the issue ?
>>
>> To quote FHS 3.15:
>> "The purposes of this directory were once served by /var/run. In
>> general, programs may continue to use /var/run to fulfill the
>> requirements set out for /run for the purposes of backwards
>> compatibility. Programs which have migrated to use /run should cease
>> their usage of /var/run, except as noted in the section on /var/run."
>>
>> if you use /run you should do so consistently, /var/run symlink is a
>> bandaid. if you want a technical reason, think of / being a tmpfs and
>> /var being a NFS mount,
>> you don't want to traverse /var if you dont have to.
> 
> I have marked this patch as "Rejected" in patchwork.
> 
> upstream libglib2 still use /var/run to connect with the dbus system socket.

  IMO this patch is something that should be fixed upstream first, and we take 
it in Buildroot when we bump the libglib2 version.

  Regards,
  Arnout

> 
> Best regards,
> Romain
> 
> 
>>
>> Norbert
>>
>> [1] - https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
>> [2] - https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
>> _______________________________________________
>> buildroot mailing list
>> buildroot@busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-24 10:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 14:42 [Buildroot] [PATCH 1/1] package/libglib2: fix dbus system socket location Jean-pierre Cartal
2021-04-19 21:28 ` Thomas Petazzoni
2021-04-19 21:43   ` Jean-pierre Cartal
2021-04-20  7:09     ` jean-pierre cartal
2021-04-20  8:19   ` Norbert Lange
2022-07-24  9:20     ` Romain Naour
2022-07-24 10:35       ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.