Questions tagged [backport]

Backporting is the action of either taking a new version of a piece of software and making it available in an older distribution, or taking a certain software modification (patch) and applying it to an older version of the software than it was initially created for.

Backporting forms part of the maintenance step in a software development process and it is commonly used for fixing security issues in older versions of the software.

73 questions
2
votes
2 answers

python backports for some methods

Is there any backport for the following methods to work with python 2.4: any, all, collections.defaultdict, collections.deque
khelll
  • 22,128
  • 15
  • 84
  • 108
2
votes
0 answers

Porting a Python 2.X based project to Python 3

I want to port a web application scanning framework from Python 2.6.5-2.7.3 to Python 3 without causing much harm to the compatibility with Python 2.6+. I have read briefly about six: Python 2 and 3 Compatibility Library and python-modernize. The…
2
votes
0 answers

Backport railtie console change from Rails 4 to Rails 3.2.11?

I'm getting some annoying test-related warnings and deprecation notices when running rails c or rails s; I tracked it down to this file. However, it looks like this issue is already fixed in Rails…
neezer
  • 17,628
  • 29
  • 114
  • 213
2
votes
2 answers

what does the 'with' function in python do?

I have a python script that reads in a .csv file that works fine for Python 2.7 but is breaking on Python 2.4. The error being thrown is on the line with open(sys.argv[1], 'rb') as csvfile: Right here it's giving me a syntax error so my question…
avorum
  • 1,925
  • 7
  • 32
  • 47
2
votes
1 answer

How to deploy .net 3.5 application that is now using the task parallel library backport

I am trying to put out a new version of an existing .net 3.5 application that now uses the task parallel library backport for .net 3.5. I know I need to distribute System.Threading.dll to the users (version 1.0.2856.102), but I am not sure where to…
Geo242
  • 419
  • 3
  • 13
1
vote
1 answer

Reducing code duplication in C++: using same boilerplate snippets across slightly varying projects

A bit about my specific use case: I have a plugin that's designed to be integrated with Unreal Engine projects, and in order to demonstrate how to do this to users of the plugin, I've integrated it with one of Unreal's freely available sample games…
x6herbius
  • 567
  • 5
  • 19
1
vote
1 answer

Android bluetooth socket error

I am using backport bluetooth api on android 1.6. I am using Google Bluetooth Chat sample app for testing. The app works fine in normal scenarios. In a scenario, when I try to connect to paired device which is in off state, I get following…
Ashwini Shahapurkar
  • 6,516
  • 6
  • 25
  • 35
1
vote
1 answer

Py2exe and ConfigParser Error

I'm using Py2exe and ConfigParser but I have somo problems. I have installed configparser from pip (pip install configparser) and it works fine. In my code I import the package like this import ConfigParser and when I execute works. Now I have used…
j.barrio
  • 881
  • 1
  • 8
  • 30
1
vote
1 answer

Automatically backport python 2.7 to 2.6

I need to run some Python 2.7 code under Python 2.6 and I was wondering how that could be automated. Some specific simple changes are sed -i -e 's/:,d/:d/g' -e 's/{0}/set([0])/g' foo.py However, I also need to replace with open(foo) as f,…
sds
  • 52,616
  • 20
  • 134
  • 226
1
vote
1 answer

Implementing enum for reverse compatibility

An application running in java 1.8 have to run in few boxes with java 1.4. The application uses a lot of constants (thousands of them) and everything is implemented using functional enums. Which is the best way to make it reverse compatible? EDIT…
RBz
  • 761
  • 2
  • 13
  • 30
1
vote
1 answer

What does this mean in android library?

This library will NOT do anything that is not strictly needed for this to build/work. Since this class has since been removed from AOSP, this library should be considered DEPRECATED. No efforts will be put into it, including merging PRs, for…
1
vote
1 answer

Matlab text on Linux with Intel graphics

On my laptop with an Intel HD 5500 graphics card, if I run Matlab (locally or on a remote machine) some text in menus and inside figures is unreadable. This is what the Edit menu of an empty figure looks like: The lines that are unreadable seem…
alle_meije
  • 1,892
  • 15
  • 35
1
vote
1 answer

subprocess32 timeout not working?

I am using subprocess32 3.2.6 with Python 2.6.6 on RHEL 6.5. A sequence like: command = "sleep 20" proc = subprocess.Popen(command, shell=True, bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE) std_out, std_err = proc.communicate(None,…
1
vote
4 answers

Using backport-android-bluetooth on Android 1.6

I'm trying to write an application using Bluetooth on Android 1.6. Since it's not officially supported, I found the backport of android.bluetooth API ( http://code.google.com/p/backport-android-bluetooth ). But when I deploy the sample chat…
emrekyv
  • 1,216
  • 1
  • 16
  • 20
1
vote
1 answer

Supporting newer gems on old ruby (here: Celluloid)

Is it possible, by using backports or something similar, to install and use gems that require a higher version of ruby than what is installed? I am stuck on 1.8 and I am having troubles with the celluloid gem in relation with rspec. I thought that…
Automatico
  • 10,712
  • 7
  • 67
  • 106