Questions tagged [patch]
A patch is file used to alter a source code package, e.g. in order to correct a bug or add a feature.
220 questions
0
votes
1
answer
1k
views
Applying Linux rt patch
I'm trying to apply the rt-patch to the standard kernel from kernel.org. So far I have tried 3.14 and 3.10 from here: https://www.kernel.org/pub/linux/kernel/projects/rt/ with the corresponding ...
0
votes
1
answer
134
views
Migrate old custom patches to new Linux versions
I previously used Linux 3.0.35 to customize the OS for an IMX based board. I'm now planning to upgrade it to Linux 3.10.17. The customization was compiled into patches, (80+ patches!).
My problem now ...
0
votes
1
answer
288
views
rt patch for latest stable 3.17.4 vanilla kernel
I want to apply an rt patch to the latest stable vanilla kernel, which is 3.17.4 currently. The latest rt-patch found are for 3.14.24. Does that mean I have to use the the 3.14.x family, and can not ...
9
votes
1
answer
16k
views
What is "fuzz" in applying patches?
I was applying a patch with quilt in Debian packaging that an error occurred:
Applying patch debian/patches/fixshare.patch
patching file net/slirp.c
Hunk #1 FAILED at 529.
1 out of 1 hunk FAILED -- ...
-1
votes
1
answer
211
views
how to patch bash vulnerability (shellshock) bug on RHEL? [duplicate]
We have over 10000 servers to patch for bash vulnerability (shellshock) bug. Now my question is what is the command to patch this bug ? And how we can check whether the patch has been installed and ...
1
vote
1
answer
429
views
Applying patch to the uClibc
I have a buildroot package that I need to build. When I issue the 'make' command, it runs until it errors out with "lutimes undeclared". After lengthy research, it appears that uClibc needs to be ...
41
votes
2
answers
65k
views
How can I apply a -p0 patch from any working directory?
I have a patch with absolute paths that I wish to use. i.e. the first few lines are as follows.
--- /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml 2014-10-10 18:47:23.000000000 +...
2
votes
3
answers
15k
views
How can I check if a certain patch is already installed in my system?
I am about to install a patch for wireless drivers named Compat Wireless in order to solve a problem with my WiFi channel (it locks on the not existing -1 channel) on my Ubuntu Linux v12.04 and Kali ...
1
vote
1
answer
130
views
Latest libxml2 port to RHEL4
I am currently installing ModSecurity on our development servers and the problem that I am running into with the latest version is that we are utilizing RHEL 4 on our servers. They have no intention ...
1
vote
2
answers
8k
views
How can I list the patches of an installed package in SUSE?
Let's say that I am using a program called "hello" which I have downloaded using the zypper. The question is how can I see if a specific .patch is included into this hello package?
Basically, what I ...
45
votes
2
answers
81k
views
Is this a good way to create a patch?
I would like to create a patch from a specific gcc branch comparing it to the official releases; so when I unpack the tarball from the stable release, I can apply the patch and get the equivalent of ...
1
vote
1
answer
3k
views
Applying patch for bash failing
The bash shell in my production box is vulnerable to 'bashbug' vulnerability. https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
The ...
0
votes
1
answer
542
views
CentOS, Can I install 5.10 rpm into 5.8?
I heard that bash-3.2-33.el5_10.4 is a CVE-7169 patch for CentOS 5.
So I found an announcement from CentOS website below.
http://lists.centos.org/pipermail/centos-announce/2014-September/020594.html
...
3
votes
2
answers
407
views
Linux kernel patch and development source tree
We are using linux3.12 and its led driver has a bug which got fixed in later version of Linux. We see that driver change in Linux 3.15 see Linux Cross Reference
Now my question is how can I find a ...
0
votes
1
answer
126
views
Unable to patch 2 errata on OpenBSD 5.5
I'm trying to patch OpenBSD 5.5 with all of the 10 errata.
The command I use to patch is:
signify -Vep /etc/signify/openbsd-55-base.pub -x /path/to/patch/ \
-m - | (cd /usr/src && patch -p0)
...
0
votes
1
answer
2k
views
How to take the log of the patches we applied?
So here's my question I recently downloaded the linux kernel patch 3.4.101 and i applied this patch directly to the base 3.4.0 with this command:
$ cd /kernel source directory
$ gzip -cd ../path to ...
2
votes
1
answer
843
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 using debian
2
votes
1
answer
4k
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
1
answer
664
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 ...
22
votes
2
answers
6k
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
1
answer
143
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 ...
2
votes
3
answers
14k
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 ...
4
votes
2
answers
9k
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 ...
5
votes
1
answer
2k
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 ...
3
votes
1
answer
2k
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
0
answers
83
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
1
answer
409
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
1
answer
117
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
2
answers
2k
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 (patch)...
0
votes
2
answers
209
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...
1
vote
1
answer
2k
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 ...
8
votes
1
answer
8k
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 that ...
8
votes
2
answers
7k
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 ...
14
votes
1
answer
4k
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?
2
votes
1
answer
2k
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: https://git.kernel.org/cgit/linux/kernel/...
6
votes
1
answer
4k
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
...
29
votes
5
answers
25k
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, ...
4
votes
1
answer
737
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
2
answers
228
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
1
answer
200
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 the ....
18
votes
2
answers
14k
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 ...
26
votes
8
answers
44k
views
how to use patch and diff to merge two files and automatically resolve conflicts
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 name="...
3
votes
2
answers
9k
views
Error "malformed patch at line" when 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 ...
4
votes
2
answers
557
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
0
answers
42
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 Governor be ...
-3
votes
1
answer
422
views
Implementing patch for changing a CPU frequency governor [closed]
I need 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?
32
votes
5
answers
36k
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?
5
votes
0
answers
266
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 /dev/...
2
votes
1
answer
2k
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 have sound ...
29
votes
8
answers
28k
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.