Bug 14471 - alsa_utils wrong deployment
Summary: alsa_utils wrong deployment
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2021.11
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-21 20:20 UTC by htenberge
Modified: 2021-12-25 13:38 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description htenberge 2021-12-21 20:20:48 UTC
When the alsa_utils package is deployed, it deploys the /usr/share/alsa one level too deep.

Instead of having a /usr/share/alsa with several files and subdirectories, some parts are being deployed in /usr/share/alsa/alsa.

I'm not entirely what the right way is to fix this, but this simple hack fixed it:

diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index 427280c1e6..da00f07d52 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -76,8 +76,8 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
                cp -rdpf $(STAGING_DIR)/usr/share/sounds/alsa/* $(TARGET_DIR)/usr/share/sounds/alsa/; \
        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/; \
+               mkdir -p $(TARGET_DIR)/usr/share/alsa; \
+               cp -rdpf $(STAGING_DIR)/usr/share/alsa/* $(TARGET_DIR)/usr/share/alsa/; \
        fi
 endef
Comment 1 Fabrice Fontaine 2021-12-22 14:15:23 UTC
This seems to be already fixed in master by
https://git.buildroot.net/buildroot/commit/?id=6c71b52235d88cd8d38b4fd02c87f791aaa8eff3
Comment 2 htenberge 2021-12-25 13:38:49 UTC
As this is fixed in master I'll close this one.