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
3 answers

Need to patch using a string/variable

I am writing a script to automate the process of setting up a bunch of Mac's in a computer lab. Each system is uniquely identified and I need a method of patching a plist file in several locations with the same string that will be read from the user…
Hamid
  • 4,410
  • 10
  • 43
  • 72
1
vote
1 answer

Visual studio setup project update or patch certain dll files

I have a Visual studio 2010 project A and a setup project SetupProject. I would like to have a solution of patching/upgrading the installation on one machine by updating several dll, namely a.dll (primary output of A) and b.dll (some other dlls…
Kenny
  • 1,902
  • 6
  • 32
  • 61
1
vote
1 answer

Is it possible to change the Info.plist from another app?

I am trying to writing a patching app, where you would drop an app into the window and it would patch it. I was able to use NSDraggingDestination to retrieve the file path to the app that was being dropped and I was able to read and change the…
Mark
  • 16,906
  • 20
  • 84
  • 117
1
vote
0 answers

Apply a git patch to a file that has been modified internally?

I would like to know if there is a method to apply a patch in a more "smart" way. I want to apply an old patch to a file where I have inserted new lines of code. Normally, in this situation "git apply" gives an error message. There is a way to solve…
DavidGuaita
  • 501
  • 1
  • 7
  • 18
1
vote
2 answers

Mocking a function in another file and a class in a second other file

I'm noticing that the class methods are being mocked out properly, but the function is bypassing the mock and running the actual function. from module1 import myClass from module2 import my_function import unittest from mock import patch class…
Bobby Battista
  • 1,985
  • 2
  • 17
  • 27
1
vote
2 answers

Patch deployment - git doesn't fetch the latest remote commit

I need to apply a patch but: The patch (.sh script to run) breaks the website (a little). I fixed the pages broke by the patch and committed the modifications in git. The patch modify both the file system and database. The patch cannot be applied…
TheTrueTDF
  • 184
  • 1
  • 17
1
vote
0 answers

Is patch SUPEE-6788 for Magento EE 1.9 complete?

After applying the official patch SUPEE-6788 for Magento EE 1.9 (PATCH_SUPEE-6788_EE_1.9.1.1_v1-2015-10-30-07-07-46.sh) I can see that 5 core modules are still using the old admin routing syntax (APPSEC-1034)…
xiao
  • 19
  • 1
1
vote
1 answer

How to apply a GCC patch in Ubuntu?

I use compiler gcc 4.8 on Ubuntu 14.04. Recently I have found a problem with the compiler which can be solved by applying this following patch https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54930. However, I don't know how to apply this patch file to…
jack279
  • 23
  • 5
1
vote
1 answer

Unable to apply patch file using git in non-repository source tree

According to Pro Git book it is possible to apply patch file just to working directory, no changes in git database, Without these options, the command applies the patch only to files, and does not require them to be in a Git repository. Addressed…
user5494920
1
vote
0 answers

git format-patch creating invalid patches

I'm pulling my hair already and would be glad about some help. I'm exporting a git repository with files only by means of git format-patch --root -o /tmp/foo and trying to add the files with history to another repository, by means of git am…
Andy
  • 4,783
  • 2
  • 26
  • 51
1
vote
2 answers

Netlogo - ifelse statement

I have a problem in Netlogo, where i should check if a neighbor patch of a specific patch is already colored black. This is how i thought it could work: ifelse [ask patch xcoord-temp ycoord-temp [ask patches in-radius rnd_radius [pcolor = black]]]? …
John
  • 11
  • 1
1
vote
2 answers

The Point values keep blinking (IsShowPointValues)

I have made a graph and it shows the value every time I move the cursor on any point. I use zedGraphControl1.IsShowPointValues = true; for that. The problem is the ToolTip that is shown from it is blinking. After looking around on the internet, I…
Yusril Maulidan Raji
  • 1,682
  • 1
  • 21
  • 46
1
vote
1 answer

Apply git diff/patch multiple times

Using git flow I create a new branch, newFunction, off of develop branch. I add newFunction to example class: class ExampleClass { public function exampleFunction(){ return "example"; } public function newFunction(){ …
Paul Stanley
  • 4,018
  • 6
  • 35
  • 56
1
vote
1 answer

Managing software with custom local patches

I'm trying to find a way to deploy software with custom patches in production. The base software is opensource with their own repos (SVN) and we've got some patches to select only for one service and not the other (so we've got base+patchA+patchB on…
viraptor
  • 33,322
  • 10
  • 107
  • 191
1
vote
2 answers

Sitecore 8:Patching an agent

I need to patch agent in other environment so I have created a patch as below: smart …
Suhas
  • 417
  • 1
  • 5
  • 18