The patch tag has no wiki summary.
6
votes
1answer
74 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
198 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
29 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 ...
5
votes
2answers
120 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 ...
3
votes
6answers
177 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
1answer
703 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
39 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
28 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
131 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 ...
1
vote
1answer
224 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?
1
vote
0answers
34 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
141 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 ...
0
votes
2answers
386 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
63 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
110 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
179 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
151 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
176 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
56 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 ...
2
votes
2answers
2k 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
657 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 ...
1
vote
2answers
626 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?
4
votes
1answer
207 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
1k 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 ...
1
vote
1answer
226 views
RPMs and patching
I have 3 files (from here)that I have been given to install in an attempt to upgrade the compiler:
binutils-2.13.2.1-1.mipsel.rpm
binutils-2.13.2.1-1.src.rpm
binutils-2.13.2.1-r5900-7.diff.gz
...
1
vote
1answer
340 views
Pipe diff file into patch?
Is there a way to pipe the diff output into patch? The -i parameter is for specifying a diff file, but I just want to do it more dynamically, since I will be updating regularly against a directory ...
1
vote
1answer
119 views
kernel patches - knowing when to do them
I've never done a kernel patch before, and I've just recently started looking into how it's done. I notice that for a patch's filename, it tells us the kernel version (i.e ...
2
votes
1answer
156 views
Why is bzip2 needed in the kernel patch instructions?
This is from here.
Extract the patch
tar -xvzf /usr/src/web100-2.5.22-200810130047.tar.gz
bzip2 web100/ web100-2.6.27-2.5.22-200810130047.patch
Test the patch
bzip2 -dc /usr/src/linux/web100/ ...
1
vote
1answer
158 views
Repackaging RPMs
We're using HP DataProtector for our backup environment. The installation method leaves something to be desired, and we're attempting to automate it in such a way that it makes our Unix admins cringe ...
6
votes
4answers
1k views
How to split and edit patches?
Sometimes I need to split a big patch into smaller (disjoint) ones, e.g. for every separate feature included.
Usually I do it via standard vim yank/dd commands and split-window switching.
But are ...
6
votes
1answer
330 views
Patching Linux kernel on-line (i.e. without rebooting)
Sorry - I don't remember the exact name. I know there is mechanism to patch the kernel at runtime by loading modules without need of the reboot as long as the structures involved are not affected. It ...
3
votes
2answers
461 views
Does the Linux PreemptRT patch benefit desktop users?
Does the PREEMPT_RT patch (real-time kernel) have any benefit for regular desktop users?
2
votes
1answer
256 views
Kernel memory allocator patch
Is there any patch for Linux kernel to use different memory allocators, such as ned allocator or TLSF allocator?