Bug 152671 - update of lang/python27 to 2.7.1 breaks multiple extensions
Summary: update of lang/python27 to 2.7.1 breaks multiple extensions
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: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 13:00 UTC by Milos Negovanovic
Modified: 2010-11-30 03:40 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 Milos Negovanovic 2010-11-29 13:00:27 UTC
1) devel/py-cheetah:

One or more C extensions failed to build.
Performance enhancements will not be available.
Pure Python installation succeeded.
===>  Installing for py27-cheetah-2.4.3
===>   py27-cheetah-2.4.3 depends on package: py27-markdown>=2.0.3 - found
===>   py27-cheetah-2.4.3 depends on file: /usr/local/bin/easy_install-2.7 - found
===>   py27-cheetah-2.4.3 depends on file: /usr/local/bin/python2.7 - found
===>   Generating temporary packing list
===>  Checking if devel/py-cheetah already installed
/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'line'
  warnings.warn(msg)
running easy_install
error: Not a URL, existing file, or requirement spec: '/usr/ports/devel/py-cheetah/work/Cheetah-2.4.3/dist/Cheetah-2.4.3-py2.7-freebsd-8.1-RELEASE-amd64.egg'
*** Error code 1

Stop in /usr/ports/devel/py-cheetah.


2) databases/py-psycopg2:

cc -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.2.2 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080405 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.7 -I. -I/usr/local/include -I/usr/local/include/postgresql/server -c psycopg/green.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/green.o
cc -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.2.2 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080405 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.7 -I. -I/usr/local/include -I/usr/local/include/postgresql/server -c psycopg/utils.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/utils.o
cc -shared ${LDFLAGS} -pthread build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/psycopgmodule.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/pqpath.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/typecast.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/microprotocols.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/microprotocols_proto.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/connection_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/connection_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/cursor_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/cursor_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/lobject_type.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/lobject_int.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_qstring.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pboolean.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_binary.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/ada
 pter_asis.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_list.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_datetime.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pfloat.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/adapter_pdecimal.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/green.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/psycopg/utils.o -L/usr/local/lib -lpq -o build/lib.freebsd-8.1-RELEASE-amd64-2.7/psycopg2/_psycopg.so
cc: ${LDFLAGS}: No such file or directory
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-psycopg2.


3) databases/py-sqlite3

cc -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -DMODULE_NAME="sqlite3" -I/usr/local/include -IModules/_sqlite -I/usr/local/include/python2.7 -c _sqlite/util.c -o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/util.o
creating build/lib.freebsd-8.1-RELEASE-amd64-2.7
cc -shared ${LDFLAGS} -pthread -O2 -pipe -fno-strict-aliasing build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/cache.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/connection.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/cursor.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/microprotocols.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/module.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/prepare_protocol.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/row.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/statement.o build/temp.freebsd-8.1-RELEASE-amd64-2.7/_sqlite/util.o -L/usr/local/lib -R/usr/local/lib -lsqlite3 -o build/lib.freebsd-8.1-RELEASE-amd64-2.7/_sqlite3.so
cc: ${LDFLAGS}: No such file or directory
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-sqlite3.


4) few more python packages are not building but i suspect problem is the same. Looks like C extensions dont build at all.

How-To-Repeat: update lang/python27 to latest 2.7.1 and try to build some python package.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-29 13:00:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 wenheping 2010-11-29 13:08:29 UTC
Hi,

  Is this build problem caused by the update of python27 to 2.7.1 ?
Or it existed with 2.7.0 ?


wen
Comment 3 Milos Negovanovic 2010-11-29 13:12:42 UTC
On Mon, Nov 29, 2010 at 09:08:29PM +0800, wen heping wrote:
> Hi,
> 
>   Is this build problem caused by the update of python27 to 2.7.1 ?
> Or it existed with 2.7.0 ?
> 
> 
> wen

Yes, its caused by update of python27 to 2.7.1. All extensions used to
build fine with 2.7.0.

Ive updated python27 this morning and went on to recompile my python
extensions.

-- 
Milos Negovanovic
milos.negovanovic@gmail.com
Comment 4 Milos Negovanovic 2010-11-29 15:35:58 UTC
On Mon, Nov 29, 2010 at 01:12:41PM +0000, Milos Negovanovic wrote:
> On Mon, Nov 29, 2010 at 09:08:29PM +0800, wen heping wrote:
> > Hi,
> > 
> >   Is this build problem caused by the update of python27 to 2.7.1 ?
> > Or it existed with 2.7.0 ?
> > 
> > 
> > wen
> 
> Yes, its caused by update of python27 to 2.7.1. All extensions used to
> build fine with 2.7.0.
> 
> Ive updated python27 this morning and went on to recompile my python
> extensions.

One thing crossed my mind ... It could be setuptools issue rather then
python27.

-- 
Milos Negovanovic
milos.negovanovic@gmail.com
Comment 5 Milos Negovanovic 2010-11-29 23:00:17 UTC
I was able to fix the issue with following patch to my python 2.7.1
install:


--- /usr/local/lib/python2.7/config/Makefile.orig       2010-11-29 22:32:30.000000000 +0000
+++ /usr/local/lib/python2.7/config/Makefile    2010-11-29 22:52:32.000000000 +0000
@@ -106,9 +106,9 @@
 
 # Symbols used for using shared libraries
 SO=            .so
-LDSHARED=      $(CC) -shared ${LDFLAGS} $(LDFLAGS)
-BLDSHARED=     $(CC) -shared ${LDFLAGS} $(LDFLAGS)
-LDCXXSHARED=   $(CXX) -shared ${LDFLAGS}
+LDSHARED=      $(CC) -shared $(LDFLAGS)
+BLDSHARED=     $(CC) -shared $(LDFLAGS)
+LDCXXSHARED=   $(CXX) -shared $(LDFLAGS)
 DESTSHARED=    $(BINLIBDEST)/lib-dynload
 
 # Executable suffix (.exe on Windows and Mac OS X)


File that generates this Makefile probably needs to be patched at
compile time.

-- 
Milos Negovanovic
milos.negovanovic@gmail.com
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-11-30 03:35:00 UTC
wen         2010-11-30 03:34:54 UTC

  FreeBSD ports repository

  Modified files:
    lang/python27        Makefile 
  Added files:
    lang/python27/files  patch-Makefile.pre.in 
  Log:
  - Fix the run error when build c extensions
  
  PR:             ports/152671
  Submitted by:   Milos Negovanovic <milos.negovanovic@gmail.com>
  
  Revision  Changes    Path
  1.171     +1 -0      ports/lang/python27/Makefile
  1.3       +13 -0     ports/lang/python27/files/patch-Makefile.pre.in (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Wen Heping freebsd_committer freebsd_triage 2010-11-30 03:37:10 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!