From mwisnicki+freebsd@gmail.com  Sat Oct  2 16:51:48 2010
Return-Path: <mwisnicki+freebsd@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E406A106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Oct 2010 16:51:48 +0000 (UTC)
	(envelope-from mwisnicki+freebsd@gmail.com)
Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182])
	by mx1.freebsd.org (Postfix) with ESMTP id 78BEB8FC1E
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Oct 2010 16:51:48 +0000 (UTC)
Received: by wyb29 with SMTP id 29so2744803wyb.13
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 02 Oct 2010 09:51:47 -0700 (PDT)
Received: by 10.216.145.199 with SMTP id p49mr3435727wej.18.1286038307057;
        Sat, 02 Oct 2010 09:51:47 -0700 (PDT)
Received: from  (static-78-8-147-77.ssp.dialog.net.pl [78.8.147.77])
        by mx.google.com with ESMTPS id b10sm1677200wer.41.2010.10.02.09.51.44
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 02 Oct 2010 09:51:46 -0700 (PDT)
Received: by  (sSMTP sendmail emulation); Sat, 02 Oct 2010 18:51:42 +0200
Message-Id: <4ca76322.0aefd80a.6c44.5ccd@mx.google.com>
Date: Sat, 02 Oct 2010 18:51:42 +0200
From: Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
Sender: =?UTF-8?Q?Marcin_Wi=C5=9Bnicki?= <mwisnicki@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] graphics/sane-backends: link with pthread
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         151157
>Category:       ports
>Synopsis:       [PATCH] graphics/sane-backends: link with pthread
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    makc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 02 17:00:12 UTC 2010
>Closed-Date:    Sat Oct 16 15:00:42 UTC 2010
>Last-Modified:  Sat Oct 16 15:00:42 UTC 2010
>Originator:     Marcin Wisnicki
>Release:        FreeBSD 8.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD ghost.pnet.one.pl 8.1-STABLE FreeBSD 8.1-STABLE #5: Sat Aug 28 11:07:39 CEST 2010
>Description:
Since some dynamically loaded sane backends (like hpaio from print/hplip) use
threads, saned/libsane itself must be linked with threads. Debian is doing it too.

This unbreaks scanning with saned + hpaio.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- sane-backends-1.0.21_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/sane-backends.orig/Makefile /usr/ports/graphics/sane-backends/Makefile
--- /usr/ports/graphics/sane-backends.orig/Makefile	2010-07-17 21:42:17.000000000 +0200
+++ /usr/ports/graphics/sane-backends/Makefile	2010-10-02 18:39:39.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	sane-backends
 PORTVERSION=	1.0.21
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://alioth.debian.org/frs/download.php/3258/ \
 		ftp://ftp.sane-project.org/pub/sane/%SUBDIR%/ \
@@ -36,7 +36,8 @@
 		LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS=	--with-docdir=${DOCSDIR} \
 		--disable-latex \
-		--disable-locking
+		--disable-locking \
+		--enable-pthread
 MAKE_ENV=	NOPORTDOCS="${NOPORTDOCS}"
 MAKE_JOBS_UNSAFE=	yes
 USE_LDCONFIG=	yes
--- sane-backends-1.0.21_2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->makc 
Responsible-Changed-By: makc 
Responsible-Changed-When: Sat Oct 16 08:10:38 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151157 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/151157: commit references a PR
Date: Sat, 16 Oct 2010 14:59:30 +0000 (UTC)

 makc        2010-10-16 14:59:26 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/sane-backends Makefile Makefile.man pkg-plist 
   Log:
   Enable pthread to unbreak scanning with saned + hpaio
   while here, fix build with NOPORTDOCS
   
   PR:             based on ports/151157
   Submitted by:   Marcin Wisnicki <mwisnicki+freebsd at gmail.com>
   
   Revision  Changes    Path
   1.96      +8 -4      ports/graphics/sane-backends/Makefile
   1.15      +1 -0      ports/graphics/sane-backends/Makefile.man
   1.50      +3 -0      ports/graphics/sane-backends/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Sat Oct 16 15:00:41 UTC 2010 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151157 
>Unformatted:
