My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 280: Compilation fail on freebsd
3 people starred this issue and may be notified of changes. Back to list
Status:  Hold
Owner:  ----


 
Reported by marc.vin...@corp.nerim.fr, Aug 3, 2012
What steps will reproduce the problem?
1. easy_install pyodbc

Fail at compile time

What version of the product are you using? On what operating system?
2.1.12, 3.0.6 on FreeBSD

Please provide any additional information below.

I add the patch, most of it is in FreeBSD ports
freebsd.setup.py.patch
837 bytes   View   Download
freebsd.src.pyodbc.h.patch
427 bytes   View   Download
Sep 26, 2012
Project Member #1 mkleehammer
I've added the change for the header file, but I'm not sure about the setup.py patch.  I know PREFIX is normal when compile C code, but distutils does provide -I and -L for this and setup.cfg can be used to provide them.

Thoughts on the setup patch?

Status: Started
Sep 27, 2012
Project Member #2 mkleehammer
(No comment was entered for this change.)
Status: Hold
Sep 28, 2012
#3 marc.vin...@corp.nerim.fr
I'm not an expert in distutils but it doesn't work with default settings for FreeBSD.

Here a new patch that i think will integrate better in the distutils philosophy.
setup.py.patch
473 bytes   View   Download
Sep 28, 2012
#4 marc.vin...@corp.nerim.fr
oops sorry forgot possible PREFIX env
This one will be better
setup.py.patch
626 bytes   View   Download
Dec 6, 2012
#5 rob.kr...@gmail.com
Those patches for setup.py work fine for standard installs but to properly respect the PREFIX variable it is a bit trickier (as in testing an install to /var/tmp/...)
This one seems to work well for me when using the PORTS framework.  There currently is a py-odbc port (2.1.5) in FreeBSD and I will submit an update Makefile and patches for the 3.0.6 version.
patch-setup-libs.patch
739 bytes   View   Download

Powered by Google Project Hosting