alsa-utils 1.0.27.1 still ships 90-alsa-restore.rules
PATCH 1/1 alsa-utils 1.0.27.1 still ships 90-alsa-restore.rules
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ball
but it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1
Thanks
--- alsactl/90-alsa-restore.rules.in | 8 -------- alsactl/Makefile.am | 5 ----- 2 files changed, 13 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
@@ -1,8 +0,0 @@ -ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go" -GOTO="alsa_restore_end" - -LABEL="alsa_restore_go" -TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}" -TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}" - -LABEL="alsa_restore_end"
alsactl/Makefile.am +0 -5
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\" noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c -udevrules_DATA = \ - 90-alsa-restore.rules if HAVE_SYSTEMD
@@ -49,20 +47,17 @@ alsa-restore.service: alsa-restore.service.in alsa-store.service: alsa-store.service.in $(edit) -90-alsa-restore.rules: 90-alsa-restore.rules.in $(edit) EXTRA_DIST += \ alsa-state.service.in \ alsa-restore.service.in \ alsa-store.service.in \ - 90-alsa-restore.rules.in CLEANFILES = \ alsa-state.service \ alsa-restore.service \ alsa-store.service \ - 90-alsa-restore.rules %.7: %.xml xmlto man $?
Quoted 10 lines · Elimar Riesebieter
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ballbut it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1
[...]
Quoted 2 lines
-90-alsa-restore.rules: 90-alsa-restore.rules.in
$(edit)
^^^^^^^^
Should be removed as well
Thanks
Elimar
--- alsactl/90-alsa-restore.rules.in | 8 -------- alsactl/Makefile.am | 7 ------- 2 files changed, 15 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
@@ -1,8 +0,0 @@ -ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go" -GOTO="alsa_restore_end" - -LABEL="alsa_restore_go" -TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}" -TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}" - -LABEL="alsa_restore_end"
alsactl/Makefile.am +0 -7
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\" noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c -udevrules_DATA = \ - 90-alsa-restore.rules if HAVE_SYSTEMD
@@ -49,20 +47,15 @@ alsa-restore.service: alsa-restore.service.in alsa-store.service: alsa-store.service.in $(edit) -90-alsa-restore.rules: 90-alsa-restore.rules.in - $(edit) - EXTRA_DIST += \ alsa-state.service.in \ alsa-restore.service.in \ alsa-store.service.in \ - 90-alsa-restore.rules.in CLEANFILES = \ alsa-state.service \ alsa-restore.service \ alsa-store.service \ - 90-alsa-restore.rules %.7: %.xml xmlto man $?
Quoted 10 lines · Elimar Riesebieter
Quoted 8 lines · Elimar Riesebieter
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ballbut it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
Quoted 7 lines
Quoted 2 lines
[0] http://www.alsa-project.org/main/index.php/Changes_v1.0.27_v1.0.27.1
[...]
Quoted 2 lines
-90-alsa-restore.rules: 90-alsa-restore.rules.in
$(edit)^^^^^^^^
Should be removed as well
Forgot two backslashes...
--- alsactl/90-alsa-restore.rules.in | 8 -------- alsactl/Makefile.am | 11 ++--------- 2 files changed, 2 insertions(+), 17 deletions(-)
alsactl/90-alsa-restore.rules.in deleted +0 -8
@@ -1,8 +0,0 @@ -ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go" -GOTO="alsa_restore_end" - -LABEL="alsa_restore_go" -TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}" -TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}" - -LABEL="alsa_restore_end"
alsactl/Makefile.am +2 -9
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\" noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c -udevrules_DATA = \ - 90-alsa-restore.rules if HAVE_SYSTEMD
@@ -49,20 +47,15 @@ alsa-restore.service: alsa-restore.service.in alsa-store.service: alsa-store.service.in $(edit) -90-alsa-restore.rules: 90-alsa-restore.rules.in - $(edit) - EXTRA_DIST += \ alsa-state.service.in \ alsa-restore.service.in \ - alsa-store.service.in \ - 90-alsa-restore.rules.in + alsa-store.service.in CLEANFILES = \ alsa-state.service \ alsa-restore.service \ - alsa-store.service \ - 90-alsa-restore.rules + alsa-store.service %.7: %.xml xmlto man $?
Quoted 8 lines · Elimar Riesebieter
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ballbut it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
It's correct. The rules file should be generated after configure/make with correct paths.
It's not a complete removal of this feature. You probably miss this fix:
Jaroslav
Signature · 3 lines
Jaroslav Kysela <[email protected]> Linux Kernel Sound Maintainer ALSA Project; Red Hat, Inc.
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Elimar Riesebieter
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ballbut it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
Quoted 6 lines
It's correct. The rules file should be generated after configure/make with correct paths.
It's not a complete removal of this feature. You probably miss this fix:
Well, it is useless when EPREFIX (i.e /usr) isn't mounted while udev runs? It should be better to restore mixer settings by an initscript.
Elimar
Signature · 2 lines
On the keyboard of life you have always to keep a finger at the escape key;-)
Quoted 12 lines · Elimar Riesebieter
Quoted 10 lines · Jaroslav Kysela
Quoted 8 lines · Elimar Riesebieter
Hi all,
[0] tells:
alsactl: remove 90-alsa-restore.rules from the tar ballbut it still ships 90-alsa-restore.rules.in and installs the file as 90-alsa-restore.rules
Quoted 8 lines
Quoted 6 lines
It's correct. The rules file should be generated after configure/make with correct paths.
It's not a complete removal of this feature. You probably miss this fix:
Well, it is useless when EPREFIX (i.e /usr) isn't mounted while udev runs?
The distro should handle this situation.
Quoted 1 line
It should be better to restore mixer settings by an initscript.
It does not work for plug and play devices.
Jaroslav
Signature · 3 lines
Jaroslav Kysela <[email protected]> Linux Kernel Sound Maintainer ALSA Project; Red Hat, Inc.