* Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default
@ 2007-02-24 0:07 John Utz
2007-02-26 14:39 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: John Utz @ 2007-02-24 0:07 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 250 bytes --]
This patch simplifies the alsa-kernel discovery logic and provides better error reporting in the event of not finding $ALSAKERNELDIR/last.c
Signed off by John L. Utz III john.utz@dmxmusic.com
(tho why my uneducated opinion matters is beyond me)
[-- Attachment #1.2: Type: text/html, Size: 696 bytes --]
[-- Attachment #2: hgcompile-ALSAKERNELDIR.patch --]
[-- Type: application/octet-stream, Size: 1287 bytes --]
diff -r 62c0e3989241 hgcompile
--- a/hgcompile Thu Feb 22 13:24:18 2007 +0100
+++ b/hgcompile Fri Feb 23 15:54:24 2007 -0800
@@ -27,17 +27,26 @@ fi
# cd ..
#fi
-# check for alsa-kernel directory
-if [ -d alsa-kernel -a -f alsa-kernel/last.c ]; then
- ALSAKERNELDIR="alsa-kernel"
-else
- test -z $ALSAKERNELDIR && ALSAKERNELDIR=../alsa-kernel
- if [ ! -d $ALSAKERNELDIR -o ! -f $ALSAKERNELDIR/last.c ]; then
- echo "No alsa-kernel is found."
- echo "Please specify the correct location via ALSAKERNELDIR environment variable."
+# check for caller set alsa-kernel directory, if empty set to default
+
+if [ -z $ALSAKERNELDIR ]; then
+ ALSAKERNELDIR=../alsa-kernel
+fi
+
+ALSACHKFILE=$ALSAKERNELDIR/last.c
+
+echo "ALSA Kernel Directory is: $ALSAKERNELDIR, checking for checkfile: $ALSACHKFILE"
+
+if [ ! -f $ALSAKCHKFILE ]
+then
+ echo
+ echo "Error! alsa-kernel source file $ALSACHKFILE is not found. Alsa compilation will be impossible."
+ echo
+ echo "Please make sure that your have correctly placed the ../alsa-kernel directory"
+ echo "or specify the correct location for your development kernel directory via ALSAKERNELDIR environment variable."
exit 1
- fi
fi
+
make ALSAKERNELDIR="$ALSAKERNELDIR" all-deps
aclocal $ACLOCAL_FLAGS
autoconf
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default
2007-02-24 0:07 Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default John Utz
@ 2007-02-26 14:39 ` Takashi Iwai
2007-02-26 18:49 ` John Utz
0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2007-02-26 14:39 UTC (permalink / raw)
To: John Utz; +Cc: alsa-devel
At Fri, 23 Feb 2007 16:07:18 -0800,
John Utz wrote:
>
> This patch simplifies the alsa-kernel discovery logic and provides better error
> reporting in the event of not finding $ALSAKERNELDIR/last.c
>
> Signed off by John L. Utz III john.utz@dmxmusic.com
> (tho why my uneducated opinion matters is beyond me)
>
>
> diff -r 62c0e3989241 hgcompile
> --- a/hgcompile Thu Feb 22 13:24:18 2007 +0100
> +++ b/hgcompile Fri Feb 23 15:54:24 2007 -0800
> @@ -27,17 +27,26 @@ fi
> # cd ..
> #fi
>
> -# check for alsa-kernel directory
> -if [ -d alsa-kernel -a -f alsa-kernel/last.c ]; then
> - ALSAKERNELDIR="alsa-kernel"
> -else
> - test -z $ALSAKERNELDIR && ALSAKERNELDIR=../alsa-kernel
> - if [ ! -d $ALSAKERNELDIR -o ! -f $ALSAKERNELDIR/last.c ]; then
> - echo "No alsa-kernel is found."
> - echo "Please specify the correct location via ALSAKERNELDIR environment variable."
> +# check for caller set alsa-kernel directory, if empty set to default
> +
> +if [ -z $ALSAKERNELDIR ]; then
> + ALSAKERNELDIR=../alsa-kernel
> +fi
> +
> +ALSACHKFILE=$ALSAKERNELDIR/last.c
> +
> +echo "ALSA Kernel Directory is: $ALSAKERNELDIR, checking for checkfile: $ALSACHKFILE"
./alsa-kernel should be in the higher priority than ../alsa-kernel.
Please add the check as found in the original version.
Otherwise the patch looks good.
Thanks,
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default
2007-02-26 14:39 ` Takashi Iwai
@ 2007-02-26 18:49 ` John Utz
0 siblings, 0 replies; 3+ messages in thread
From: John Utz @ 2007-02-26 18:49 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 2424 bytes --]
I've made the suggested change, will submit it after i test it sometime this evening.
i have to make sure it works correctly against three dirs instead of just two so it will take a bit longer to test.
-----Original Message-----
From: alsa-devel-bounces@lists.sourceforge.net on behalf of Takashi Iwai
Sent: Mon 2/26/2007 6:39 AM
To: John Utz
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [Alsa-devel] Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default
At Fri, 23 Feb 2007 16:07:18 -0800,
John Utz wrote:
>
> This patch simplifies the alsa-kernel discovery logic and provides better error
> reporting in the event of not finding $ALSAKERNELDIR/last.c
>
> Signed off by John L. Utz III john.utz@dmxmusic.com
> (tho why my uneducated opinion matters is beyond me)
>
>
> diff -r 62c0e3989241 hgcompile
> --- a/hgcompile Thu Feb 22 13:24:18 2007 +0100
> +++ b/hgcompile Fri Feb 23 15:54:24 2007 -0800
> @@ -27,17 +27,26 @@ fi
> # cd ..
> #fi
>
> -# check for alsa-kernel directory
> -if [ -d alsa-kernel -a -f alsa-kernel/last.c ]; then
> - ALSAKERNELDIR="alsa-kernel"
> -else
> - test -z $ALSAKERNELDIR && ALSAKERNELDIR=../alsa-kernel
> - if [ ! -d $ALSAKERNELDIR -o ! -f $ALSAKERNELDIR/last.c ]; then
> - echo "No alsa-kernel is found."
> - echo "Please specify the correct location via ALSAKERNELDIR environment variable."
> +# check for caller set alsa-kernel directory, if empty set to default
> +
> +if [ -z $ALSAKERNELDIR ]; then
> + ALSAKERNELDIR=../alsa-kernel
> +fi
> +
> +ALSACHKFILE=$ALSAKERNELDIR/last.c
> +
> +echo "ALSA Kernel Directory is: $ALSAKERNELDIR, checking for checkfile: $ALSACHKFILE"
./alsa-kernel should be in the higher priority than ../alsa-kernel.
Please add the check as found in the original version.
Otherwise the patch looks good.
Thanks,
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
[-- Attachment #1.2: Type: text/html, Size: 3588 bytes --]
[-- Attachment #2: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-26 18:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-24 0:07 Patch: alsa-driver/hgcompile - check for a user set ALSAKERNELDIR first then set default John Utz
2007-02-26 14:39 ` Takashi Iwai
2007-02-26 18:49 ` John Utz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.