[AG-TECH] AGTk 2.x and RH9

Robert Olson olson at mcs.anl.gov
Wed Aug 13 13:33:27 CDT 2003


yes. are you seeing the kerberos/openssl header file errors? if so the 
following patch should help in getting it built. I've not merged this into 
the standard FL pyOpenssl tree yet for worrying about it not doing the 
right thing on other platforms.

(I have an RH9 box that I do AG development on).

--bob

At 11:11 AM 8/13/2003 -0700, Randy Groves wrote:
>I've been moving through trying to check out the CVS on RH9 (which happens 
>to be a convenient machine), and am running into issues with pyOpenSSL.  I 
>will probably move this whole effort over to a 7.3 machine and so doing 
>sidestep this, but it brings up an interesting question - one which I 
>think that I've seen reference to on the list.
>
>Will AGTk 2.1 run on RedHat 9?
>
>-randy
>


*** setup.py    2003-05-20 16:55:10.000000000 -0500
--- ../pyOpenSSL.old.2003-0912/setup.py 2003-05-21 11:07:33.000000000 -0500
***************
*** 52,57 ****
--- 52,73 ----
   IncludeDirs = [r'c:\temp\ssl\openssl-0.9.6i\inc32']
   LibraryDirs = [r'c:\temp\ssl\openssl-0.9.6i\out32']

+ Defines = []
+
+ #
+ # Test for Redhat9; its stock openssl build fails unless
+ # the kerberos define is removed.
+ #
+
+ try:
+     f = open("/etc/issue")
+     l = f.readline()
+     if l.startswith("Red Hat Linux release 9 (Shrike)"):
+       Defines.append(("OPENSSL_NO_KRB5", 1))
+     f.close()
+ except:
+     pass
+

   # Add more platforms here when needed
   if os.name == 'nt' or sys.platform == 'win32':
***************
*** 62,67 ****
--- 78,87 ----
   if sys.platform == 'darwin':
       IncludeDirs = ['/sw/include']
       LibraryDirs = ['/sw/lib']
+ # Doesn't make use of pkgconfig easily, so fudge it
+ elif os.name == 'posix':
+     IncludeDirs = ['/usr/kerberos/include']
+     LibraryDirs = ['/usr/kerberos/lib']

   def mkExtension(name):
       import string
***************
*** 69,74 ****
--- 89,95 ----
       src = globals()['%s_src' % string.lower(name)]
       dep = globals()['%s_dep' % string.lower(name)]
       return Extension(modname, src, libraries=Libraries, depends=dep,
+                    define_macros = Defines,
                        include_dirs=IncludeDirs, library_dirs=LibraryDirs)

   setup(name='pyOpenSSL', version='0.5.1',




More information about the ag-tech mailing list