rpms/alsa-utils/devel alsa-utils-1.0.18-alsaconf.patch, NONE, 1.1 alsactl-fix-card-parsing.patch, NONE, 1.1 alsa-utils.spec, 1.71, 1.72 alsa.rules, 1.4, 1.5 alsaunmute, 1.1, 1.2 alsa-utils-1.0.17-alsaconf.patch, 1.1, NONE

Jaroslav Kysela perex at fedoraproject.org
Thu Sep 11 11:54:39 UTC 2008


Author: perex

Update of /cvs/pkgs/rpms/alsa-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26722

Modified Files:
	alsa-utils.spec alsa.rules alsaunmute 
Added Files:
	alsa-utils-1.0.18-alsaconf.patch 
	alsactl-fix-card-parsing.patch 
Removed Files:
	alsa-utils-1.0.17-alsaconf.patch 
Log Message:
alsa-utils: more cleanups for 1.0.18rc3

alsa-utils-1.0.18-alsaconf.patch:

--- NEW FILE alsa-utils-1.0.18-alsaconf.patch ---
--- alsa-utils-1.0.18rc3/Makefile.am.orig	2008-09-09 19:50:28.000000000 +0200
+++ alsa-utils-1.0.18rc3/Makefile.am	2008-09-11 11:18:01.000000000 +0200
@@ -4,7 +4,7 @@ ALSAMIXER_DIR=alsamixer
 else
 ALSAMIXER_DIR=
 endif
-SUBDIRS= include alsactl alsaconf $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
+SUBDIRS= include alsactl $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
 EXTRA_DIST= config.rpath  TODO gitcompile
 AUTOMAKE_OPTIONS=foreign
 ACLOCAL_AMFLAGS = -I m4
--- alsa-utils-1.0.18rc3/Makefile.in.orig	2008-09-11 11:17:52.000000000 +0200
+++ alsa-utils-1.0.18rc3/Makefile.in	2008-09-11 11:17:52.000000000 +0200
@@ -65,7 +65,7 @@ RECURSIVE_TARGETS = all-recursive check-
 	uninstall-recursive
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = include alsactl alsaconf alsamixer amidi amixer aplay \
+DIST_SUBDIRS = include alsactl alsamixer amidi amixer aplay \
 	iecset seq speaker-test utils m4 po
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
@@ -197,7 +197,7 @@ target_alias = @target_alias@
 INCLUDES = -I$(top_srcdir)/include
 @ALSAMIXER_FALSE at ALSAMIXER_DIR = 
 @ALSAMIXER_TRUE at ALSAMIXER_DIR = alsamixer
-SUBDIRS = include alsactl alsaconf $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
+SUBDIRS = include alsactl $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
 EXTRA_DIST = config.rpath  TODO gitcompile
 AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4

alsactl-fix-card-parsing.patch:

--- NEW FILE alsactl-fix-card-parsing.patch ---
>From 0a8e8d581e5df6f1b13ea009fcdd77c6afcbdc43 Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex at perex.cz>
Date: Thu, 11 Sep 2008 13:39:42 +0200
Subject: [PATCH] alsactl: Fix oops (when parsing card argument)

Signed-off-by: Jaroslav Kysela <perex at perex.cz>
---
 alsactl/alsactl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c
index 6728fbc..57957bf 100644
--- a/alsactl/alsactl.c
+++ b/alsactl/alsactl.c
@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
 	}
 
 	cardname = argc - optind > 1 ? argv[optind + 1] : NULL;
