A patch is file used to alter a source code package, e.g. in order to correct a bug or add a feature.

learn more… | top users | synonyms

2
votes
1answer
23 views

How do you patch a kernel? [duplicate]

I got diff text from lkml how do I patch it into a kernel source? I am very new to compiling kernels, and I couldn't find decent sources online I am using debian if it is relevant
0
votes
1answer
40 views

aircrack-ng shows negative channel

On many Linux distributions, be it BackTrack, Kali, BackBox, Ubuntu, Mint, etc., whenever I use anything from the aircrack-ng suite my wireless card is shown as channel -1. This problem has been ...
1
vote
1answer
23 views

How to modify huge patch file properly?

I have this patch. I want to disable patching of Makefile and drivers/video/logo/logo_linux. What is best way of doing this? Do I edit it, and delete that specific entries? If so, is there a tool ...
19
votes
2answers
881 views

What is the purpose of patches of the linux kernel?

For each Linux kernel version, there is a patch file available for download. For instance, linux-3.12.22 has a corresponding patch-3.12.22. What is the purpose of that patch? To always patch the ...
3
votes
1answer
82 views

Explanation of version build time as opposed to version number, eg OpenSSL 1.0.1e versus h [duplicate]

Recently, to deal with newly revealed SSL bugs I upgraded my pure Debian distribution. OpenSSL reports a version number of 1.0.1e which is not the latest, however, I am told that it is ok, because the ...
1
vote
0answers
44 views

How do I fix a patch [closed]

I am trying to fix a patch, and reviewed a couple of very interesting urls. One of which is this one: Handling Patch Rejects I like to make sure I am understanding the patch and the problem correctly. ...
1
vote
2answers
231 views

How can I know if patch command is working?

I am trying to apply a patch that is provided by the seek-for-android project to code I downloaded from Cyanogenmod. The code compiled successfully with make, so I know all the files are there. I just ...
0
votes
1answer
52 views

centos patch heartbleed bug [duplicate]

How to do this? There are six packages listed for my 32bit system here Not sure how to go about patching... Ok I have not done yum clean all and yum update "openssl*" but am stuck on following ...
0
votes
0answers
78 views

How to apply a patch correctly?

I am trying to patch a linux 3.13.7 source tree to 3.13.8 using the patch-3.13.8.xz file. Since the patch file is in xz format, I used the following command to apply it while in the source tree: unxz ...
4
votes
1answer
55 views

Dwm - pertag patch - save state between restarts

I'm using Pertag patch As a Gentoo user I apply dwm patches using Portage. Basically there's a directory where user can put a patch for sourcecode and Portage will apply it during the compilation ...
2
votes
1answer
186 views

libata patch to allow disable sata port

My question is related to the patch introduced in this post How to tell Linux Kernel > 3.0 to completely ignore a failing disk? If the kernel is patched with this code what is the kernel parameter ...
1
vote
0answers
31 views

Patching the kernel source through git

I'm trying to understand how the patching of the kernel source works. I found the patch that I would like to try an apply on the following page. I found no .patch files that I can use to apply the ...
0
votes
1answer
42 views

Patching linux kernel fails?

From what I understand, I can easily upgrade my kernel by applying patches to it, opposed to recompiling the kernel every time. I'm trying to go from kernel 3.2.51 to 3.2.54 by applying all the ...
3
votes
1answer
47 views

How difficult will it be to determine, get and apply latest patches to Solaris 8

I have a Sun Ultra Enterprise 2 running Solaris 8 (Generic_108528-11). This hasn't had any patches applied for years. I just now got the configuration right for connecting to the internet through my ...
2
votes
2answers
128 views

What is the difference between a patch which reverts a commit and a “reversed patch”?

Before May 6th, 2013, the fs/eventpoll.c file in the Linux kernel had the following line #1605: if (!schedule_hrtimeout_range(to, slack, HRTIMER_MODE_ABS)) On May 6th, a commit changes this to ...
0
votes
2answers
123 views

ck patch for Linux 3.13 [closed]

