Skip to contentSkip to conversation

package/alsa-utils: fix install rule for alsactl

PATCH Applied Khoa Hoang 3 participants 3 messages Dec 11, 2021 – Jan 15, 2022

lore
Share & tools
lore

Khoa Hoang

author
#0 lore raw

PATCH 1/1 package/alsa-utils: fix install rule for alsactl

The copy command for /usr/share/alsa missing an asterisk cause it to copy to /usr/share/alsa/alsa instead of /usr/share/alsa where it should be.

---
 package/alsa-utils/alsa-utils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/alsa-utils/alsa-utils.mk +1 -1
index 427280c1e6..2603e52f18 100644
@@ -77,7 +77,7 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
 	fi
 	if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
 		mkdir -p $(TARGET_DIR)/usr/share/; \
-		cp -rdpf $(STAGING_DIR)/usr/share/alsa/ $(TARGET_DIR)/usr/share/alsa/; \
+		cp -rdpf $(STAGING_DIR)/usr/share/alsa/* $(TARGET_DIR)/usr/share/alsa/; \
 	fi
 endef
 
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 13 lines · Khoa Hoang

The copy command for /usr/share/alsa missing an asterisk cause it to copy to /usr/share/alsa/alsa instead of /usr/share/alsa where it should be.

---
  package/alsa-utils/alsa-utils.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/alsa-utils/alsa-utils.mk +0 -0
index 427280c1e6..2603e52f18 100644

package/alsa-utils/alsa-utils.mk define ALSA_UTILS_INSTALL_TARGET_CMDS · line 80

Quoted 5 lines
package/alsa-utils/alsa-utils.mk +1 -1
@@ -77,7 +77,7 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
  	fi
  	if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
  		mkdir -p $(TARGET_DIR)/usr/share/; \
-		cp -rdpf $(STAGING_DIR)/usr/share/alsa/ $(TARGET_DIR)/usr/share/alsa/; \
+		cp -rdpf $(STAGING_DIR)/usr/share/alsa/* $(TARGET_DIR)/usr/share/alsa/; \

I was going to suggest to use -t instead. However, this pattern is already
used for two other copies above, so I guess it's OK.

Applied to master, thanks.

Regards,
Arnout

package/alsa-utils/alsa-utils.mk define ALSA_UTILS_INSTALL_TARGET_CMDS · line 83

Quoted 4 lines
package/alsa-utils/alsa-utils.mk +0 -0
  	fi
  endef
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Khoa Hoang
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Khoa" == Khoa Hoang <[email protected]> writes:

The copy command for /usr/share/alsa missing an asterisk cause it to copy to /usr/share/alsa/alsa instead of /usr/share/alsa where it should be.

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

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot