Date: 19 Jan 2006 19:27:25 -0000 From: Sven Berkvens-Matthijsse <sven@berkvens.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/92018: [PATCH] Port sysutils/dvd+rw-tools does not work on FreeBSD 4 Message-ID: <20060119192725.64520.qmail@cat.berkvens.net> Resent-Message-ID: <200601191930.k0JJU9ci020715@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 92018 >Category: ports >Synopsis: [PATCH] Port sysutils/dvd+rw-tools does not work on FreeBSD 4 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 19 19:30:09 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Sven Berkvens-Matthijsse >Release: FreeBSD 4.10-STABLE i386 >Organization: De Kattenfabriek >Environment: System: FreeBSD cat.berkvens.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Sun Oct 31 01:46:30 CEST 2004 sven@cat.berkvens.net:/extra0/usr_obj/usr/src/sys/CAT i386 >Description: The current version of growisofs uses threads and does not work correctly under FreeBSD 4. This is because the pthread_attr_setscope() call that growisofs uses is not supported on FreeBSD 4. >How-To-Repeat: Try to burn a DVD on FreeBSD 4 with growisofs. >Fix: I've included a patch to go in files/patch-mp.h : --- mp.h.orig Mon Jan 16 11:34:56 2006 +++ mp.h Thu Jan 19 20:22:30 2006 @@ -39,7 +39,9 @@ pthread_attr_t attr; if (pthread_attr_init(&attr)==0 && +#if !defined(__FreeBSD__) || __FreeBSD__ >= 5 pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 && +#endif /* FreeBSD 4 does not support PTHREAD_SCOPE_SYSTEM */ pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 ) return (void *)h; The patch makes sure that the pthread_attr_setscope() call does not take place for FreeBSD versions under 5.x. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060119192725.64520.qmail>