Bug 129830 - print/hplip configure thinks python2.5 < phython2.2
Summary: print/hplip configure thinks python2.5 < phython2.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-21 21:40 UTC by huntting
Modified: 2009-02-02 14:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description huntting 2008-12-21 21:40:03 UTC
/usr/ports/print/hplip fails to configure.  I tried adding a USE_AUTOTOOLS=autoconf:262, but this also breaks.

The problem seems to be in the way it checks the python version.  I've also tried to remove this code from the configure script, but to no avail.  Configure gets as far as this:


..
checking for net-snmp/net-snmp-config.h... yes
checking for cupsDoFileRequest in -lcups... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking for usb_init in -lusb... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking whether /usr/local/bin/python2.5 version >= 2.2... configure: error: too old
===>  Script "configure" failed unexpectedly.
Please report the problem to amistry@am-productions.biz [maintainer] and
attach the
"/var/tmp/ports/.amd_mnt/antediluvian/host/home/huntting/src/hplip/work/hplip-2.8.2/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /.amd_mnt/antediluvian/host/home/huntting/src/hplip.
*** Error code 1

Stop in /.amd_mnt/antediluvian/host/home/huntting/src/hplip.
paper$

Fix: 

Expunge the version test from configure and add USE_PYTHON=2.2+ to the port Makefile.

Alas, I havnt been able to do this.
How-To-Repeat: Install python2.5 and then trying to compile hplip.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-12-22 10:53:31 UTC
Maintainer of print/hplip,

Please note that PR ports/129830 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129830

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-12-22 10:53:32 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2009-01-28 07:04:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2009-01-28 07:40:06 UTC
Hi Brad,

can you still reproduce the build problem with print/hplip you reported
[1] with an up-to-date system/ports tree? I could not reproduce it here:

[...]
checking for net-snmp/net-snmp-config.h... yes
checking for cupsDoFileRequest in -lcups... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking for usb_init in -lusb... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking whether /usr/local/bin/python2.5 version >= 2.2... yes
checking for /usr/local/bin/python2.5 version... 2.5
checking for /usr/local/bin/python2.5 platform... freebsd7
checking for /usr/local/bin/python2.5 script directory... ${prefix}/lib/python2.5/site-packages
checking for /usr/local/bin/python2.5 extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for path to Python.h... "using /usr/local/include/python2.5"
checking python2.5/Python.h usability... yes
checking python2.5/Python.h presence... yes
checking for python2.5/Python.h... yes
[...]

Regards,
Stefan

[1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129830
Comment 5 Stefan Walter freebsd_committer freebsd_triage 2009-02-02 14:17:24 UTC
State Changed
From-To: feedback->closed

No reply from submitter, and the problem described wasn't reproducible in a 
tinderbox.