Subject: pkg/14893: graphics/py-imaging fails to compile (xpkgwedge problem?)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 12/10/2001 15:11:49
>Number:         14893
>Category:       pkg
>Synopsis:       graphics/py-imaging fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 10 07:37:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Robert Elz
>Release:        NetBSD-current 20011126 (pkgsrc 20011206)
>Organization:
	Prince of Songkla University
>Environment:
	
System: NetBSD fuchsia 1.5Y NetBSD 1.5Y (FUCHSIA) #2: Mon Nov 26 13:41:27 ICT 20
01 kre@fuchsia:/usr/obj/sys/FUCHSIA i386
Architecture: i386
Machine: i386

>Description:
	graphics/py-imaging fails to compile
>How-To-Repeat:
	cd pkgsrc/pkgtools/xpkgwedge
	make install
			# That is probably not relevant to this particular
			# problem - it is included for completeness though
	cd ../../graphics/py-imaging
	make install

	wait for ...

	cc -fPIC -O -I./. -I/include -DHAVE_CONFIG_H  -c JpegDecode.c
	In file included from JpegDecode.c:35:
	Jpeg.h:10: jpeglib.h: No such file or directory
	*** Error code 1

Somehow, in the Imaging-1.1.1/libImaging Makefile, PREFIX is unset (or ""),
leading to "-I/include" instead of "-I/usr/pkg/include"

>Fix:
	Workaround .... when error occurs:

	(
		cd work*/Imaging-1.1.1/libImaging
		make PREFIX=/usr/pkg
	)
	make install
>Release-Note:
>Audit-Trail:
>Unformatted: