ports/92018: [PATCH] Port sysutils/dvd+rw-tools does not work on FreeBSD 4

Sven Berkvens-Matthijsse sven at berkvens.net
Thu Jan 19 19:30:10 UTC 2006

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 19 19:30:09 GMT 2006
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.10-STABLE i386
De Kattenfabriek
System: FreeBSD cat.berkvens.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Sun Oct 31 01:46:30 CEST 2004 sven at cat.berkvens.net:/extra0/usr_obj/usr/src/sys/CAT i386

	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.
	Try to burn a DVD on FreeBSD 4 with growisofs.
	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.

More information about the freebsd-ports-bugs mailing list