All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/udisks: add config option to support mounting in, /media
@ 2022-11-08 17:22 Wolfgang Grandegger
  2022-11-09 22:10 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Grandegger @ 2022-11-08 17:22 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Marek Belisko

Support mounting in /media instead of /run/media for compatibility
with the Filesystem Hierarchy Standard (FHS). This is also required
for backward compatibility with udisks1.
---
  package/udisks/Config.in | 10 ++++++++++
  package/udisks/udisks.mk |  4 ++++
  2 files changed, 14 insertions(+)

diff --git a/package/udisks/Config.in b/package/udisks/Config.in
index 4804c0eba0..480d988857 100644
--- a/package/udisks/Config.in
+++ b/package/udisks/Config.in
@@ -49,3 +49,13 @@ comment "udisks needs a toolchain with dynamic library, locale, wchar, threads,
  
  comment "udisks can't be built with Optimize for fast"
  	depends on BR2_OPTIMIZE_FAST
+
+if BR2_PACKAGE_UDISKS
+
+config BR2_PACKAGE_UDISKS_FHS_MEDIA
+	bool "Mount devices in /media instead of /run/media"
+	help
+	  Support mounting in /media for compatibility with the
+	  Filesystem Hierarchy Standard (FHS)
+
+endif
diff --git a/package/udisks/udisks.mk b/package/udisks/udisks.mk
index 2bf519a2cc..91328effba 100644
--- a/package/udisks/udisks.mk
+++ b/package/udisks/udisks.mk
@@ -39,4 +39,8 @@ UDISKS_CONF_OPTS = \
  	--disable-vdo \
  	--disable-zram
  
+ifeq ($(BR2_PACKAGE_UDISKS_FHS_MEDIA),y)
+UDISKS_CONF_OPTS += --enable-fhs-media
+endif
+
  $(eval $(autotools-package))
-- 
2.30.2

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

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

* Re: [Buildroot] [PATCH] package/udisks: add config option to support mounting in, /media
  2022-11-08 17:22 [Buildroot] [PATCH] package/udisks: add config option to support mounting in, /media Wolfgang Grandegger
@ 2022-11-09 22:10 ` Thomas Petazzoni via buildroot
  2022-11-10  8:11   ` Wolfgang Grandegger
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-09 22:10 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Giulio Benetti, Marek Belisko, buildroot

Hello Wolfgang,

On Tue, 8 Nov 2022 18:22:03 +0100
Wolfgang Grandegger <wg@grandegger.com> wrote:

> Support mounting in /media instead of /run/media for compatibility
> with the Filesystem Hierarchy Standard (FHS). This is also required
> for backward compatibility with udisks1.

Could you resend with your Signed-off-by: line? Also see below another
comment.

>   comment "udisks can't be built with Optimize for fast"
>   	depends on BR2_OPTIMIZE_FAST
> +
> +if BR2_PACKAGE_UDISKS
> +
> +config BR2_PACKAGE_UDISKS_FHS_MEDIA
> +	bool "Mount devices in /media instead of /run/media"
> +	help
> +	  Support mounting in /media for compatibility with the
> +	  Filesystem Hierarchy Standard (FHS)
> +
> +endif
> diff --git a/package/udisks/udisks.mk b/package/udisks/udisks.mk
> index 2bf519a2cc..91328effba 100644
> --- a/package/udisks/udisks.mk
> +++ b/package/udisks/udisks.mk
> @@ -39,4 +39,8 @@ UDISKS_CONF_OPTS = \
>   	--disable-vdo \
>   	--disable-zram
>   
> +ifeq ($(BR2_PACKAGE_UDISKS_FHS_MEDIA),y)
> +UDISKS_CONF_OPTS += --enable-fhs-media

Could you add:

else
UDISKS_CONF_OPTS += --disable-fhs-media

So that we are explicit about what happens when the option is disabled?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/udisks: add config option to support mounting in, /media
  2022-11-09 22:10 ` Thomas Petazzoni via buildroot
@ 2022-11-10  8:11   ` Wolfgang Grandegger
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Grandegger @ 2022-11-10  8:11 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

I just sent v3  (v2 has a typo in the subject).
Hope it's OK now!

Thanks,

Wolfgang

On 09.11.22 23:10, Thomas Petazzoni via buildroot wrote:
> Hello Wolfgang,
> 
> On Tue, 8 Nov 2022 18:22:03 +0100
> Wolfgang Grandegger <wg@grandegger.com> wrote:
> 
>> Support mounting in /media instead of /run/media for compatibility
>> with the Filesystem Hierarchy Standard (FHS). This is also required
>> for backward compatibility with udisks1.
> 
> Could you resend with your Signed-off-by: line? Also see below another
> comment.
> 
>>    comment "udisks can't be built with Optimize for fast"
>>    	depends on BR2_OPTIMIZE_FAST
>> +
>> +if BR2_PACKAGE_UDISKS
>> +
>> +config BR2_PACKAGE_UDISKS_FHS_MEDIA
>> +	bool "Mount devices in /media instead of /run/media"
>> +	help
>> +	  Support mounting in /media for compatibility with the
>> +	  Filesystem Hierarchy Standard (FHS)
>> +
>> +endif
>> diff --git a/package/udisks/udisks.mk b/package/udisks/udisks.mk
>> index 2bf519a2cc..91328effba 100644
>> --- a/package/udisks/udisks.mk
>> +++ b/package/udisks/udisks.mk
>> @@ -39,4 +39,8 @@ UDISKS_CONF_OPTS = \
>>    	--disable-vdo \
>>    	--disable-zram
>>    
>> +ifeq ($(BR2_PACKAGE_UDISKS_FHS_MEDIA),y)
>> +UDISKS_CONF_OPTS += --enable-fhs-media
> 
> Could you add:
> 
> else
> UDISKS_CONF_OPTS += --disable-fhs-media
> 
> So that we are explicit about what happens when the option is disabled?
> 
> Thanks!
> 
> Thomas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-11-10  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 17:22 [Buildroot] [PATCH] package/udisks: add config option to support mounting in, /media Wolfgang Grandegger
2022-11-09 22:10 ` Thomas Petazzoni via buildroot
2022-11-10  8:11   ` Wolfgang Grandegger

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.