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.364808
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

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.

yan12125 commented on 2016-07-07 14:44

Here's a new bug for Python due to updated expat: http://bugs.python.org/issue27369. It causes tests failed. This patch works for me: https://gist.github.com/yan12125/5e3c50aa2298965af7107a96ebc5e540

SpotlightKid commented on 2016-05-26 16:07

@yan12125: I can confirm the failing tests.

I had to solve this by compiling the package with GCC 5.3 (from the 'gcc5' AUR package), setting the CC, CXX and CPP environment variables to 'gcc-5', 'g++-5' and 'cpp-5' respectively.

Unfortunately this means that you have to build and install the 'gcc5' package to build this package, which can take a LOOOOONG time.

Make sure that you build the package with a clean source directory, i.e. if you use 'makepkg', remove an existing 'src' directory first.

All comments