Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 60491
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: jrcd83 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From jrcd83 [...] gmail.com Wed Aug 18 20: 58:31 2010
MIME-Version: 1.0 (Apple Message framework v1077)
X-Spam-Status: No, score=-9.913 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686] autolearn=ham
X-Mailer: Apple Mail (2.1077)
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Message-ID: <02D07B8A-EBAC-497B-A3E0-FD6105FCC6A8 [...] gmail.com>
Content-Type: multipart/mixed; boundary=Apple-Mail-3--1070232594
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -9.913
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2134D240B74 for <cpan-bug+Imager [...] hipster.bestpractical.com>; Wed, 18 Aug 2010 20:58:31 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 915MBhU4+RsA for <cpan-bug+Imager [...] hipster.bestpractical.com>; Wed, 18 Aug 2010 20:58:29 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DEAC2240A87 for <bug-Imager [...] rt.cpan.org>; Wed, 18 Aug 2010 20:58:28 -0400 (EDT)
Received: (qmail 17481 invoked by uid 103); 19 Aug 2010 01:00:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 19 Aug 2010 01:00:52 -0000
Received: from mail-px0-f178.google.com (HELO mail-px0-f178.google.com) (209.85.212.178) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Wed, 18 Aug 2010 18:00:50 -0700
Received: by pxi16 with SMTP id 16so537680pxi.9 for <bug-Imager [...] rt.cpan.org>; Wed, 18 Aug 2010 18:00:47 -0700 (PDT)
Received: by 10.142.172.1 with SMTP id u1mr7807708wfe.137.1282179647697; Wed, 18 Aug 2010 18:00:47 -0700 (PDT)
Received: from [192.168.0.102] (host61-50.sierragem.com [65.200.61.50]) by mx.google.com with ESMTPS id n2sm1000029wfl.13.2010.08.18.18.00.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 18:00:47 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=jrcd83 [...] gmail.com
Delivered-To: cpan-bug+Imager [...] hipster.bestpractical.com
Subject: [PATCH] libpng probe/test fails with non-standard location
Return-Path: <jrcd83 [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; b=TPlx1IT0hwT3q5kPgbFg8frr+6GtKK483RfKKUFWMFYbWcAR3/BCMZXhF7Z6pzPek6 fGZS9dngxVrIodB54T3lS/+09KrKj+9NY8uxN9sdti2JPnss09P04uWRxL6bgXuh3q3q fGmH0aijd+f/kxRW+CTvDof2w/ZwTIgy1hp3E=
X-RT-Mail-Extension: imager
X-Original-To: cpan-bug+Imager [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type:subject :date:message-id:to:mime-version:x-mailer; bh=a8VjNuKVYHp2ndkGAtWoSjujrBskNA8gSbt+UikpeNI=; b=JIGyeBjMYW1U1l+APopU4cqZLWimAHs8enaEmKymUT0zNkkWCRP+sy02BpkdOon993 DJ1rYbIRbZTQSCzPuLKfgmF5UiG7o4BlMhcvPP8MjJRmpieH7BLGHevJNu6pBbQ9TFmr vghw7DNhtOJHIVSC+oH5FmVw296lJXeASm6DM=
Date: Wed, 18 Aug 2010 18:00:45 -0700
X-Spam-Level:
To: bug-Imager [...] rt.cpan.org
From: Justin Davis <jrcd83 [...] gmail.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 3109
I have installed libraries and modules into a separate prefix for a website I am developing. When I try to install Imager using a libpng that is in a non-standard location (directory) Makefile.PL fails to probe libpng and returns an error. I also noticed pkg-config could not find png's information. This is because pkg-config's data-files are also in the non-standard location, in the $PREFIX/lib/pkgconfig/ directory. I will paste the example problem output and attach a patch for lib/Imager/Probe.pm, which PNG/Makefile.PL uses. EXAMPLE OUTPUT (BEFORE PATCH) [juster@artemis Imager]$ perl Makefile.PL --incpath $PREFIX/include --libpath $PREFIX/lib done. gif: includes found - libraries found ungif: includes found - libraries not found jpeg: includes found - libraries found tiff: includes found - libraries found freetype2: includes not found - libraries not found freetype2: not available T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries not found w32: includes not found - libraries not found EXIF support enabled Checking if your kit is complete... Looks good Writing Makefile for Imager::CountColor Writing Makefile for Imager::Filter::DynTest Writing Makefile for Imager::Filter::Flines Writing Makefile for Imager::File::ICO Writing Makefile for Imager::Filter::Mandelbrot PNG: Not found via pkg-config PNG: includes found - libraries found /home/juster/build/Imager/PNG/assertlibPEXHoAxI: error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory PNG: Test code failed: wrong result: 'png' Writing Makefile for Imager::File::SGI Writing Makefile for Imager::plugins Writing Makefile for Imager [juster@artemis Imager]$ EXAMPLE OUTPUT (AFTER PATCH) [juster@artemis Imager.patched]$ perl Makefile.PL --incpath $PREFIX/include --libpath $PREFIX/lib done. gif: includes found - libraries found ungif: includes found - libraries not found jpeg: includes found - libraries found tiff: includes found - libraries found freetype2: includes not found - libraries not found freetype2: not available T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries not found w32: includes not found - libraries not found EXIF support enabled Writing Makefile for Imager::CountColor Writing Makefile for Imager::Filter::DynTest Writing Makefile for Imager::Filter::Flines Writing Makefile for Imager::File::ICO Writing Makefile for Imager::Filter::Mandelbrot PNG: Found via pkg-config libpng14 PNG: library version 10402, header version 10402 PNG: Passed code check Writing Makefile for Imager::File::PNG Writing Makefile for Imager::File::SGI Writing Makefile for Imager::plugins Writing Makefile for Imager [juster@artemis Imager.patched]$ The patch that I used is attached to this email. There was a typo in Imager::Probe which never allowed LD_RUN_PATH to be set. I have also allowed pkg-config to search non-standard locations by setting the PKG_CONFIG_PATH environment variable. Thanks, Justin
content-type: application/octet-stream; name="imager-libpng.patch"
content-disposition: attachment; filename="imager-libpng.patch"
Content-Transfer-Encoding: 7bit
Content-Length: 1194
Download imager-libpng.patch
text/x-diff 1.1k

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
In-Reply-To: <02D07B8A-EBAC-497B-A3E0-FD6105FCC6A8 [...] gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <02D07B8A-EBAC-497B-A3E0-FD6105FCC6A8 [...] gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-29991-1286519752-411.60491-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 572
Download (untitled) / with headers
text/plain 572b
On Wed Aug 18 21:00:56 2010, jrcd83@gmail.com wrote: Show quoted text
> I have installed libraries and modules into a separate prefix for a > website I am developing. When I try to install Imager using a > libpng that is in a non-standard location (directory) Makefile.PL > fails to probe libpng and returns an error. I also noticed pkg- > config could not find png's information. This is because pkg- > config's data-files are also in the non-standard location, in the > $PREFIX/lib/pkgconfig/ directory.
Hi, This is fixed in Imager 0.78, thanks for the report. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.