ports/76877: INDEX build fails at audio/aureal-kmod on 5.3-STABLE
Cedric Ware
cedric.ware+fbsdpr at enst.fr
Mon Jan 31 00:10:22 UTC 2005
>Number: 76877
>Category: ports
>Synopsis: INDEX build fails at audio/aureal-kmod on 5.3-STABLE
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 31 00:10:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Cedric Ware
>Release: 5.3-STABLE (2005-01-30)
>Organization:
>Environment:
FreeBSD krakatoa.tectonics 5.3-STABLE FreeBSD 5.3-STABLE #1: Sun Jan 23 18:10:03 CET 2005 ware at krakatoa:/data/usrobj/data/usrsrc/sys/KRAKATOA i386
>Description:
Building the ports index fails at audio/aureal-kmod with the following errors:
Generating INDEX-5 - please wait.."Makefile", line 81: warning: String comparison operator should be either == or !=
"Makefile", line 81: Malformed conditional (${VERSION_SOUND_C_MINOR} < 70)
"Makefile", line 81: Need an operator
"Makefile", line 84: if-less endif
"Makefile", line 84: Need an operator
make: fatal errors encountered -- cannot continue
===> audio/aureal-kmod failed
*** Error code 1
Apparently, in /usr/ports/audio/aureal-kmod/Makefile (lines 32-39),
the OS version is checked using "ident < /sys/dev/sound/pcm/sound.c",
but the makefile assumes that that file's Id is of the form x.yy,
whereas RELENG_5 has version 1.92.2.1 as of 2005-01-30. make then
refuses to compare numerically "92.2.1" to "70" on line 81.
>How-To-Repeat:
"make index" in /usr/ports, or "portsdb -uU", on a system where /sys/dev/sound/pcm/sound.c has Id 1.92.2.1
>Fix:
The following ugly patch works--until the next major version change
of /sys/dev/sound/pcm/sound.c; otherwise, perhaps by calling an
external program to compare versions?
--- Makefile Sat Jan 10 08:18:53 2004
+++ Makefile.new Mon Jan 31 00:57:58 2005
@@ -37,6 +37,7 @@
.endif
VERSION_SOUND_C_MINOR:= ${VERSION_SOUND_C:S/^1.//:S/^17.2.//}
+VERSION_SOUND_C_MINOR!= echo ${VERSION_SOUND_C_MINOR} | ${SED} 's/\..*//'
.if ${OSVERSION} < 410000
IGNORE= "FreeBSD 3.*, 4.0 are not supported"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list