All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility
@ 2021-08-25 15:16 Gleb Mazovetskiy
  2021-08-25 20:13 ` Arnout Vandecappelle
  2021-09-07 10:07 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Gleb Mazovetskiy @ 2021-08-25 15:16 UTC (permalink / raw)
  To: buildroot; +Cc: Gleb Mazovetskiy, Bernd Kuhls

Previously, alsa-plugins would not work if alsa-utils was installed
after it. This happened because:

1. alsa-plugins copies some files $(TARGET_DIR)/usr/share/alsa/alsa.conf.d
2. alsa-utils removes these files during installation ( rm -rf $(TARGET_DIR)/usr/share/alsa/;)

The `rm -rf` command was originally added as part of the fix for
https://bugs.buildroot.org/show_bug.cgi?id=1573 11 years ago.

The intention might have been to allow for unconfiguring some options
and then rebuilding alsa-utils. However, this is a scenario that does
not work anyway.

The simplest fix for the `alsa-plugins` compatibility issue appears to
be to remove the `rm -rf` command.

Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>
---
 package/alsa-utils/alsa-utils.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index 2658c827a0..427280c1e6 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -77,7 +77,6 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
 	fi
 	if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
 		mkdir -p $(TARGET_DIR)/usr/share/; \
-		rm -rf $(TARGET_DIR)/usr/share/alsa/; \
 		cp -rdpf $(STAGING_DIR)/usr/share/alsa/ $(TARGET_DIR)/usr/share/alsa/; \
 	fi
 endef
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility
  2021-08-25 15:16 [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility Gleb Mazovetskiy
@ 2021-08-25 20:13 ` Arnout Vandecappelle
  2021-09-07 10:07 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2021-08-25 20:13 UTC (permalink / raw)
  To: Gleb Mazovetskiy, buildroot; +Cc: Bernd Kuhls



On 25/08/2021 17:16, Gleb Mazovetskiy wrote:
> Previously, alsa-plugins would not work if alsa-utils was installed
> after it. This happened because:
> 
> 1. alsa-plugins copies some files $(TARGET_DIR)/usr/share/alsa/alsa.conf.d
> 2. alsa-utils removes these files during installation ( rm -rf $(TARGET_DIR)/usr/share/alsa/;)
> 
> The `rm -rf` command was originally added as part of the fix for
> https://bugs.buildroot.org/show_bug.cgi?id=1573 11 years ago.
> 
> The intention might have been to allow for unconfiguring some options
> and then rebuilding alsa-utils. However, this is a scenario that does
> not work anyway.
> 
> The simplest fix for the `alsa-plugins` compatibility issue appears to
> be to remove the `rm -rf` command.
> 
> Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>

 Applied to master, thanks.

 Excellent commit message!

 Regards,
 Arnout

> ---
>  package/alsa-utils/alsa-utils.mk | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
> index 2658c827a0..427280c1e6 100644
> --- a/package/alsa-utils/alsa-utils.mk
> +++ b/package/alsa-utils/alsa-utils.mk
> @@ -77,7 +77,6 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
>  	fi
>  	if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
>  		mkdir -p $(TARGET_DIR)/usr/share/; \
> -		rm -rf $(TARGET_DIR)/usr/share/alsa/; \
>  		cp -rdpf $(STAGING_DIR)/usr/share/alsa/ $(TARGET_DIR)/usr/share/alsa/; \
>  	fi
>  endef
> 
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility
  2021-08-25 15:16 [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility Gleb Mazovetskiy
  2021-08-25 20:13 ` Arnout Vandecappelle
@ 2021-09-07 10:07 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-09-07 10:07 UTC (permalink / raw)
  To: Gleb Mazovetskiy; +Cc: Bernd Kuhls, buildroot

>>>>> "Gleb" == Gleb Mazovetskiy <glex.spb@gmail.com> writes:

 > Previously, alsa-plugins would not work if alsa-utils was installed
 > after it. This happened because:

 > 1. alsa-plugins copies some files $(TARGET_DIR)/usr/share/alsa/alsa.conf.d
 > 2. alsa-utils removes these files during installation ( rm -rf $(TARGET_DIR)/usr/share/alsa/;)

 > The `rm -rf` command was originally added as part of the fix for
 > https://bugs.buildroot.org/show_bug.cgi?id=1573 11 years ago.

 > The intention might have been to allow for unconfiguring some options
 > and then rebuilding alsa-utils. However, this is a scenario that does
 > not work anyway.

 > The simplest fix for the `alsa-plugins` compatibility issue appears to
 > be to remove the `rm -rf` command.

 > Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com>

Committed to 2021.02.x and 2021.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-09-07 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 15:16 [Buildroot] [PATCH 1/1] package/alsa-utils: Fix alsa-plugins compatibility Gleb Mazovetskiy
2021-08-25 20:13 ` Arnout Vandecappelle
2021-09-07 10:07 ` Peter Korsgaard

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.