Debian alsa-lib patches
As previously discussed, I'm posting all Debian patches against alsa-lib that were pending upstreaming.
Thanks, Jordi
PATCH 1/3 Add AM_MAINTAINER_MODE.
Add AM_MAINTAINER_MODE([enable]) to configure.in.
--- configure.in | 2 ++ 1 file changed, 2 insertions(+)
configure.in +2 -0
@@ -17,6 +17,8 @@ eval LIBTOOL_VERSION_INFO="2:0:0" dnl ************************************************* AM_CONDITIONAL([INSTALL_M4], [test -n "${ACLOCAL}"]) +AM_MAINTAINER_MODE([enable]) + # Test for new silent rules and enable only if they are available m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
Signature · 1 line
1.7.10.4
PATCH 2/3 Compile in the ALSA search path instead of relying on ld.so.conf.
In reply to Jordi MallachFrom: Steve Langasek <[email protected]>
The Ubuntu package currently uses ld.so.conf.d fragments to add /usr/lib/alsa-lib and /usr/lib{32,64}/alsa-lib to the dlopen search path. These don't *belong* on the global search path, and it becomes much more problematic to put them there with the advent of multiarch because each architecture then needs its own distinct config file to add the separate path... which is then also put in the global library namespace. Instead, let ALSA make use of the already defined ALSA_PLUGIN_DIR to look up plugins.
--- src/dlmisc.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-)
src/dlmisc.c +19 -1
@@ -67,7 +67,25 @@ void *snd_dlopen(const char *name, int mode)#endif #endif #ifdef HAVE_LIBDL -return dlopen (name, mode); +/* +* Handle the plugin dir not being on the default dlopen search +* path, without resorting to polluting the entire system namespace +* via ld.so.conf. +*/ +void *handle =NULL ; +char *filename; + +if (name && name[0 ] !='/' ) { + filename =malloc (sizeof (ALSA_PLUGIN_DIR ) +1 +strlen (name) +1 ); +strcpy (filename,ALSA_PLUGIN_DIR ); +strcat (filename,"/" ); +strcat (filename, name); + handle =dlopen (filename, mode); +free (filename); + } +if (!handle) + handle =dlopen (name, mode); +return handle;#else return NULL ;#endif
Signature · 1 line
1.7.10.4
PATCH 3/3 Fix several spelling errors for “writable” and derivatives.
In reply to Jordi Mallach--- src/alisp/alisp.c | 4 ++-- src/alisp/alisp_snd.c | 2 +- src/rawmidi/rawmidi.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
src/alisp/alisp.c +2 -2
@@ -989,7 +989,7 @@ static void dump_objects(struct alisp_instance *instance, const char *fname)else err =snd_output_stdio_open (&out, fname,"w+" );if (err <0 ) { -SNDERR ("alisp: cannot open file '%s' for writting (%s)" , fname,snd_strerror (errno)); +SNDERR ("alisp: cannot open file '%s' for writing (%s)" , fname,snd_strerror (errno));return ; }
@@ -1062,7 +1062,7 @@ static void dump_obj_lists(struct alisp_instance *instance, const char *fname)else err =snd_output_stdio_open (&out, fname,"w+" );if (err <0 ) { -SNDERR ("alisp: cannot open file '%s' for writting (%s)" , fname,snd_strerror (errno)); +SNDERR ("alisp: cannot open file '%s' for writing (%s)" , fname,snd_strerror (errno));return ; }
src/alisp/alisp_snd.c +1 -1
@@ -572,7 +572,7 @@ static struct alisp_object * FA_hctl_elem_info(struct alisp_instance * instance, } p1 =add_cons (instance, p1,1 ,"type" ,new_string (instance,snd_ctl_elem_type_name (type))); p1 =add_cons (instance, p1,1 ,"readable" ,new_integer (instance,snd_ctl_elem_info_is_readable (info))); - p1 =add_cons (instance, p1,1 ,"writeable" ,new_integer (instance,snd_ctl_elem_info_is_writable (info))); + p1 =add_cons (instance, p1,1 ,"writable" ,new_integer (instance,snd_ctl_elem_info_is_writable (info))); p1 =add_cons (instance, p1,1 ,"volatile" ,new_integer (instance,snd_ctl_elem_info_is_volatile (info))); p1 =add_cons (instance, p1,1 ,"inactive" ,new_integer (instance,snd_ctl_elem_info_is_inactive (info))); p1 =add_cons (instance, p1,1 ,"locked" ,new_integer (instance,snd_ctl_elem_info_is_locked (info)));
src/rawmidi/rawmidi.c +1 -1
@@ -63,7 +63,7 @@ contents of written buffer - passed by snd_rawmidi_write() - atomically to output ring buffer in the kernel space. This flag also means that device is not opened exclusively, so more applications can share given rawmidi device. Note that applications must send the whole MIDI message including the running status, -because another writting application might break the MIDI message in the output +because another writing application might break the MIDI message in the output buffer. \subsection rawmidi_open_sync Sync open (flag)
Signature · 1 line
1.7.10.4
At Wed, 15 May 2013 19:05:57 +0200,
Quoted 3 lines · Jordi Mallach
As previously discussed, I'm posting all Debian patches against alsa-lib that were pending upstreaming.
Applied all three patches.
thanks,
Takashi
Quoted 7 lines
Thanks, Jordi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel