tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

do-not-check-for-sys-kernel-uevent_helper.patch (975B)


      1 From 914357670ad69b2771df4b77a9d681036c8c5f1c Mon Sep 17 00:00:00 2001
      2 From: Elimar Riesebieter <riesebie@lxtec.de>
      3 Date: Fri, 13 Jan 2017 09:13:50 +0100
      4 Subject: [PATCH] do not check for /sys/kernel/uevent_helper.
      5 
      6 
      7 CONFIG_UEVENT_HELPER=y is depreacated and also not provided on stretch's Debian
      8 kernels. Skip the test for it in alsactl.
      9 
     10 ---
     11  alsactl/init_sysfs.c | 5 -----
     12  1 file changed, 5 deletions(-)
     13 
     14 Index: alsa-utils-1.1.3/alsactl/init_sysfs.c
     15 ===================================================================
     16 --- alsa-utils-1.1.3.orig/alsactl/init_sysfs.c
     17 +++ alsa-utils-1.1.3/alsactl/init_sysfs.c
     18 @@ -43,11 +43,6 @@ static int sysfs_init(void)
     19  	dbg("sysfs_path='%s'", sysfs_path);
     20  
     21  	strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test));
     22 -	strlcat(sysfs_test, "/kernel/uevent_helper", sizeof(sysfs_test));
     23 -	if (access(sysfs_test, F_OK)) {
     24 -		error("sysfs path '%s' is invalid\n", sysfs_path);
     25 -		return -errno;
     26 -	}
     27  
     28  	INIT_LIST_HEAD(&attr_list);
     29  	return 0;