Skip to contentSkip to conversation

bluez installs alsa related stuff under /etc/alsa instead of /usr/share/alsa

DISCUSSION Pacho Ramos 4 participants 12 messages Mar 4, 2010 – Jul 17, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Any reason why using /etc/alsa instead?

Thanks a lot

maintainer
#1 lore raw

Hi Pacho,

Quoted 6 lines

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Any reason why using /etc/alsa instead?

I thought that is the default location. If that is wrong, then please quote the ALSA documentation and send a patch to fix it.

Regards

Marcel

#2 lore raw
Quoted 7 lines · Marcel Holtmann

Hi Pacho,

Quoted 5 lines

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Quoted 8 lines
Quoted 1 line

Any reason why using /etc/alsa instead?

I thought that is the default location. If that is wrong, then please quote the ALSA documentation and send a patch to fix it.

Regards

Marcel

alsa-lib configure.in seems to indicate that /usr/share/alsa is the default one:
dnl ALSA configuration directory
AC_ARG_WITH(configdir,

    AS_HELP_STRING([--with-configdir=dir],
        [path where ALSA config files are stored]),
    confdir="$withval", confdir="")
if test -z "$confdir"; then
    eval dir="$datadir"
    case "$dir" in
    /*) ;;
    *) dir="$prefix/share"
    esac
    confdir="$dir/alsa"

fi

#3 lore raw
Quoted 31 lines · Pacho Ramos
Quoted 7 lines · Marcel Holtmann

Hi Pacho,

Quoted 5 lines

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Quoted 8 lines
Quoted 1 line

Any reason why using /etc/alsa instead?

I thought that is the default location. If that is wrong, then please quote the ALSA documentation and send a patch to fix it.

Regards

Marcel

alsa-lib configure.in seems to indicate that /usr/share/alsa is the default one:
dnl ALSA configuration directory
AC_ARG_WITH(configdir,

    AS_HELP_STRING([--with-configdir=dir],
        [path where ALSA config files are stored]),
    confdir="$withval", confdir="")
if test -z "$confdir"; then
    eval dir="$datadir"
    case "$dir" in
    /*) ;;
    *) dir="$prefix/share"
    esac
    confdir="$dir/alsa"
Quoted 2 lines

fi

I forgot the patch, sorry

Makefile.am renamed from Makefile.am~ +1 -1
@@ -241,7 +241,7 @@
 audio_libasound_module_ctl_bluetooth_la_CFLAGS = @ALSA_CFLAGS@
 
 if CONFIGFILES
-alsaconfdir = $(sysconfdir)/alsa
+alsaconfdir = $(datadir)/alsa
 
 alsaconf_DATA = audio/bluetooth.conf
 endif
#4 lore raw
Quoted 35 lines · Pacho Ramos
Quoted 31 lines · Pacho Ramos
Quoted 7 lines · Marcel Holtmann

Hi Pacho,

Quoted 5 lines

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Quoted 8 lines
Quoted 1 line

Any reason why using /etc/alsa instead?

I thought that is the default location. If that is wrong, then please quote the ALSA documentation and send a patch to fix it.

Regards

Marcel

alsa-lib configure.in seems to indicate that /usr/share/alsa is the default one:
dnl ALSA configuration directory
AC_ARG_WITH(configdir,

    AS_HELP_STRING([--with-configdir=dir],
        [path where ALSA config files are stored]),
    confdir="$withval", confdir="")
if test -z "$confdir"; then
    eval dir="$datadir"
    case "$dir" in
    /*) ;;
    *) dir="$prefix/share"
    esac
    confdir="$dir/alsa"
Quoted 2 lines

fi

Quoted 2 lines

I forgot the patch, sorry

Was this committed finally? Thanks :-)

#5 lore raw
Quoted 36 lines · Pacho Ramos
Quoted 35 lines · Pacho Ramos
Quoted 33 lines · Pacho Ramos
Quoted 7 lines · Marcel Holtmann

Hi Pacho,

Quoted 5 lines

bluez installs stuff into /etc/alsa and it seems wrong since default location for alsa stuff seems to be /usr/share/alsa instead. You can also see that this is been workarounded in ubuntu, gentoo (and probably debian also).

Quoted 8 lines
Quoted 1 line

Any reason why using /etc/alsa instead?

I thought that is the default location. If that is wrong, then please quote the ALSA documentation and send a patch to fix it.

Regards

Marcel

alsa-lib configure.in seems to indicate that /usr/share/alsa is the default one:
dnl ALSA configuration directory
AC_ARG_WITH(configdir,

    AS_HELP_STRING([--with-configdir=dir],
        [path where ALSA config files are stored]),
    confdir="$withval", confdir="")
if test -z "$confdir"; then
    eval dir="$datadir"
    case "$dir" in
    /*) ;;
    *) dir="$prefix/share"
    esac
    confdir="$dir/alsa"

fi

Quoted 2 lines
Quoted 2 lines

I forgot the patch, sorry

Can this be finally committed please? Thanks a lot :-)

#6 lore raw
Quoted 1 line · Pacho Ramos

Can this be finally committed please? Thanks a lot :-)

It's strange the the patch has gone unnoticed ever since March. Anyway, could you please provide a git format-patch version of it since that's the convention for all patch submisions. That way I don't need to play manual tricks to get the git author name and email correct for the commit.

Johan

#7 lore raw
Quoted 4 lines · Johan Hedberg
Quoted 1 line · Pacho Ramos

Can this be finally committed please? Thanks a lot :-)

Quoted 8 lines

It's strange the the patch has gone unnoticed ever since March. Anyway, could you please provide a git format-patch version of it since that's the convention for all patch submisions. That way I don't need to play manual tricks to get the git author name and email correct for the commit.

Johan

Sadly I have always failed to create patches in a git format-patch version :'(

This is what I have tried:

$ git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
Initialized empty Git repository in /home/pacho/bluez/.git/
remote: Counting objects: 35451, done.
remote: Compressing objects: 100% (8577/8577), done.
remote: Total 35451 (delta 27190), reused 34976 (delta 26858)
Receiving objects: 100% (35451/35451), 6.16 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (27190/27190), done.
$ cd bluez/
$ git checkout -b fix_alsa_path
Switched to a new branch 'fix_alsa_path'
$ patch -p0
</usr/portage/net-wireless/bluez/files/bluez-alsa_location.patch 
patching file Makefile.am
Hunk #1 succeeded at 248 (offset 7 lines).
$ git format-patch master --stdout
$ (nothing is shown)
#8 lore raw

Hi Pacho,

* Pacho Ramos <[email protected]> [2010-07-16 19:21:45 +020= 0]:

Quoted 18 lines

El vie, 16-07-2010 a las 14:01 -0300, Johan Hedberg escribi=F3:

Quoted 12 lines

=20

Quoted 1 line · Pacho Ramos

Can this be finally committed please? Thanks a lot :-)

=20
It's strange the the patch has gone unnoticed ever since March. Anyway, could you please provide a git format-patch version of it since that's the convention for all patch submisions. That way I don't need to play manual tricks to get the git author name and email correct for the commit.
=20
Johan
=20

=20
Sadly I have always failed to create patches in a git format-patch version :'(
=20
This is what I have tried:

Quoted 16 lines
$ git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
Initialized empty Git repository in /home/pacho/bluez/.git/
remote: Counting objects: 35451, done.
remote: Compressing objects: 100% (8577/8577), done.
remote: Total 35451 (delta 27190), reused 34976 (delta 26858)
Receiving objects: 100% (35451/35451), 6.16 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (27190/27190), done.
$ cd bluez/
$ git checkout -b fix_alsa_path
Switched to a new branch 'fix_alsa_path'
$ patch -p0
</usr/portage/net-wireless/bluez/files/bluez-alsa_location.patch=20
patching file Makefile.am
Hunk #1 succeeded at 248 (offset 7 lines).
$ git format-patch master --stdout
$ (nothing is shown)

If your patch is on HEAD then just do:

git format-patch -1

and then use 'git send-email' to send it to the mailing list.

--=20
Gustavo F. Padovan
http://padovan.org

#9 lore raw
Quoted 39 lines · Gustavo F. Padovan

Hi Pacho,

Quoted 18 lines · Pacho Ramos
Quoted 4 lines · Johan Hedberg
Quoted 1 line · Pacho Ramos

Can this be finally committed please? Thanks a lot :-)

Quoted 8 lines

It's strange the the patch has gone unnoticed ever since March. Anyway, could you please provide a git format-patch version of it since that's the convention for all patch submisions. That way I don't need to play manual tricks to get the git author name and email correct for the commit.

Johan

Sadly I have always failed to create patches in a git format-patch version :'(

This is what I have tried:

Quoted 16 lines
$ git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
Initialized empty Git repository in /home/pacho/bluez/.git/
remote: Counting objects: 35451, done.
remote: Compressing objects: 100% (8577/8577), done.
remote: Total 35451 (delta 27190), reused 34976 (delta 26858)
Receiving objects: 100% (35451/35451), 6.16 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (27190/27190), done.
$ cd bluez/
$ git checkout -b fix_alsa_path
Switched to a new branch 'fix_alsa_path'
$ patch -p0
</usr/portage/net-wireless/bluez/files/bluez-alsa_location.patch 
patching file Makefile.am
Hunk #1 succeeded at 248 (offset 7 lines).
$ git format-patch master --stdout
$ (nothing is shown)
Quoted 6 lines

If your patch is on HEAD then just do:

git format-patch -1

and then use 'git send-email' to send it to the mailing list.

Seems I forgot to commit ;-), I attach the patch

Thanks :-)

From 4421d83d1d5cd0875ec12457f621a31fdc8862a1 Mon Sep 17 00:00:00 2001
From: Pacho Ramos <[email protected]>
Date: Fri, 16 Jul 2010 20:38:58 +0200
Subject: [PATCH] Install alsa stuff in correct place

---
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.am +1 -1
index f4bf87d..65d4312 100644
@@ -248,7 +248,7 @@ audio_libasound_module_ctl_bluetooth_la_LIBADD = lib/libbluetooth.la @ALSA_LIBS@
 audio_libasound_module_ctl_bluetooth_la_CFLAGS = @ALSA_CFLAGS@
 
 if CONFIGFILES
-alsaconfdir = $(sysconfdir)/alsa
+alsaconfdir = $(datadir)/alsa
 
 alsaconf_DATA = audio/bluetooth.conf
 endif
Signature · 1 line
1.7.1
#10 lore raw

Hi,

Quoted 7 lines · Pacho Ramos

From: Pacho Ramos <[email protected]>
Date: Fri, 16 Jul 2010 20:38:58 +0200
Subject: [PATCH] Install alsa stuff in correct place

---
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

The patch is now upstream. Thanks.

Johan

#11 lore raw
Quoted 7 lines · Johan Hedberg

Hi,

Quoted 4 lines · Pacho Ramos

From: Pacho Ramos <[email protected]>
Date: Fri, 16 Jul 2010 20:38:58 +0200
Subject: [PATCH] Install alsa stuff in correct place

Quoted 7 lines
Quoted 3 lines
---
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

The patch is now upstream. Thanks.

Johan

Great, thanks for committing :-)