Does anyone have any news about the -ck patches for Linux 3.13 kernel tree? I've checked here but there's nothing yet...
0
votes
1answer
46 views

How to create a patch file for new source code [closed]

I am trying to do a mini code review for new source code that I have in a folder. The code is not in any kind of version control. Is it possible to create a patch file from this so I can post it for ...
0
votes
1answer
57 views

Patching Process in AIX

I am new to the world of AIX and I am pretty unsure on how the patching process goes about. I just joined a new company and they are using AIX as their preferred OS (actually due to having all IBM ...
0
votes
0answers
32 views

How do I patch an rpm in SLES and automatically rebuild it when updates are available?

I applied a patch to a source RPM, built it and installed the resulting package. All good. But now every time the package gets updated, it gets overwritten with the unpatched version from the official ...
4
votes
1answer
155 views

Why does diff fail when invoked from a Makefile?

Narrow-down of a patch problem I am trying to troubleshoot: Only two files, each with a size of 1 byte: file a (containing 'a') file b (containing 'b') and Goal is to make and then apply a patch ...
3
votes
1answer
65 views

How to create a patch ignoring indentation differences in the code?

I'm trying to create patch a file using diff tool.But facing an issues.The way I am doing is below. I've created one Directory named a and put original file in to it. a/original_file.c Now I have ...
10
votes
1answer
258 views

How do I apply software patches?

I have an application foobar for which someone has written a patch to add a feature I like. How can I use the patch?
1
vote
1answer
212 views

How do I apply this revert commit patch from git?

I have found a patch applicable to my system to fix a problem but I have no idea how to get this patch and then apply it. Can anybody help me please? Patch: ...
3
votes
1answer
110 views

Linux signals logger

I'm looking for a signals logger for the Linux kernel, without patching of kernel. I found many articles with patching, but I am not interested in that. I'm running default Ubuntu 13.04. # uname -a ...
4
votes
2answers
1k views

How do I get a linux kernel patch set from the mailing list?

I don't subscribe to the linux-kernel mailing list, but I want to get a set of patches that were posted a few weeks ago and apply them to my kernel for testing. I'm very familiar with patching, ...
3
votes
1answer
59 views

get info about package update in openSuSE

Is there any way to get information about an available package update via zypper? I can get info about a patch with: zypper info -t patch pachNameHere and I can obtain the patch name via: zypper ...
8
votes
2answers
122 views

How should I solicit feedback from a tree maintainer for patches sent to the lkml?

I have submitted a patch to the linux kernel that has gotten several reviews and gone through a couple iterations on the mailing list. It has been ACKed and reviewed by two developers, but they say ...
1
vote
0answers
501 views

Font rendering - Infinality patches on Ubuntu

There is a Ubuntu PPA https://launchpad.net/~no1wantdthisname/+archive/ppa?field.series_filter= with patches for Infinality оn Freetype and Cairo for 11.04 11.10 12.04 12.10 13.04 But the updates ...
0
votes
1answer
73 views

Installing a plugin for quodlibet as a patch

I'm trying to update a plugin for quodlibet. I fetched a .patch file from here. I navigate into the directory where the plugin is placed /usr/share/pyshared/quodlibet/plugins/events and copy in ...
6
votes
2answers
1k views

How to make patch ignore already applied hunks

I have a very large patch file that I'm trying to apply to my code. The problem is, some of the changes in my patch already exist in the code. Is there a way to make patch gracefully ignore the ...
4
votes
6answers
2k views

how to use patch and diff to merge two files

I have read about diff and patch but I can't figure out how to apply what I need. I guess its pretty simple, so to show my problem take these two files: a.xml <resources> <color ...
2
votes
2answers
2k views

Problem with patching file with .diff

I having some trouble adding .diff patch to a file. Patch file itself seems to be fine but it keeps giving error: root@pipiripi:/home/tomek/mad# patch mifare-mad.pl < pastie1.diff patching file ...
2
votes
2answers
66 views

Keep patch in sync with changing source

Is there any standard option to create 'patch' P that works on file F in such way that it will keep working correctly when file F changes into F'. So I will either have some mechanism that will ...
-1
votes
0answers
30 views

how implement patch for change a arbitrary Governor in linux [duplicate]

Possible Duplicate: Implementing patch for changing a CPU frequency governor I am beginner in linux.I want implement a patch for change a arbitrary Governor in linux.not important what ...
-3
votes
1answer
206 views

Implementing patch for changing a CPU frequency governor [closed]

I am a beginner in Linux. I want implement patch for changing a CPU frequency governor.But I don't know what is patch and Governor in Linux and I don't know where I can start from? Please help me with ...
5
votes
3answers
2k views

Check if a file or folder has been patched already

Is it possible to know if a file has been patched already, before apply the patch? I need to do this in a script, any thoughts?
2
votes
0answers
68 views

xdelta3 fails to decode on block device

I'm trying to use xdelta3 to bring a remote block device into sync with a local one. I'm able to easily generate a xdelta3 patch file using the command: xdelta3 -e -B 33554432 -v -9 -I 0 -s ...
1
vote
1answer
210 views

How do I know which kernel version will have a bug fix I need? [duplicate]

Possible Duplicate: Given a git patch id, how to find out which kernel release contains it? I encountered a bug in one of the newer kernel versions. There is no workaround; if I want to ...
1
vote
2answers
2k views

Running “patch” without generating *.orig and *.rej files

Is it possible to tell patch not to generate .orig and .rej files? I find it extremely annoying that patch creates these.
1
vote
1answer
76 views

Tab completion when `patch` asks for filename

When the patch command doesn't find the file to patch, it asks for a filename. Is there any way to get this to use tab complete?
4
votes
3answers
168 views

Smart way to perform a similar replacement (not simple enough for diff) in multiple files?

I have a bunch of files (45, so too many to edit them manually without going crazy) which all require the same changes (as seen in the three diffs at the end of this question). Most tools used for ...
3
votes
3answers
261 views

How to make and apply (patch) one side diff?

I want to make a shell script that updates a config file. The file present on the server has information, like various IP addresses. The new file has more code, from new configs added to the system, ...
4
votes
1answer
285 views

Patch without changing owner and group

I've got a file owned by a non-root user: # ls -l example.php -rw------- 1 foo bar ... example.php I just applied a patch with a command like patch -p0 <<-EOF --- .../example.php.orig ...
2
votes
2answers
2k views

how to include a new file into a patch

I try to make a patch as introduced here. Say I have two directories pp1(modified version) and pp0(clean version), I make a patch file pp0.patch with the diff command: diff -crB pp0 pp1 > ...
0
votes
1answer
68 views

Good ways to host or distribute my patch for the Linux Kernel Mailing List

I have an approximately 1500 line patch for the Linux kernel - introducing a new file system. I have lots of problems with posting a patch straight to the kernel mailing list (gmail mangles the ...
5
votes
2answers
4k views

“Malformed patch” error while applying the diff to wget source with patch

I would like to apply this patch so I copied code beginning at "Index: src/options.h" and ending with "+@item" and put it into a new file created in wget's source code folder. Then I did: $ patch -p0 ...
2
votes
1answer
2k views

Patching a file (in this case dwm) and failed hunks

I'm trying to add the transparency patch to dwm. I downloaded the .diff file and in my dwm directory ran this: max@linux-vwzy:~/misc/dwm/dwm-5.9> patch < dwm-transparency.diff patching file ...
2
votes
2answers
2k views

When patching what's the difference between arguments -p0 and -p1?

What's the difference between patch -p0 and patch -p1? Is there any difference at all?
5
votes
1answer
299 views

merge that works at word granularity instead of line

The old diff, patch, and merge programs, and their modern descendents in the form of version control systems work great for managing source code that can be edited concurrently by multiple people. ...
5
votes
3answers
3k views

Meaning of patching binary files?

I am trying to understand what it means by patching binary files in an example from the manpage of xxd: Patch the date in the file xxd.1 % echo "0000037: 3574 68" | xxd -r - xxd.1 % xxd -s 0x36 -l 13 ...