-	for (tmp = devfiles; cardname != NULL && tmp != NULL; tmp++) {
+	for (tmp = devfiles; cardname != NULL && *tmp != NULL; tmp++) {
 		int len = strlen(*tmp);
 		if (!strncmp(cardname, *tmp, len)) {
 			long l = strtol(cardname + len, NULL, 0);
-- 
1.6.0.GIT



Index: alsa-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/alsa-utils/devel/alsa-utils.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- alsa-utils.spec	11 Sep 2008 09:03:42 -0000	1.71
+++ alsa-utils.spec	11 Sep 2008 11:54:09 -0000	1.72
@@ -13,11 +13,13 @@
 Source6: alsa-info.sh
 Source10: alsa.rules
 Source11: alsactl.conf
-Patch0:  alsa-utils-1.0.17-alsaconf.patch
+Patch0:  alsa-utils-1.0.18-alsaconf.patch
+Patch1:  alsactl-fix-card-parsing.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: alsa-lib-devel >= %{version}
 BuildRequires: ncurses-devel
 BuildRequires: gettext-devel
+BuildRequires: xmlto
 Conflicts: udev < 062
 
 %description
@@ -27,11 +29,12 @@
 %prep
 %setup -q -n %{name}-%{version}%{?prever}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --sbindir=/sbin
 %{__make} %{?_smp_mflags}
-%{__cp} %{SOURCE5} .
+%{__cp} %{SOURCE4} .
 
 %install
 %{__rm} -rf $RPM_BUILD_ROOT
@@ -50,13 +53,20 @@
 mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
 ln -s ../../sbin/alsactl $RPM_BUILD_ROOT/%{_sbindir}/alsactl
 
+# Move /usr/share/alsa/init to /lib/alsa/init
+mkdir -p -m 755 %{buildroot}/%{_lib}/alsa
+mv %{buildroot}%{_datadir}/alsa/init %{buildroot}/%{_lib}/alsa
+
+# Link /lib/alsa/init to /usr/share/alsa/init back
+ln -s ../../../lib/alsa/init %{buildroot}%{_datadir}/alsa/init
+
 # Create a place for global configuration
-mkdir -p -m 755 $RPM_BUILD_ROOT/etc/alsa
-install -p -m 644 alsactl.conf %{buildroot}/etc/alsa
-touch $RPM_BUILD_ROOT/etc/asound.state
+mkdir -p -m 755 %{buildroot}/etc/alsa
+install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa
+touch %{buildroot}/etc/asound.state
 
 # Install alsa-info.sh script
-install -p -m 755 %{SOURCE6} $RPM_BUILD_ROOT/usr/bin/alsa-info
+install -p -m 755 %{SOURCE6} %{buildroot}/usr/bin/alsa-info
 
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
@@ -68,6 +78,7 @@
 %config /etc/alsa/*
 /bin/*
 /sbin/*
+/%{_lib}/alsa/init/*
 %{_bindir}/*
 %{_sbindir}/*
 %{_datadir}/alsa/


Index: alsa.rules
===================================================================
RCS file: /cvs/pkgs/rpms/alsa-utils/devel/alsa.rules,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- alsa.rules	11 Sep 2008 09:03:42 -0000	1.4
+++ alsa.rules	11 Sep 2008 11:54:09 -0000	1.5
@@ -1,4 +1,4 @@
 ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", \
-  ENV{ALSA_CONFIG_PATH}="/etc/alsa/alsactl.conf", RUN+="/sbin/alsactl restore $name"
+  RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore $name"
 ACTION=="remove", SUBSYSTEM=="sound", KERNEL=="controlC*", \
-  ENV{ALSA_CONFIG_PATH}="/etc/alsa/alsactl.conf", RUN+="/sbin/alsactl store $name"
+  RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store $name"


Index: alsaunmute
===================================================================
RCS file: /cvs/pkgs/rpms/alsa-utils/devel/alsaunmute,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- alsaunmute	11 Sep 2008 09:03:42 -0000	1.1
+++ alsaunmute	11 Sep 2008 11:54:09 -0000	1.2
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-export ALSA_CONFIG_PATH="/etc/alsa/alsactl.conf"
-exec /sbin/alsactl init
-
+exec /sbin/alsactl \
+  -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf \
+  --initfile=/lib/alsa/init/00main \
+  init


--- alsa-utils-1.0.17-alsaconf.patch DELETED ---




More information about the fedora-extras-commits mailing list