ports/114801: [patch] fix audio/openal build failure
SIEGERSTEIN
siegerstein at pochta.ru
Mon Jul 23 00:00:14 UTC 2007
The following reply was made to PR ports/114801; it has been noted by GNATS.
From: SIEGERSTEIN <siegerstein at pochta.ru>
To: bug-followup at FreeBSD.org, siegerstein at pochta.ru
Cc:
Subject: Re: ports/114801: [patch] fix audio/openal build failure
Date: Mon, 23 Jul 2007 02:53:23 +0300
The bug was in two files with the same name:
[siegerstein at siegerstein /]$ ls -l /usr/include/sys/soundcard.h
-r--r--r-- 1 root wheel 50851 12 Ñнв 2007 /usr/include/sys/soundcard.h
[siegerstein at siegerstein /]$ ls -l /usr/local/include/sys/soundcard.h
-r--r--r-- 1 root wheel 75728 16 иÑл 06:13
/usr/local/include/sys/soundcard.h
[siegerstein at siegerstein /]$
The fist file is native, second is from oss package:
perl script: wf.pl
#!/usr/bin/perl
my $tree = '/var/db/pkg';
@array = `ls $tree`;
for ($i = 0; $i < (scalar(@array)); ++$i) {
chomp($array[$i]);
$exec = `pkg_info -L \"$array[$i]\" | grep soundcard.h`;
if ($exec) {
print "$array[$i]\n";
print `pkg_info -L \"$array[$i]\" | grep --color=always soundcard.h`;
print "\n\n";
}
}
1;
$./wf.pl
oss-4.0.b1004
/usr/local/include/sys/soundcard.h
The probles was in oss package, whi has the file whith the same name,
but different func.
Fix: pkg_delete -f oss-\*
Then did not fix line 356 in previos report, just fiox line 410:
replace return;
with
return AL_FALSE;
Or if you dont want to delete oss package, just
mv /usr/local/include/sys/soundcard.h /usr/local/include/sys/soundcard.h.old
And other port, wich recuire of this lib, will build seccess from native
lib (/usr/local/include/sys/soundcard.h)
- Alex Ivasyuv aka SIEGERSEIN
More information about the freebsd-ports-bugs
mailing list