Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
85 views

We have an issue with a Debian package that would have to be addressed upstream. (So it's not Debian specific.) I've managed to patch the C source, build my custom package version, and fix the issue. ...
MrSnrub's user avatar
  • 157
-1 votes
1 answer
70 views

I am struggling with understanding how diff and patch are supposed to work. Here's my use case: I use Betterfox user.js config file for my Firefox profile, but I add some overrides to it. I want to ...
Nikita Karamov's user avatar
0 votes
0 answers
59 views

I am trying to get my Blackmagic Quad HDMI Recorder working on Arch Linux. Since rebooting after the first installation, the device was never recognized by Blackmagic Software on Arch, while it ...
Hyunbin Yoo's user avatar
0 votes
1 answer
62 views

For a long time I receieved some software as a patched set of files and it includes DSC file which was a text file and I run dpkg-source -x *.dsc command to extract sources. But this DSC file now is a ...
Almaz's user avatar
  • 163
1 vote
1 answer
215 views

I have a script and patch that I took somewhere to compile an image (linux build root) and I added some lines and now I got one error during patch, the error is like that: diff --git a/package/base-...
James78's user avatar
  • 189
0 votes
1 answer
40 views

I have created a patch for the Linux kernel. It can be found at the following website: https://patchwork.kernel.org/project/bluetooth/patch/[email protected]/ Unfortunately, I ...
Jeremy's user avatar
  • 185
0 votes
1 answer
214 views

Total newbie here so please bear with me. I have a laptop on which I have installed Debian 11.6 I want to check if my OS has reached EOL. In the official Debian webpage, I see the following list (...
PhantomMenace's user avatar
0 votes
0 answers
49 views

I have a computer with unix and an old binary version of OpenSSL installed (version 1.0.2h). I came across the link below: https://github.com/cloudflare/sslconfig/tree/master and it suggests I could ...
mike_s's user avatar
  • 11
1 vote
0 answers
43 views

I am trying to restore typeahead behavior in my file picker by using this tutorial: https://blobfolio.com/2019/restoring-gtk3-typeahead-in-ubuntu-19-10-eoan-ermine/ I got the patch, and the gtk3 ...
Shadow's user avatar
  • 11
0 votes
1 answer
79 views

We have multiple RMT Servers for patching SLES servers in our environment, how can we check which rmt server is the client currently registered to. Currently we check the baseurl of repo file. Is ...
Ritesh Vishwakarma's user avatar
0 votes
1 answer
57 views

Hello, I have an englishStrings.json file and when I make new edits/ additions to it, I need to copy the new changes to all the other language string.json files. Before making any changes to ...
Freezer Fridge's user avatar
0 votes
1 answer
184 views

I got the exact same problem as the person here: HP Envy x360 2022 Ryzen edition speakers not working and I want to patch and recompile my kernel with: https://lore.kernel.org/lkml/20220811053950....
Daniel Koch's user avatar
0 votes
1 answer
316 views

An Example of Unified Format: --- lao 2002-02-21 23:30:39.942229878 -0800 +++ tzu 2002-02-21 23:30:50.442260588 -0800 @@ -1,7 +1,6 @@ -The Way that can be told of is not the eternal Way; -The name ...
Flux's user avatar
  • 3,318
0 votes
0 answers
409 views

patch: **** malformed patch at line 225: diff --git the line 225 is this one : diff --git a/files/etc/Compile_info.txt b/files/etc/Compile_info.txt I have a many patches in one file patch and I ...
James78's user avatar
  • 189
2 votes
2 answers
1k views

I want to apply a unified diff from mypatch.diff to stdin and output the result to stdout. So far, I have tried: patch -i mypatch.diff -o - -u originalfile Which successfully applies mypatch.diff and ...
finefoot's user avatar
  • 3,586
1 vote
1 answer
951 views

Can someone please explain how to apply a patch file to ubuntu server kernel? I'm trying to apply this patch file which enables the tcp_collapse_max_bytes option in the TCP communication options on an ...
Erfan's user avatar
  • 11
1 vote
0 answers
220 views

is there any way to patch a file, that is compressed via gzip without decompressing it first? I tried patch -n <(gzip -d file.gz) patch_to_file.diff > new_file but I only got patch: **** Can't ...
ninjulian's user avatar
1 vote
1 answer
229 views

Is there a way to automatically merge custom patches to upstream packages when they update? From what I gathered so far modifying source code requires you to maintain a separate fork of packages that ...
Daniel Krajnik's user avatar
1 vote
1 answer
535 views

I am attempting to script diff and patch commands. Facing some warning like this if bzcat is used # bzcat consolidated.patch.tar.bz2 | patch -d dev -p1 patch unexpectedly ends in middle of line ...
Kamath's user avatar
  • 655
0 votes
1 answer
642 views

I'd like to apply this generated patch but the patch command is asking me for a file path name : administrator@server:~$ diff -Nau /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/www.NEW.conf ...
SebMa's user avatar
  • 2,473
1 vote
1 answer
794 views

I am running diff and patch like this: diff --unified --ignore-space-change old.txt new.txt > changed.patch patch --version-control=none third.txt changed.patch The --version-control=none is ...
opticyclic's user avatar
0 votes
0 answers
140 views

I am used to downloading very dense changelogs like this one (linux-5.4.211 log), this in order to carefully decide for each change if it is pertinent on some system of mine or not. (*1) Of course, ...
MC68020's user avatar
  • 8,665
0 votes
0 answers
74 views

A source code tree contains a modified dnsmasq-2.80test4 source (and git files). Now I'd like to apply the newest 2.86 dnsmasq source code to that modified 2.80test4 using diff and patch, while ...
Pro Backup's user avatar
  • 5,124
0 votes
1 answer
339 views

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 ...
xpt's user avatar
  • 1,924
1 vote
0 answers
53 views

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 ...
Franc's user avatar
  • 309
0 votes
1 answer
212 views

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 ...
bime3's user avatar
  • 1
3 votes
0 answers
210 views

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 ...
tinlyx's user avatar
  • 1,088
1 vote
1 answer
364 views

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
James78's user avatar
  • 189
3 votes
1 answer
16k views

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 ...
James78's user avatar
  • 189
-1 votes
1 answer
78 views

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/...
Zac's user avatar
  • 27
3 votes
3 answers
3k views

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 ...
Flux's user avatar
  • 3,318
2 votes
1 answer
35k views

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 ...
ron's user avatar
  • 9,175
1 vote
1 answer
7k views

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 ...
Jo Sprague's user avatar
0 votes
1 answer
314 views

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): (...
JBraha's user avatar
  • 183
2 votes
0 answers
83 views

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 | ...
Harry Muscle's user avatar
  • 2,707
1 vote
1 answer
11k views

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 ...
lutzlook's user avatar
1 vote
2 answers
5k views

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 @@...
tomi7654's user avatar
3 votes
1 answer
12k views

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, ...
vjwilson's user avatar
  • 133
2 votes
2 answers
2k views

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 ...
Benjamin Higgins's user avatar
0 votes
1 answer
236 views

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 ...
zanona's user avatar
  • 341
1 vote
0 answers
1k views

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 -> ../...
Pratyush Das's user avatar
0 votes
1 answer
1k views

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 ...
weisbrja's user avatar
  • 251
1 vote
1 answer
944 views

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 ...
Evan Carroll's user avatar
  • 35.2k
1 vote
1 answer
3k views

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 ...
Brydon Gibson's user avatar
2 votes
1 answer
1k views

Is there any equivalent in Debian for hotpatching kernels, similar to kpatch in Red Hat Linux?
john doe's user avatar
  • 1,006
3 votes
2 answers
2k views

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....
emek's user avatar
  • 63
1 vote
0 answers
168 views

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 ...
Saifur Rahman Mohsin's user avatar
7 votes
2 answers
6k views

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 ...
Flux's user avatar
  • 3,318
1 vote
1 answer
791 views

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 ...
Eric Valk's user avatar
0 votes
2 answers
890 views

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. ...
deomanu01's user avatar

1
2 3 4 5