[issue14706] Inconsistent os.access os.X_OK on Solaris and AIX when running as root
New submission from Adi Roiban a...@roiban.ro: The return value of os.access(FILE, os.X_OK) is not consistent across operating system when executed as root I have tested with Python 2.5 on Linux and Solaris, but there is a bug in python-nose reporting the same behavior with Python 2.6 on Solaris and AIX. http://code.google.com/p/python-nose/issues/detail?id=423 --- On Solaris: $ ls -al -rw-rw-r-- 1 buildslave other 1079 May 1 16:25 nose_runner.py $ ./bin/python Python 2.5.6 (r256:88840, Nov 1 2011, 12:19:05) [GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5 Type help, copyright, credits or license for more information. import os os.access('nose_runner.py', os.X_OK) False $ sudo ./bin/python Python 2.5.6 (r256:88840, Nov 1 2011, 12:19:05) [GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5 Type help, copyright, credits or license for more information. import os os.access('nose_runner.py', os.X_OK) True -- On Linux: $ ls -al -rw-rw-r-- 1 adi adi 1079 2012-05-02 11:25 nose_runner.py $ ./bin/python Python 2.5.5 (r255:77872, Sep 14 2010, 16:22:46) [GCC 4.4.5] on linux2 import os os.access('nose_runner.py', os.X_OK) False $ sudo ./bin/python Python 2.5.5 (r255:77872, Sep 14 2010, 16:22:46) [GCC 4.4.5] on linux2 import os os.access('nose_runner.py', os.X_OK) False -- messages: 159784 nosy: adiroiban priority: normal severity: normal status: open title: Inconsistent os.access os.X_OK on Solaris and AIX when running as root type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14706] Inconsistent os.access os.X_OK on Solaris and AIX when running as root
Adi Roiban a...@roiban.ro added the comment: Many thanks for your comment! Cheers, Adi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14706 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14557] HP-UX libraries not included
Adi Roiban a...@roiban.ro added the comment: Hi, startswith('hp-ux') should also work as in real world it should be synonym with hp-ux11 ... see my reasoning below I used 'hp-ux11' since this was the system I have access to and can test and I was not brave enought to assume that the patch will work on future or past version. According to wikipedia HP-UX 11.00 was relesed in 1997... and I see a trend to change the minor version number . Latest is 11.31 released in 2007... HPUX 10 is from 1995 and I am not sure if Python will work at all on such a system. As a side node, i think that HPUX will slowly die and we will not see an HP-UX 12. Cheers, Adi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems
Adi Roiban a...@roiban.ro added the comment: Hi, Not sure what codebase was used for the patch. I have manually patched the test on 2.5.6 and the test_posix tests passed. Thanks! Adi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14568] HP-UX local libraries not included
New submission from Adi Roiban a...@roiban.ro: Hi, Sorry for bothering you. In my initial report, I did not added /usr/local/lib paths , since I was thinking that Python should only work with the default library location. Now I see that /usr/local is added just at the beginning of module building. The default HPUX system comes with openssl, but for example there is no zlib. Now, on HPUX one can use the Connect archives from http://hpux.connect.org.uk/ They come with a nice tool for providing similar functionality like apt-get or yum. zlib is included in HPUX Connect archive. HPUX Connect packages are installed in /usr/local With the initial code I was able to build hashlib and other extensions using libraries from /usr/local To include /usr/local/lib/hpux* in the path, I also had to add them to self.compiler.library_dirs as otherwise they were not added in LD. I am not sure how it did work in the first place, since on HPUX openssl is in /usr/lib/hpux* and not in /usr/lib/ Here is the code # HP-UX keeps files in lib/hpux folders. if platform == 'hp-ux11': for hpux_path in [ '/usr/lib/hpux64', '/usr/lib/hpux32', '/usr/local/lib/hpux64', '/usr/local/lib/hpux32', ]: lib_dirs += hpux_path add_dir_to_list(self.compiler.library_dirs, hpux_path) With the following code I was able to also build the extensions using libraries from /usr/local on HPUX. I am new to python build system and I am not sure if this is the right way to do it. I am also new to 'hg'. I have pulled the latest changed for cpython but I can not see the previous changes in 'default' branch. I have attached a patch based on 76268:3df2f4a83816 Thanks! Adi -- components: Extension Modules files: hpux_local_lib.diff keywords: patch messages: 158171 nosy: adiroiban priority: normal severity: normal status: open title: HP-UX local libraries not included Added file: http://bugs.python.org/file25198/hpux_local_lib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14568 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1572968] release GIL while doing I/O operations in the mmap module
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1572968 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9123] insecure os.urandom on VMS
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9123 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems
Adi Roiban a...@roiban.ro added the comment: I am not sure how the search works, but for example I was not able to reach http://bugs.python.org/issue5895 while searching for hpux or hp-ux using the internal search. Also I was not able to find any aix or solaris bug. In case you bump over an hpux, aix, solaris bug, please add me to the noisy list and I will take a look. Thanks! Adi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14568] HP-UX local libraries not included
Adi Roiban a...@roiban.ro added the comment: Hi, There was an error in the patch. Instead of lib_dirs += hpux_path it should be: lib_dirs += [hpux_path] Cheers, -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14568 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9175] ctypes doesn't build on hp-ux
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14557] HP-UX libraries not included
New submission from Adi Roiban a...@roiban.ro: Hi, I am trying to build Python on HP-UXiv3. HP-UX also keeps libs in /usr/lib/hpux64 and /usr/lib/hpux32. I have attached a patch for searching these folders. The patch is against the latest version of cpython. I have tests the change on Python 2.5.6. Cheers, Adi -- files: hpux-libs.diff keywords: patch messages: 158099 nosy: adiroiban priority: normal severity: normal status: open title: HP-UX libraries not included Added file: http://bugs.python.org/file25184/hpux-libs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5895] socketmodule.c on HPUX ia64 without _XOPEN_SOURCE_EXTENDED compiles incorrectly
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5895 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11181] TLS end connection not detected properly in retrbinary
Adi Roiban a...@roiban.ro added the comment: Hi, I apologies for raising this issues. It looks like FTP_TLS is not available in Python 3.1 ... and retrbinary is working in Python 2.7. What I actually done, was backporting ftplib.py from 2.7 to 2.5 and using pyOpenSSL instead of the standard ssl module. It looks like the standard „ssl” module from 2.7 return 0 instead of ssl.ZeroReturnError. -- resolution: - invalid status: open - closed versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11181] TLS end connection not detected properly in retrbinary
New submission from Adi Roiban a...@roiban.ro: FTP_TLS.retrybinary should detect the end of a TLS read in the same way as FTP.TLS_retryline does. it should be something like this... catching ssl.ZeroReturnError as a valid expection for signaling EOF. try: data = conn.recv(blocksize) except ssl.ZeroReturnError: # pyOpenSSL does not return 0, but rather # SSL.ZeroReturnError pass if not data: break callback(data) -- components: Library (Lib) messages: 128360 nosy: adiroiban priority: normal severity: normal status: open title: TLS end connection not detected properly in retrbinary type: crash versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com