Date: Thu, 22 May 2003 14:53:04 -0500 (CDT) From: Mark Linimon <linimon@lonesome.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/52590: [non-maintainer update] update logic for "BROKEN" variable in audio/aureal-kmod Message-ID: <200305221953.h4MJr4Fa035362@lonesome.lonesome.com> Resent-Message-ID: <200305222000.h4MK0FnH099389@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 52590 >Category: ports >Synopsis: [non-maintainer update] update logic for "BROKEN" variable in audio/aureal-kmod >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 22 13:00:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mark Linimon >Release: FreeBSD 4.7 >Organization: lonesome.com >Environment: System: FreeBSD lonesome.lonesome.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 8 23:46:29 CST 2002 root@lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA i386 >Description: The current logic to calculate BROKEN in this port does not allow for one OS release to ask the port if it is broken on another OS release. This is due to an assumption that the OSVERSION passed to the Makefile exactly corresponds to the source version installed under /usr/src/sys (if any.) That is the default. However, when doing a cross-query, this is not the case. While this is a problem that is probably only of interest to myself, Bill Fenner, and Dan Langille, the logic could use tightening anyway. >How-To-Repeat: (on a 4.7 system, e.g.): cd /usr/ports/audio/aureal-kmod; make OSVERSION=50000 -V BROKEN will result in failure. >Fix: The following patch emulates the current behavior of the port Makefile on both the 4.7 and 5.0 releases without OSVERSION being set. In addition, it works for OSVERSION being set. --- aureal-kmod/Makefile.dist Fri Feb 21 07:14:26 2003 +++ aureal-kmod/Makefile Thu May 22 14:32:41 2003 @@ -36,8 +36,7 @@ VERSION_SOUND_C= .endif -VERSION_SOUND_C_CURRENT:= ${VERSION_SOUND_C:S/1.//} -VERSION_SOUND_C_STABLE:= ${VERSION_SOUND_C:S/1.17.2.//} +VERSION_SOUND_C_MINOR:= ${VERSION_SOUND_C:S/^1.//:S/^17.2.//} .if ${OSVERSION} < 410000 BROKEN= "FreeBSD 3.*, 4.0 are not supported" @@ -51,7 +50,7 @@ # FreeBSD 4.2, 4.3 PORTVERSION= 1.3 -.if ${VERSION_SOUND_C_STABLE} < 4 +.if ${VERSION_SOUND_C_MINOR} < 4 # FreeBSD 4.2 before kobj MFC PORTREVISION= 1 @@ -69,7 +68,7 @@ .elif ${OSVERSION} < 500000 # FreeBSD 4.5+ -.if ${VERSION_SOUND_C_STABLE} < 12 +.if ${VERSION_SOUND_C_MINOR} < 12 BROKEN= "Base system is outdated. This port needs -STABLE after 2002-04-22." .endif PORTVERSION= 1.3 @@ -79,7 +78,7 @@ .if ${OSVERSION} > 500000 # FreeBSD 5-CURRENT -.if ${VERSION_SOUND_C_CURRENT} < 70 +.if ${VERSION_SOUND_C_MINOR} < 70 BROKEN= "Base system is outdated. This port needs -CURRENT after 2002-04-04." .endif .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305221953.h4MJr4Fa035362>