Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2008 03:08:36 GMT
From:      Stephen Hurd <shurd@sasktel.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/119352: graphics/ilmbase configure tests for shared semaphores but uses non-shared sems
Message-ID:  <200801050308.m0538ahP076433@www.freebsd.org>
Resent-Message-ID: <200801050310.m053A1jQ044179@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119352
>Category:       ports
>Synopsis:       graphics/ilmbase configure tests for shared semaphores but uses non-shared sems
>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:   Sat Jan 05 03:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Hurd
>Release:        7.0-RC1
>Organization:
>Environment:
FreeBSD vorpal.hurd.local 7.0-RC1 FreeBSD 7.0-RC1 #0: Sun Dec 30 15:59:13 CST 2007     root@vorpal.bbsdev.local:/usr/obj/usr/src/sys/VORPAL  sparc64
>Description:
configure tests for working shared semaphores but does not use them.  In the absence of working shared semaphores, graphics/ilmbase uses an emulated semaphore library.
>How-To-Repeat:
cd /usr/ports/graphics/ilmbase
make configure

Watch the unnamed semaphore test fail.
>Fix:
Add attached patch-configure to files.

Patch attached with submission follows:

--- configure.orig	2008-01-04 18:32:28.000000000 -0800
+++ configure	2008-01-04 18:33:01.000000000 -0800
@@ -20148,7 +20148,7 @@
 {
 
 		    sem_t mysem;
-		    if (sem_init (&mysem, 1, 1) == 0)
+		    if (sem_init (&mysem, 0, 1) == 0)
 		    {
 			if (sem_wait (&mysem) == 0)
 			{


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801050308.m0538ahP076433>