From nobody@FreeBSD.org  Sun May 24 08:13:23 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8E9A7106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 May 2009 08:13:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 73B128FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 May 2009 08:13:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4O8DNP6042876
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 May 2009 08:13:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n4O8DNgJ042875;
	Sun, 24 May 2009 08:13:23 GMT
	(envelope-from nobody)
Message-Id: <200905240813.n4O8DNgJ042875@www.freebsd.org>
Date: Sun, 24 May 2009 08:13:23 GMT
From: Igor Soumenkov <2igosha@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sane-backends port does not build if old version is installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134891
>Category:       ports
>Synopsis:       sane-backends port does not build if old version is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 24 08:20:01 UTC 2009
>Closed-Date:    Sun May 24 09:46:44 UTC 2009
>Last-Modified:  Sun May 24 09:46:44 UTC 2009
>Originator:     Igor Soumenkov
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD igosha-desktop 7.2-STABLE FreeBSD 7.2-STABLE #9: Sat May 23 21:29:49 MSD 2009     igosha@igosha-desktop:/usr/obj/usr/src/sys/IGOSHA  i386

>Description:
Can't build the graphics/sane-backends port while trying to update it:


gmake[2]: Entering directory `/usr/ports/graphics/sane-backends/work/sane-backends-1.0.20/backend'
/bin/sh ../libtool --silent --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. -I../include -I../include -DLIBDIR="/usr/local/lib/sane" -DBACKEND_NAME=canon_dr -I/usr/local/include  -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d          -DPATH_SANE_DATA_DIR=/usr/local/share           -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane           -DV_MAJOR=1 -DV_MINOR=0  -O2 -fno-strict-aliasing -pipe -W -Wall -MT libcanon_dr_la-canon_dr.lo -MD -MP -MF .deps/libcanon_dr_la-canon_dr.Tpo -c -o libcanon_dr_la-canon_dr.lo `test -f 'canon_dr.c' || echo './'`canon_dr.c
canon_dr.c: In function 'sane_canon_dr_get_option_descriptor':
canon_dr.c:1333: error: 'SANE_NAME_STANDARD' undeclared (first use in this function)
canon_dr.c:1333: error: (Each undeclared identifier is reported only once
canon_dr.c:1333: error: for each function it appears in.)
canon_dr.c:1334: error: 'SANE_TITLE_STANDARD' undeclared (first use in this function)
canon_dr.c:1335: error: 'SANE_DESC_STANDARD' undeclared (first use in this function)
canon_dr.c:1545: error: 'SANE_NAME_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1546: error: 'SANE_TITLE_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1547: error: 'SANE_DESC_GEOMETRY' undeclared (first use in this function)
canon_dr.c:1632: error: 'SANE_NAME_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1633: error: 'SANE_TITLE_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1634: error: 'SANE_DESC_PAGE_WIDTH' undeclared (first use in this function)
canon_dr.c:1659: error: 'SANE_NAME_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1660: error: 'SANE_TITLE_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1661: error: 'SANE_DESC_PAGE_HEIGHT' undeclared (first use in this function)
canon_dr.c:1680: error: 'SANE_NAME_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1681: error: 'SANE_TITLE_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1682: error: 'SANE_DESC_ENHANCEMENT' undeclared (first use in this function)
canon_dr.c:1771: error: 'SANE_NAME_ADVANCED' undeclared (first use in this function)
canon_dr.c:1772: error: 'SANE_TITLE_ADVANCED' undeclared (first use in this function)
canon_dr.c:1773: error: 'SANE_DESC_ADVANCED' undeclared (first use in this function)
canon_dr.c:1958: error: 'SANE_NAME_SENSORS' undeclared (first use in this function)
canon_dr.c:1959: error: 'SANE_TITLE_SENSORS' undeclared (first use in this function)
canon_dr.c:1960: error: 'SANE_DESC_SENSORS' undeclared (first use in this function)
gmake[2]: *** [libcanon_dr_la-canon_dr.lo] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1

>How-To-Repeat:
have old version of sane-backends installed
cd /usr/ports/graphics/sane-backends && make
>Fix:
Apply additional patch:

--- backend/Makefile.in.orig 2009-04-30 17:41:18.000000000 +0400
+++ backend/Makefile.in   2009-05-24 12:02:03.000000000 +0400
@@ -1138,7 +1138,7 @@
 libxerox_mfp_la_LIBADD =
 am_libxerox_mfp_la_OBJECTS = libxerox_mfp_la-xerox_mfp.lo
 libxerox_mfp_la_OBJECTS = $(am_libxerox_mfp_la_OBJECTS)
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/sane
+DEFAULT_INCLUDES = -I$(top_builddir)/include/sane -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \


Patch attached with submission follows:

--- backend/Makefile.in.orig 2009-04-30 17:41:18.000000000 +0400
+++ backend/Makefile.in   2009-05-24 12:02:03.000000000 +0400
@@ -1138,7 +1138,7 @@
 libxerox_mfp_la_LIBADD =
 am_libxerox_mfp_la_OBJECTS = libxerox_mfp_la-xerox_mfp.lo
 libxerox_mfp_la_OBJECTS = $(am_libxerox_mfp_la_OBJECTS)
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/sane
+DEFAULT_INCLUDES = -I$(top_builddir)/include/sane -I.@am__isrc@ 
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun May 24 09:04:49 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134891 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun May 24 09:46:44 UTC 2009 
State-Changed-Why:  
a patch was committed please update your portstree. 

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