Questions tagged [patch]

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data. This includes fixing security vulnerabilities and other bugs, and improving the usability or performance.

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.

Patches can also circulate in the form of source code modifications. In these cases, the patches consist of textual differences between two source code files. These types of patches commonly come out of open source projects. In these cases, developers expect users to compile the new or changed files themselves.

Because the word "patch" carries the connotation of a small fix, large fixes may use different nomenclature. Bulky patches or patches that significantly change a program may circulate as "service packs" or as "software updates". Microsoft Windows NT and its successors (including Windows 2000, Windows XP, and later versions) use the "service pack" terminology.

In several Unix-like systems, particularly Linux, updates between releases are delivered as new software packages. These updates are in the same format as the original installation so they can be used either to update an existing package in-place (effectively patching) or be used directly for new installations.

2809 questions
1
vote
1 answer

linux using/applying patches and confusion related to hunks

I got a huge patch of about 200 patches from another team. I have divided them into individual patches and applying them. For some of the patches I see an output as "patching file aa/bb/cc.c" For some others I see output as "Hunk #1 succeeded at 90…
agent.smith
  • 9,134
  • 9
  • 37
  • 49
1
vote
2 answers

How to make a patch like this style

This is the content from gdb-7.6.patch file: --- gdb-7.6/libiberty/Makefile.in.orig +++ gdb-7.6/libiberty/Makefile.in @@ -175,6 +175,7 @@ REQUIRED_OFILES = \ ./getruntime.$(objext) ./hashtab.$(objext) ./hex.$(objext) …
Chen
  • 105
  • 6
1
vote
1 answer

Idempotent Bash Script for a Patch and requirements file

I have a python project with its own requirements file. The project also has its own virtualenv, with one of the packages being 'pyPdf'. The library has a bug and I wrote a patch to fix the bug. ---…
vestronge
  • 897
  • 6
  • 10
1
vote
0 answers

Resolving patch conflicts manually

I've downloaded a patch from some site and trying to apply it (twisted, python web framework). Several hunks failed. How do I automate manual patching process using vim? Details: I'm trying to automate the process of applying failed hunks. Many…
Antony Hatchkins
  • 31,947
  • 10
  • 111
  • 111
1
vote
1 answer

Error! Some required system tools for security patches magento

Error! Some required system tools, that are utilized in this sh script, are not installed: Tool(s) "patch" is(are) missed, please install it(them). is there any thing I am missing? EDIT: I am running patch for magento version…
Sachidanand Jha
  • 101
  • 1
  • 5
1
vote
2 answers

Change interface guids of COM DLL (ressource patch)

I have to build OEM versions of a COM library (DLL). Does anyone know a tool (ressource hacker) which may replace some of my interface guids after build time? I just want to build and test one DLL and generate the OEM versions afterwards.
ndee
  • 375
  • 2
  • 12
1
vote
1 answer

Patching broken file

In my travis setup I want to apply a patch to a very specific python file that is broken on some configurations. The installation procedure looks like this: install: # test with various Django versions - pip install Django==$DJANGO # patch…
Constantinius
  • 34,183
  • 8
  • 77
  • 85
1
vote
1 answer

Annotating a box outside the box, matplotlib

I want the text to appear beside the box instead of inside it: Here is what I did: import matplotlib as mpl import matplotlib.pyplot as plt from custombox import MyStyle fig = plt.figure(figsize=(10,10)) legend_ax = plt.subplot(111)…
user2998764
  • 445
  • 1
  • 6
  • 22
1
vote
1 answer

Wix Patches and using '*' instead of Component Guids

While searching for best practices, I came across this thread, which is discussing the use of '*' instead of GUIDs in components. Also I read similar discussion on different forums related to same topic As far I know, while generating GUID…
Farrukh Waheed
  • 2,163
  • 2
  • 29
  • 59
1
vote
1 answer

How to make an update view for partial updates in rest

Im new at rest and im trying to make a partial update of a model. I get an ajax request that has these fields: {"object":modelToBeUpdated, "id":ObjectIdToBeUpdated, "field":fieldOfTheObjectToBeUpdated, "value":theValue} I have no idea how to use…
1
vote
1 answer

Applying pear.php.net patches

During a pecl package installation, i got the error, Download of "pecl/pecl_http" succeeded, but it is not a valid package archive Error: cannot download "pecl/pecl_http" I found a solution on a blog here, it requires me to apply the patch file…
Stranger
  • 10,332
  • 18
  • 78
  • 115
1
vote
1 answer

divide NetLogo world into several random parts

I am trying to create a number of groups of agents on the NetLogo world. I hope each of the groups is located at a specific area without overlap. As I can think of, the easies way to achieve this might be dividing the world into several parts first.…
Hang Xiong
  • 61
  • 6
1
vote
1 answer

How to install/add patchdiff in IDA?

I download IDA Demo and IDA Free versions, and patchdiff package which contains two files - patchdiff2.p64 and patchdiff2.plw. So, how I add this future into IDA? How I can link their? I want compare 2 binary files, which results I will be see in…
zajko007
  • 63
  • 1
  • 8
1
vote
1 answer

Schema for payload of XML in Salesforce REST API PATCH

I have scoured the SFDC REST API reference, and every example (as far as I can find) have examples of payload to create/update records using JSON, and although it is completely valid to use XML, there is no schema listed and no examples of how to do…
Craig D
  • 487
  • 1
  • 5
  • 17
1
vote
1 answer

How to setup return_value for a function call with specific signature?

I have some code like this class MyClass: def my_function(self): .... return lst I want to test some other functions calling my_function. I can't figure out how to set the return_value for the call of function with specific…
zs2020
  • 53,766
  • 29
  • 154
  • 219
1 2 3
99
100