ports/148075: [PATCH] oss/files path issue with soundon script

Craig Leres leres at ee.lbl.gov
Tue Jun 22 20:50:08 UTC 2010


>Number:         148075
>Category:       ports
>Synopsis:       [PATCH] oss/files path issue with soundon script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 22 20:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Craig Leres
>Release:        FreeBSD 7.2-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
	FreeBSD hot.ee.lbl.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #17: Mon Jun 14
17:19:31 PDT 2010
leres at hot.ee.lbl.gov:/usr/src/7.2-RELEASE/sys/amd64/compile/LBLSMPIPV6
amd64

>Description:
	The soundon script assumes /usr/local/bin is on PATH but
	that is not the case when rc.d/oss runs soundon at at boot time.

>How-To-Repeat:
	Watch for the error message "ossinfo: not found" to appear twice
	during bootup.

>Fix:
	The attached patch add an explicit path to the two invocations
	of ossinfo.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwhIVAACgkQWxlAhAje3JtLwgCfZqqOmtuwte68D3qfW36cYBKR
LHoAoIxV9ZTWtVnsHNJehNmxVhLCGGc+
=Vdun
-----END PGP SIGNATURE-----

--------------000308000202080402060202
Content-Type: text/plain;
 name="patch-oss.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-oss.txt"

*** files/patch-setup-FreeBSD-sbin-soundon.virgin	Thu Dec 11 16:36:44 2008
--- files/patch-setup-FreeBSD-sbin-soundon	Tue Jun 22 13:35:04 2010
***************
*** 1,5 ****
! --- setup/FreeBSD/sbin/soundon.orig	2008-09-16 16:55:03.000000000 -0400
! +++ setup/FreeBSD/sbin/soundon	2008-12-11 15:14:31.000000000 -0500
  @@ -1,10 +1,10 @@
   #!/bin/sh
   
--- 1,5 ----
! --- setup/FreeBSD/sbin/soundon.orig	2010-06-22 13:31:06.000000000 -0700
! +++ setup/FreeBSD/sbin/soundon	2010-06-22 13:32:20.000000000 -0700
  @@ -1,10 +1,10 @@
   #!/bin/sh
   
***************
*** 46,48 ****
--- 46,66 ----
   
   if test -x $OSSLIBDIR/soundon.user
   then
+ @@ -97,7 +97,7 @@
+    $OSSLIBDIR/soundon.user >> $LOG 2>&1
+  fi
+  
+ -if test "`ossinfo -g|grep TRIAL` " != " "
+ +if test "`%%PREFIX%%/bin/ossinfo -g|grep TRIAL` " != " "
+  then
+  	echo
+  	echo "************************************************************"
+ @@ -108,7 +108,7 @@
+  	sleep 1
+  fi
+  
+ -if test "`ossinfo -g|grep EXPIRED` " != " "
+ +if test "`%%PREFIX%%/bin/ossinfo -g|grep EXPIRED` " != " "
+  then
+  	echo
+  	echo "****************************************************************"

--------------000308000202080402060202
Content-Type: application/octet-stream;
 name="patch-oss.txt.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="patch-oss.txt.sig"

iEYEABECAAYFAkwhIVAACgkQWxlAhAje3JuVTQCfcS5mJ+ZOTF1cF+gyHFlIYu+jxPgAn0yj
im2+XEYnBdER9fwZXHyk1nqb
--------------000308000202080402060202--
>Release-Note:
>Audit-Trail:
>Unformatted:
 This is a multi-part message in MIME format.
 --------------000308000202080402060202
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 



More information about the freebsd-ports-bugs mailing list