Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268862 - python version not properly detected in app-mobilephone/bitpim ebuild
Summary: python version not properly detected in app-mobilephone/bitpim ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 21:36 UTC by slynn@granite-mtn.net
Modified: 2009-06-22 00:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
updated bitpim ebuild with corrected sed statement for python version (bitpim-1.0.6-r1.ebuild,3.57 KB, text/plain)
2009-05-06 21:37 UTC, slynn@granite-mtn.net
Details
patch to correct sed statement (bitpim-1.0.6-r1.patch,439 bytes, patch)
2009-06-21 22:27 UTC, Steve
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description slynn@granite-mtn.net 2009-05-06 21:36:37 UTC
Existing app-mobilephone/bitpim ebuild has a sed command which does not properly 
change the bitpim build script to the proper python version.  I recently upgraded 
to python-2.6, ran python updater and then removed python-2.5 leaving only 
python-2.6 on the system.  

bitpim-1.0.6.ebuild munges a build.sh prepping for swig to change from a 
hardcoded PYTHONVER variable to a dynamic one calculated from the installed 
Gentoo python version.  Unfortunately the sed command is wrong (and nobody
would see it unless they were not on python-2.5).


Attached ebuild corrects this problem.

Reproducible: Always

Steps to Reproduce:
1. Upgrade to python-2.6 only on your Gentoo system
2. Try to install bitpim
3. watch it fail!

Actual Results:  
Note that I'm using paludis for the following:

>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_compile
./build.sh: line 2: python2.5: command not found
/usr/include/usb.h:337: Warning(302): Identifier 'usb_device' redefined (ignored),
/usr/include/usb.h:249: Warning(302): previous definition of 'usb_device'.
gcc: _libusb.so: No such file or directory

etc....

Expected Results:  
an actual installation
Comment 1 slynn@granite-mtn.net 2009-05-06 21:37:24 UTC
Created attachment 190542 [details]
updated bitpim ebuild with corrected sed statement for python version
Comment 2 Steve 2009-06-21 22:27:34 UTC
Created attachment 195402 [details, diff]
patch to correct sed statement 

This is still broken in bitpim-1.0.6-r1.  Attached is a patch for bitpim-1.0.6-r1 with Sean's fix.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2009-06-22 00:05:15 UTC
Fixed in 1.0.6-r1 (no rev bump).