Package Details: python26 2.6.9-10

Git Clone URL: https://aur.archlinux.org/python26.git (read-only)
Package Base: python26
Description: Legacy version Python 2.6 of the high-level scripting language
Upstream URL: http://www.python.org/
Licenses: PSF
Provides: python2=2.6.9
Submitter: None
Maintainer: SpotlightKid (yan12125)
Last Packager: yan12125
Votes: 57
Popularity: 1.100551
First Submitted: 2010-10-14 18:27
Last Updated: 2016-11-26 13:10

Dependencies (13)

Required by (1000)

Sources (16)

  • http://www.python.org/ftp/python/2.6.9/Python-2.6.9.tar.xz
  • modulator-launcher
  • pynche-launcher
  • python-2.6-db-4.8.patch
  • python-2.6-dbm.patch
  • python-2.6-distutils.patch
  • python-2.6-expat-2.2.patch
  • python-2.6-internal-expat.patch
  • python-2.6-mhlib-nlinks.patch
  • python-2.6-pyexpat-segfault.patch
  • python-2.6-readline-6.3.patch
  • python-2.6-socket-test.patch
  • python-2.6-sqlite-test.patch
  • python-2.6-ssl-nosslv3.patch
  • python-2.6-tkinter-86.patch
  • python-2.6-whichdb-gdbm-1.9.patch

Latest Comments

SpotlightKid commented on 2017-02-03 10:20

@vita_cell: Sorry, I can not reproduce this error. There seems to be something wrong with your environment. Your build tries to link with /usr/local/lib/libpython2.6.a instead of the library built by the package. Please check your environment whether you have any CFLAGS, LDFLAGS or similar in there.

vita_cell commented on 2017-02-03 06:38

I tryed everything, and it won't compile. Only throws errors. Here is output:

http://dpaste.com/3GJRPXH

---------------------------------------------------------------------------
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 124, in <module>
import cStringIO
ImportError: No module named cStringIO
make: [Makefile:700: test] Error 1 (no tiene efecto)
LD_LIBRARY_PATH=/home/vita/Desktop/python26/src/Python-2.6.9: ./python -E -tt ./Lib/test/regrtest.py -l
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 124, in <module>
import cStringIO
ImportError: No module named cStringIO
make: *** [Makefile:701: test] Error 1
--------------------------------------------------------------------------

Also I tryed compile the raw source with CC=gcc-5 CXX=g++-5 CPP=cpp-5. Can someone to fix it? can not to do more.

yan12125 commented on 2016-11-26 13:11

Thanks for that doc. ChangeLog updated.

SpotlightKid commented on 2016-11-26 12:56

@yan12125: Sorry, the errors were due to a left-over debugging statement in my PKGBUILD. Everything compiles cleanly here now too.

You might want to update/correct the Changelog with the next release:

https://gist.github.com/SpotlightKid/d59bc43e03bdb917dd917ab83668d86d

yan12125 commented on 2016-11-26 08:58

Land the socket test patch first. @SpotlightKid if you don't mind how about sharing the build log and I may guess what's wrong.

yan12125 commented on 2016-11-24 07:56

_ssl.so and dbm.so builds fine on my machine. If you wish, I can adopt this

SpotlightKid commented on 2016-11-23 20:50

@yan12125 Thanks for the heads up. I was able to integrate your patch, but I currently have two other modules that fail to compile: _ssl (again) and dbm. I tried a patch from the official repo for the latter, which seemed applicable, but it didn't fix it.

To be honest, it's getting increasingly difficult to compile Python 2.6 on modern systems and I don't much see the point in keeping this AUR package any more. If you need to use old Python versions, pyenv (https://github.com/yyuu/pyenv) does a lot better job than this. So, unless somebody offers a fix for the PKGBUILD or wants to take over maintainership intermediately, I'll probably orphan the package soon.

yan12125 commented on 2016-11-19 16:27

Test suite fails since testing/filesystem 2016.11. [1] Could you add the following patch? It's ported from CPython r86565 [2]

--- Python-2.6.9/Lib/test/test_socket.py.orig 2016-11-08 20:40:24.456911160 +0800
+++ Python-2.6.9/Lib/test/test_socket.py 2016-11-08 20:41:01.106910886 +0800
@@ -480,7 +480,11 @@
# XXX(nnorwitz): http://tinyurl.com/os5jz seems to indicate
# it reasonable to get the host's addr in addition to 0.0.0.0.
# At least for eCos. This is required for the S/390 to pass.
- my_ip_addr = socket.gethostbyname(socket.gethostname())
+ try:
+ my_ip_addr = socket.gethostbyname(socket.gethostname())
+ except socket.error:
+ # Probably name lookup wasn't set up right; skip this test
+ return
self.assert_(name[0] in ("0.0.0.0", my_ip_addr), '%s invalid' % name[0])
self.assertEqual(name[1], port)

[1] https://lists.archlinux.org/pipermail/arch-general/2016-November/042467.html
[2] https://mail.python.org/pipermail/python-checkins/2010-November/099657.html

SpotlightKid commented on 2016-07-23 11:41

@yan12125,@max-k: I integrated the patch. Thanks!

max-k commented on 2016-07-19 09:11

Hi,

Here is a full patch implementing yan12125's fix :

https://gist.github.com/max-k/db59dd0a990b3bc2abf13f3ec97e8e01

Thank you to update your package.

All comments