From: Colin Guthrie <gmane@colin.guthr.ie>
To: alsa-devel@alsa-project.org
Subject: [PATCH] alsa-driver git repo: Build problems when copying symlink to itself
Date: Sat, 12 Mar 2011 10:30:48 +0000 [thread overview]
Message-ID: <ilfi0p$7hr$1@dough.gmane.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]
Hi,
After doing a "simple":
git clone alsa-driver
git clone alsa-kernel
cd alsa-driver
./gitcompile --with-debug=full --with-isapnp=yes --with-sequencer=yes
--with-moddir=updates/alsa:
The build bombed out pretty quickly with the following error.
The attached patch fixes it.
Hacking autoconf.h...
make[1]: Entering directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include'
make -C sound prepare
make[2]: Entering directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include/sound'
make prepare2
make[3]: Entering directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include/sound'
cp ../../alsa-kernel/include/ac97_codec.h .
patch -p0 -i ac97_codec.patch ac97_codec.h
patching file ac97_codec.h
Hunk #1 succeeded at 650 (offset 5 lines).
cp ../../alsa-kernel/include/core.h .
patch -p0 -i core.patch core.h
patching file core.h
cp ../../alsa-kernel/include/info.h .
cp: `../../alsa-kernel/include/info.h' and `./info.h' are the same file
make[3]: *** [info.h] Error 1
make[3]: Leaving directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include/sound'
make[2]: *** [prepare] Error 2
make[2]: Leaving directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include/sound'
make[1]: *** [prepare] Error 2
make[1]: Leaving directory
`/home/colin/Development/Personal/ALSA/alsa-driver/include'
make: *** [dep] Error 1
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
[-- Attachment #2: 0001-Fix-broken-build-due-to-cp-symlink-behaviour.patch --]
[-- Type: text/x-patch, Size: 953 bytes --]
>From c8d828633824d1dc9eb1739c676fb1a8b961c523 Mon Sep 17 00:00:00 2001
From: Colin Guthrie <cguthrie@mandriva.org>
Date: Sat, 12 Mar 2011 10:28:38 +0000
Subject: [PATCH] Fix broken build due to cp+symlink behaviour
Sometimes the destination file is a symlink to the source file.
If this happens cp may complain:
cp: ./info.h' are the same file
This patch just adds a safety rm -f before hand which wont do any harm.
---
include/sound/Makefile | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/sound/Makefile b/include/sound/Makefile
index 4f3c782..f992c01 100644
--- a/include/sound/Makefile
+++ b/include/sound/Makefile
@@ -27,6 +27,7 @@ version.h: ../version.h
b=$$(basename $$s .h); \
if test -f $$b.patch; then \
echo "$$s: $$i $$b.patch" >> $@; \
+ echo " rm -f \$$@" >> $@; \
echo " cp \$$(INCSRC)/\$$@ ." >> $@; \
echo " patch -p0 -i $$b.patch \$$@" >> $@; \
echo >> $@; \
--
1.7.4.1
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next reply other threads:[~2011-03-12 10:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-12 10:30 Colin Guthrie [this message]
2011-03-12 10:47 ` [PATCH] alsa-driver git repo: Build problems when copying symlink to itself Colin Guthrie
2011-03-14 9:43 ` Takashi Iwai
2011-03-14 13:16 ` Colin Guthrie
2011-03-14 13:21 ` Takashi Iwai
2011-03-14 15:06 ` Colin Guthrie
2011-03-14 15:14 ` Takashi Iwai
2011-03-14 9:54 ` Jaroslav Kysela
2011-03-14 11:25 ` Colin Guthrie
2011-03-14 13:11 ` Jaroslav Kysela
2011-03-14 13:16 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ilfi0p$7hr$1@dough.gmane.org' \
--to=gmane@colin.guthr.ie \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.