Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86277
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'explicitly': 0.05; 'already.': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7': 0.14; '"python",': 0.16; '(either': 0.16; '(just': 0.16; '24,': 0.16; 'be:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'python;': 0.16; 'subject:patch': 0.16; 'suite.': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'bit': 0.19; 'version.': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'test.': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'this:': 0.26; 'header:In- Reply-To:1': 0.27; 'url:bugs': 0.29; 'am,': 0.29; 'patch': 0.29; "doesn't": 0.30; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'python2.7': 0.31; 'stuff': 0.32; 'run': 0.32; 'up.': 0.33; 'url:python': 0.33; "i'd": 0.34; 'problem': 0.35; 'basic': 0.35; "can't": 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'easily': 0.37; 'system,': 0.38; 'branch': 0.38; 'depends': 0.38; 'that,': 0.38; 'anything': 0.39; 'system.': 0.39; 'either': 0.39; 'release': 0.40; 'how': 0.40; 'then,': 0.60; 'break': 0.61; 'simply': 0.61; "you'll": 0.62; 'grab': 0.64; 'latest': 0.67; 'yourself': 0.78; '2015': 0.84; 'fails,': 0.84; "it'd": 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=lC5v/WVQh99i/9dmUsRqvT+LorW6Dcv9iW/tWq12u0Q=; b=nv4wr8g5nBgbS5yCrZwki5yoby+kdyZ+/C655XqERA9WlD4as4ZL5Xe0ckkznvJqG7 vOmjJnNeV3MvvOOuvZCjoANtEq1N8B4Bds1kW5b6ZYUViMCTMVkbI000w1GCkk6JHmT8 1JZyG2ldmNEEGz4hi555px/8NA6vCvmzAm2SvZLTlCWtkSXauLpvkswl8KOhLEwWmI+d GcIwPOeHHaVQjPkQsml3RM/2M9Tss7WaSrSt9+s3zBrl+fOzDviXniBiqcx+NYFmsvtH VAXBeh3OiOIGMgAGOBNhiz2xxu2jYPrSaisRt5rf/8o+k/55gWnHjAkkDGmCUFp0J3VL dy4Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.4.40 with SMTP id h8mr16734443igh.34.1424736722632; Mon, 23 Feb 2015 16:12:02 -0800 (PST) |
| In-Reply-To | <CANR9iG-Jy7p3h9027kMT-zE4zjH_FKh8WX_Lrt=vxJU40g1OHg@mail.gmail.com> |
| References | <CANR9iG-Jy7p3h9027kMT-zE4zjH_FKh8WX_Lrt=vxJU40g1OHg@mail.gmail.com> |
| Date | Tue, 24 Feb 2015 11:12:02 +1100 |
| Subject | Re: How to apply python patch for issue9729 |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19107.1424736730.18130.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1424736730 news.xs4all.nl 2859 [2001:888:2000:d::a6]:33245 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:86277 |
Show key headers only | View raw
On Tue, Feb 24, 2015 at 8:09 AM, Sada Shirol <get2sada@gmail.com> wrote: > Upon some research found that I need to apply below patch: > > http://bugs.python.org/issue9729 > > How do I apply a patch to python 2.6.6 on Linux? Hmm. You have a bit of a problem there: The patch wasn't designed to apply to 2.6. So you may find that it doesn't apply at all, or needs some tweaking. But the basic plan would be: Grab the source code for either 2.6.9 or the exact 2.6.6 that was built for your system, build it and run the test suite (just to make sure), then apply the patch, compile again, and rerun the test suite. However, that's going to be a lot of hassle, and may well break stuff on your system. What I'd recommend is this: Don't try to patch your existing 2.6.6, but instead, grab yourself a Python 2.7 as a secondary. See if you can simply install a package named python2.7 (apt-get install python2.7, or yum install python2.7), or if that fails, grab the source code (either the 2.7.8 release or the latest from the 2.7 branch in Mercurial) and compile it. Either way, it'd be an *alternate* Python; when you simply run "python", you'll continue to run the unpatched 2.6.6, but if you explicitly run "python2.7", you'll get the newer version. That way, you can't break anything that, wittingly or unwittingly, depends on the behaviour of 2.6; but if you want the patch, you can easily call it up. And then, of course, test. Test test test. But you knew that part already. :) ChrisA
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: How to apply python patch for issue9729 Chris Angelico <rosuav@gmail.com> - 2015-02-24 11:12 +1100 Re: How to apply python patch for issue9729 Grant Edwards <invalid@invalid.invalid> - 2015-02-24 17:49 +0000
csiph-web