Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21911 Details for
Bug 35412
pkgs dependant on alsa-lib compilation breakage against 1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
alsa-lib eclass that contains a general find/sed fix
alsa-lib.eclass (text/plain), 1.15 KB, created by
Brian Harring (RETIRED)
on 2003-12-08 20:14:54 UTC
(
hide
)
Description:
alsa-lib eclass that contains a general find/sed fix
Filename:
MIME Type:
Creator:
Brian Harring (RETIRED)
Created:
2003-12-08 20:14:54 UTC
Size:
1.15 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.18 2003/02/16 04:26:21 vapier Exp $ ># ># Author: ferringb ># ># >=alsa-lib-1.0 is binary compatible w/ <alsa-lib-1.0, but requires a few ># new defines for compilation to use the old HW interface. > >inherit base >ECLASS=alsa-lib >INHERITED="$INHERITED $ECLASS" > > >alsa-lib_src_unpack() { > debug-print-function $FUNCNAME $* > > base_src_unpack $* > alsa-lib_fix_includes ${S} >} > ># ># scans for asoundlib.h inclusion, and defines the necesary symbols to use ># the old api. ># >alsa-lib_fix_includes() { > debug-print-function $FUNCNAME $* > > ebegin "Patching for alsa-lib 1.0 compilation breakage" > > while [ -n "$1" ]; do > cd ${1} > for x in `find ./ -type f -regex '.*.\(c\(\|c\|pp\)\|h\)' \ > -exec grep -l '<alsa/asoundlib.h>' {} \; ` ; do > echo "patching ${x}" > sed -i -e 's:<alsa/asoundlib.h>:<alsa/version.h>\n# if SND_LIB_MAJOR==1\n#define ALSA_PCM_OLD_HW_PARAMS_API\n#define ALSA_PCM_NEW_HW_PARAMS_API\n# endif\n#include <alsa/asoundlib.h>:' ${x} > done > shift > done > eend 0 >} > >EXPORT_FUNCTIONS src_unpack > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 35412
:
21911
|
21912