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.
212
questions
0
votes
1
answer
39
views
patch without reject
This might be answered already but it is hard to search for -- basically,
When patch find a block/hunk unable to apply, it will reject the changed hunk into reject file.
How not to put the conflicts ...
1
vote
0
answers
21
views
Live kernel patching in ubuntu
I am trying to see the advantages & disadvantages of live kernel patching over a newly built kernel with intended patches. I read live kernel patching uses ftrace's framework. Since ftrace keep ...
0
votes
1
answer
41
views
Patch 2nd Linux kernel: "module is in use"
how to patch kernel with a DKMS module if the module is 'in use'?
The Kernel which should be used to get patched is not the one which is actual running on this machine. (uname -r)
It is about hpsa ...
2
votes
0
answers
40
views
How to use the output of wdiff (per word diff) to patch a file?
Is it possible to use the output of wdiff (per word diff) to patch a file?
I have a file with not only word changes but also added/removed newlines. I can use wdiff to view the word changes. But can I ...
0
votes
0
answers
25
views
Patching location
I'm not the most experienced with linux but usually I use git am or patch -p1 < filepatch directly in buildroot but I have to apply a new patch and it does not work in buildroot neither in /...
1
vote
1
answer
14
views
removing last patching kernel
I build openwrt firmware and I just used a pr (patch kernel update) with patch -p1 < filename.patch and I want to remove to reapply a new one, what would be the best?
thank you
0
votes
0
answers
15
views
What is difference between "patch channel" and "satellite"?
Please help me understand the difference between "patch channel" and "satellite".
I have heard these terms often at my place of work but not sure what it means.
0
votes
0
answers
21
views
Is it possible to make hardware alterations via terminal (using a specific firmware patch)?
I am a linux noob interested in "patching the wifi firmware" on my Raspberry Pi 3B (v1.2) in order to enable "monitor mode" which would allow me to collect compressed beamforming ...
0
votes
1
answer
740
views
How to resolve error about patching, hunk failed [closed]
I try to add a patch about last kernel and don't know why is not working.. idea?
thanks
openwrtt$ patch -p1 < kernel.patch
patching file include/kernel-version.mk
Hunk #1 FAILED at 7.
1 out of 1 ...
-1
votes
1
answer
49
views
Makefile: 1037: recipe for target '../src/ap/beacon.o' failed
I am installing hosatpd-wpe as on kali linux rolling 2017.2 follows:
wget https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-wpe.patch
wget https://w1.fi/...
1
vote
3
answers
424
views
How to create a patch for renaming a file
Suppose I have a file (myfile.txt) containing this text:
The quick brown fox jumps over the lazy dog.
I rename this file from myfile.txt to mystory.txt. How do I create a diff that represents this ...
1
vote
1
answer
125
views
how to show when last time RHEL system was "patched"?
At work we are tasked with (i.e during and inspection or audit) showing when the system was last patched. This is all that is asked.
Of course I asked the inspector how do you want me to show you ...
1
vote
1
answer
1k
views
How can I apply a patch file to the kernel of my current Linux installation?
I want to apply a patch file to my current Ubuntu install (patch file example). What is the process to properly apply a patch file to my Linux kernel?
Do I need to go through the whole process of ...
0
votes
1
answer
83
views
How can I get a set of patch files that can be applied to increase a Linux version?
I need a method to get a set of patches, that when applied in succession, can take Linux 5.x to Linux 5.y.
Here's what I've tried (I would greatly appreciate feedback on why this doesn't work):
(...
2
votes
0
answers
27
views
Supplying RDiff Base File Using Pipe Results in Illegal Seek Error
If I run the following rdiff command
rdiff patch basefile patchfile outputfile
everything works as expected, however, if I try to use stdin to provide the base file like this
xz -d -c basefile.xz | ...
1
vote
1
answer
3k
views
Installing PREEMPT_RT kernel on Ubuntu 20.04
I am trying to install a PREEMPT_RT kernel for my ubuntu distribution as this is a requirement for a robot I am working on. But no matter what I do I get errors when compiling the kernel. I've ...
0
votes
2
answers
741
views
Yocto - patch has not been applied
I am working with Linux built with Yocto. I need to add some changes to /etc/ssh/sshd_config file. I created the following patch file using meld:
--- a/sshd_config
+++ b/sshd_config
@@ -116,3 +116,8 @@...
1
vote
1
answer
2k
views
Kernel patching prompts “Reversed (or previously applied) patch detected! Assume -R? [n]”
I am trying kernel patching for the first time. I am not sure the following is encountered with an error and if I am doing it correctly. But in all tutorials and videos shows, .patch extension files, ...
2
votes
2
answers
285
views
Ignore certain lines when creating/applying a patch with diff/patch?
File A
Apples
Bananas
Clementines
Dates
File B
Apples
Blueberries
Cherries
Dates
I want to diff A and B to generate a patch that when applied to C will change the line Clementines > Cherries but ...
0
votes
1
answer
66
views
how to diff automatically between file.txt.orig and file.txt
Currently, I am editing files on vim by setting patchmode=.orig and then, having two files:
file.txt.orig <- backup without changes
file.txt <- update file
However, I would like to generate a ...
0
votes
0
answers
168
views
Patch unable to find file
I am currently in directory - /usr/lib/llvm-9/build
The include/ directory is a symlink -
reikdas@reikdas-VirtualBox:/usr/lib/llvm-9/build$ ls -l
lrwxrwxrwx 1 root root 10 Jan 31 2020 include -> ../...
-1
votes
1
answer
394
views
Remove window border in dwm monocle layout
I was wondering whether there is some patch to remove the window border in dwm monocle layout, because I really don't want to use "real" fullscreen, but just want to hide the top bar and ...
0
votes
1
answer
38
views
Rebasing a patch without using git?
I've never used maintained files created with patch and diff. But what is the work flow when the patch drifts? As in this case. I can see the the failures when I do -m in the same format git would ...
1
vote
1
answer
46
views
Using the patch -p option when the new and old contain a different number of subdirectories
I have received a patch that I need to apply, however the filenames make it difficult to predict what -p option to use:
--- /home/user/foo/bar/baz.c
+++ /data/myproj/project/version/foo/bar/baz.c
I'm ...
1
vote
1
answer
155
views
Is there a way to hotpatch a kernel in Debian
Is there any equivalent in Debian for hotpatching kernels, similar to kpatch in Red Hat Linux?
2
votes
2
answers
273
views
How to patch a debian package?
I have Debian stable and I have found some weird bug which was already fix.
The fix were merged into the stable branch which version was
gnome-settings-daemon 3.32.1
but I have
gnome-settings-daemon 3....
0
votes
1
answer
4k
views
Does CentOS - 7.1 to 7.8 are end of life(EOL) OS?
In the official CentOS wiki https://wiki.centos.org/About/Product
Mentioned full update ends by Q4-2020 and Maintenance updates EOL is 30-06-24. I can't find patch(Sub release) wise EOL information. ...
1
vote
0
answers
88
views
Why does the dd program not work as expecting when patching a binary?
I'm trying to patch a binary using the instructions provided at this answer.
Initial setup:
wget https://f000.backblazeb2.com/file/altstore/altserver/1_4_1.zip
unzip 1_4_1.zip
This program basically ...
1
vote
2
answers
708
views
Can I write comments inside a "normal" diff/patch file?
I used diff to produce a patch file. diff old.txt new.txt:
1c1
< Lorem ipsum dolor sit amet, consectetur adipiscing
---
> The quick brown fox jumps over the lazy dog.
The output is in the ...
1
vote
1
answer
169
views
Patch Multiple Strings in a Binary file
I have a binary file type (many instances of these files) where I would like to replace the string "DC-GX850" with "DMC-GX95". Fortunately the two strings are of equal length. The ...
0
votes
2
answers
294
views
DWM Gaps not aligned
is there a way I can fix this?
If you check it a little closely, you can see that firefox actually goes a little bit under the terminal and I really don't like it.
I am using DWM with vanity-gaps.
...
2
votes
1
answer
275
views
Can `patch` be idempotent?
Can patch be invoked with idempotency; i.e., is there some combination of options that will cause repeated invocations of patch to have the same effect as a single invocation of patch (for a non-empty ...
0
votes
1
answer
60
views
Submitting Linux kernel code
As a semester project I have modified a file of Linux kernel source code (related to memory management), to improve the existing structure. It includes addition of some new functions.
But I couldn't ...
0
votes
2
answers
305
views
What RT patch to use for a specific linux kernel version
Running the $uname -r command on my embedded device reveals my kernel to be 4.14.73-ltsi (it is a custom Linux kernel built for an embedded device).
Now I intend to install the real time (RT) patch ...
0
votes
1
answer
92
views
Can patches on different files be a part of a single patch series?
Do patches on different files qualify as a patch series?
I made 5 patches in total, 3 of which are changes to 3 different files, and 2 of which are changes to another single file. I assume that the 2 ...
3
votes
1
answer
3k
views
Error 24 : Write error : cannot write compressed block
I'm using Ubuntu 20.04 LTS Server and re-complied whole kernel with my patches. Now at the stage of installing it, but when I runs sudo make install I'm seeing following error,
root@localhost:/home/...
0
votes
1
answer
2k
views
Patch CentOS 8 with Microsoft exFAT source Code, Linux Kernel 5.x,
I'm interested on extract original code of Microsoft exFAT File System, and Compile it into my CentOS 8 (I know its the Kernel is very delayed to 5.4 or 5.7 version).
I know the existence of
https://...
2
votes
0
answers
82
views
Patch apply at wrong location
I'm attempting to create a set of patch files that i can quickly apply on demand to add or remove alias to .bashrc.
To arcive this i added a section for alias in .bashrc after the line # alias and ...
0
votes
1
answer
50
views
How to review changes made by a .patch with quilt in a Debian source package?
I've pulled the source package of luajit with apt source luajit from Debian sid. As the package was unpacked by the same command, I saw the next message:
dpkg-source: info: applying 0002-Enable-...
0
votes
1
answer
21
views
How do I patch in to a file only the insertions and modifications leaving the unmodified lines there?
I have a short file (around 60 lines) which acts like a basic database it has three whitespace separated columns. The first one is name of the product, the second one is the price and the third one is ...
0
votes
2
answers
2k
views
Setting up third party status bar on dwm
I am trying to set up an external status bar in dwm windows manager (in particular I am trying with polybar), but there are some issues with windows placement:
the bar needs its own space: if naïvely ...
0
votes
0
answers
868
views
Ansible Patching Failed
I have problem with security patching via Ansible. I have two machines
1) Ansible master server (Version 2.8.4) I want to apply security update to server with RHEL8. But patching failed, see below ...
15
votes
5
answers
10k
views
Diff of two similar big raw binary files
Let's say I have a 4 GB file abc on my local computer. I have uploaded it to a distant server via SFTP, it took a few hours.
Now I have slightly modified the file (probably 50 MB maximum, but not ...
0
votes
1
answer
81
views
How often do files in these Linux directories change? [closed]
I am currently looking for a Host-Based Intrustion Detection System to perform file integrity checks with. I have some files/directories to start monitoring with:
/bin
/sbin
/usr
/opt
/lib64
/root
/...
0
votes
1
answer
127
views
LFS - Should Glibc be patched in Section 5.7?
I'm currently working my way through the Linux From Scratch (LFS) book, but I'm a bit confused about when to apply patches.
In Section 5.7 the goal is to build glibc. The section have a pretty ...
0
votes
0
answers
652
views
Packages skipped because of dependency problems
While patching is going on a CentOS system, I pressed ctrl+c then the patching stopped. When I tried to patch again, it showed dependency error and I couldn't patch the remaining patches.
I got this ...
3
votes
3
answers
234
views
Why can't entire kernels be patched live?
Over the past few years, various live kernel patching techniques have become popular among sysadmins who strive to ensure the highest possible uptimes for their systems.
For that process to be ...
1
vote
0
answers
101
views
Open Network Linux (ONL): kernel source patch
I'm trying to apply some patches on the ONL kernel. Based on a question and its reply, there is a method to apply patches. (The link: https://groups.google.com/forum/#!topic/opennetworklinux/...
3
votes
1
answer
386
views
Upgrade FreeBSD to specific patch version
My FreeBSD is running version 11.2
FreeBSD host1 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
I ...
-1
votes
3
answers
942
views
Is there a source code available for patch command in Linux?
I am looking for a source code for the patch command used in Linux. Does anyone know if there is one available?
I am looking for a something which is compatible to POSIX or more specifically QNX v7.