Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
26 views

Ubuntu Security Patches for Apache2

How do i get the newest version on Ubuntu 18.04 (Longterm Version only!) for the apache2 package? (Please let me know if they apply the security patches from the newer versions backwards and i just ...
1
vote
0answers
57 views

How to apply specific diff patch to improve wireless Tx rate

My Dell XPS15 9560 laptop (running on linux kernel 5.0.9), has a Qualcomm wireless adapter, whose Tx rate is capped at 1 Mbps. I want to make it better, if at all possible. $ lspci -k | grep -A4 -e ...
0
votes
2answers
58 views

Linux OS patch vs kernel patch vs firmware upgrade or BIOS upgrade [closed]

Can somebody explain the difference between a Linux OS patch, Linux kernel patch, vs a firmware upgrade or a BIOS upgrade?
-1
votes
2answers
63 views

Linux kernel patch

I am reading "Linux kernel module programming" by Peter Jay Salzman, and in that book they say sys_call_table is no longer exported in 2.6.x kernels. If you really want to try this DANGEROUS ...
0
votes
0answers
9 views

How to find the apps/packages/patches/configurations pending for reboot on hp-ux?

A few config changes carried out, but didn't reboot. Now,I would like to know the patches/apps/packages/apps/configurations pending for reboot for change config verification purposes. While googling, ...
0
votes
1answer
33 views

Patch a glyph into a font from another font

I have a monaco font patched for powerline that I downloaded from this repository. Now for licensing issue there are no free version of this font. Anyway, I use tmux which have U+2502 as a separator ...
4
votes
2answers
235 views

Apply patch to specified file, completely ignoring the path/filename stored in the patch file?

I need to apply a patch to a file in a complicated directory and symlink scenario. No matter what I try, I can't figure out how to massage the patch arguments so that it would find the desired file. ...
0
votes
0answers
23 views

Patch files with only additive changes

How can I use eg diff to create a patch file containing only the additive changes from file A to file B? Lets say B is a buffer containing only recent data, old data is deleted in a fifo manner. I ...
1
vote
1answer
28 views

Patch only a portion of a file

I have two files - fileWithMyFix.c and fileCustUpdated.c. I made my fixes to filewithmyfix but was not aware that a customer was updating the same file to make other (unrelated changes). I need to ...
0
votes
1answer
135 views

compile and use a realtime kernel on CentOS 7

I would like to compile and use a realtime kernel on CentOS 7. I found a guide on the web: http://jensd.be/589/linux/complile-and-use-a-realtime-kernel-on-centos-7-or-rhel-7 When I try to use it I ...
2
votes
0answers
58 views

Any tool which can identify insertion of codes within a patch after applying the patch [closed]

Is there any tool (command-line) or method which identify modification of an applied patch in a source file? e.g. - Insertion of new code within the patch Changing the variable or function names ...
0
votes
2answers
317 views

Removing root slash with `-p1` and so forth [duplicate]

I understand that patch allows patching applications when some path components are removed. While -p0 argument will treat a path as is: /var/www/html/example.com -p1 will remove the root slash, so ...
1
vote
1answer
355 views

Allow patch of symlinks

When I try to run a patch command with a patchfile against a link, patch gives me the error: File path/to/file is not a regular file -- refusing to patch The following command produces this error ...
1
vote
1answer
442 views

How to undo after patch is applied? .rej/.orig files

The case is following. I have two files: file1.c, file2.c ls file1.c file2.c patch.diff patch < patch.diff ... x out of x hunk FAILED -- saving rejects to file file1.c.rej (the same with file2.c)...
1
vote
1answer
64 views

Does using the guest account in Ubuntu help for Spectre and Meltdown protection?

I was wondering if I use my computer running Ubuntu only for browsing while using the guest account on an unpatched PC logging in to any site I browse - will it be possible to steal any passwords ...
0
votes
1answer
613 views

Apply patch to multiple different name

Is it possible to apply patch to different file name but with the same structure. The case was, I have a patch of a file with specific name and then for some inevitable reason that file got changed ...
1
vote
1answer
123 views

Malformed patch error on AIX machine

I'm created a SVN patch to port from a Linux server to AIX server. The SVN generated patch is as below: Index: cas/cm/cmsee.c =================================================================== --- ...
0
votes
1answer
268 views

Applying RT PREEMPT kernel patch fails

I am trying to apply the RT PREEMPT patch for the Linux kernel. As mentioned in guides like this and this, you are supposed to do it like this: zcat patch-4.14.15-rt13.patch.gz | patch -p1 (...
2
votes
2answers
311 views

Does `patch` work with asymmetric context?

I have file a: This file does have an error in it that needs to be fixed. and a similar file b: This file does have no error in it that needs to be fixed. I can create a unified diff with diff -u ...
1
vote
2answers
79 views

Update strategy for some CentOS packages

We are a free/open source project. We rent a CentOS 7 x86_64 VM for a website and wiki. We keep the VM fully patched. Once a week we log-in and run yum update to ensure we have the latest gear. Some ...
0
votes
1answer
736 views

How can I run patch through a heredoc in bash?

I'm trying to patch a file like this in bash: cat << ''EOF | patch --dry-run > --- urancid 2017-12-06 09:56:33.000000000 -0600 patch --dry-run > +++ /tmp/urancid 2017-12-06 15:...
1
vote
0answers
231 views

Patching fourcc code INZI

I am using Ubuntu 16.04 64 bit to try to capture RGB and Depth images from a Realsense SR300 depth camera. I have installed the appropriate SDK etc, and the camera is being recognised and producing ...
0
votes
2answers
116 views

Is a package specific to a Linux distribution? How to protect against KRACK

I run multiple distributions of Linux. I am researching how to patch against KRACK. The package that is vulnerable in Linux is 'wpa_supplicant'. According to the Vendor Responses the "Linux patch" ...
1
vote
1answer
46 views

What is the origin of multi-line change log entries?

Being able to dig into software history and find a proper justification for the code is great. I think I first saw these in Linux patches - pre-source control. Obviously when Git was written, it ...
1
vote
0answers
174 views

Raspberry Pi RT Preempt Linux Kernel Build Error

I am trying to Build and install a Raspberry Pi RT Preempt Linux Kernel. These are the steps that I had followed: I installed the pre-compiled kernel kernel-4.4.9-rt17.tgz I downloaded Raspberry Pi ...
1
vote
1answer
238 views

How do I patch, compile & upgrade Thunar with a recently released patch… the Arch way?

There's been a patch recently that fixes a very annoying bug in Thunar, which has the latter lock up when files change in the currently open directory. I don't want to wait and would like to download ...
0
votes
1answer
1k views

applying a patch file created by git-diff

I have done a git-diff to generate a patch file: cd git diff --no-prefix ~/.vim/bundle/vim-latex-suite/ftplugin/latex-suite/compiler.vim ~/compiler.vim > ~/vimlatex.patch The resulting patch is ...
0
votes
1answer
737 views

To what files does ` patch -p1` apply the patch in this example?

For revert the changes to a file in a commit, from https://stackoverflow.com/a/2620822/156458 #!/bin/bash function output_help { echo "usage: git-revert-single-file <sha1> <file>" } ...
0
votes
1answer
172 views

Why is `-p1` to `patch` here?

For revert the changes to a file in a commit, from https://stackoverflow.com/a/2620822/156458 #!/bin/bash function output_help { echo "usage: git-revert-single-file <sha1> <file>" } ...
0
votes
1answer
602 views

fatal: Not a git repository?

In order to build and install Yocto for SMA-IMX6, I created a folder and then ran sudo apt-get install git. I could not download the source code directly, so I first downloaded the kernel linux-...
0
votes
1answer
87 views

Patching the kernel with a custom version number and have it listed in grub [closed]

Changed the question to be more specific, in the hope it will be reopened. On Ubuntu, how does one apply a patch (using the patch command) to apply a patch to a kernel (this patch, to get btrfs to ...
3
votes
1answer
678 views

How to apply the xenomai kernel patch on debian?

I've been trying to install xenomai on debian and I'm confused about all the version numbers. I'm on Debian 6 (Linux debian 2.6.32-5-686 #1 SMP Tue May 13 16:33:32 UTC 2014 i686 GNU/Linux) Steps I ...
3
votes
1answer
482 views

Applying patches in debian packages - Part 2

I had asked about applying patches here . I tried today using the same procedure on a different source-package and it failed. Sharing - ~/games $ mkdir decopy ~/games/decopy $ apt-get source decopy ...
1
vote
0answers
109 views

ahci: nvme remap support patches and debian-stable

I had read about installation of Debian GNU/Linux (among others GNU/Linux distributions) on Lenovo Thinkpads issue few months back. I went again to investigate more and found out that some patches ...
0
votes
1answer
567 views

How to use debdiff file to make a local Debian package?

I had asked how to apply patch in a debian package?. After that I had tried to figure out patches against interesting packages and was able to get a script that tells that. cleaning output of a script ...
7
votes
1answer
4k views

how to apply a patch in a debian package?

I put up a bug report and have been asked to apply the patch therein and see if it works. I have tried to find documentation about how to go about doing it but is unclear. The closest I have been ...
6
votes
2answers
2k views

Apply kernel patch to support PIC Mode

I am getting an error when I try to compile drivers for a TP Link AC 600, on Kali Linux amd64 4.7.0 gcc 5.4.1 Debian 5.4.1-3. The error is "error code model kernel does not support PIC mode" After ...
1
vote
1answer
188 views

How to apply OS update/patch remotely in CentOS EC2 instances?

I've a bunch of EC2 instances running on CentOS 6.x. Logging into each and updating the OS (yum update) is cumbersome and not efficient. I'm looking for the optimum way of updating these servers ...
0
votes
1answer
188 views

kGraft ,Live Kernel patching in suse

Can anyone did Kernel live patching using Kgraft in SLES 11 or 12 ? Is there any procedure to be followed ? How can we verify the kernel vulnerability fixes after Kgraft patching ??
9
votes
1answer
1k views

If reversing a patch succeeds does that always mean the patch had been fully applied?

This is touched on in two questions, 'Check if a file or folder has been patched already' and 'Make patch return 0 when skipping an already applied patch' however neither had a satisfying answer. I ...
1
vote
1answer
218 views

How to troubleshoot a kernel not booting without producing a message on screen

I have been experimenting with trying to apply Ingo Molnar's reatime patch and came into a situation where I get a blank screen and no message at all. i.e. Kernel panic, or otherwise. Given, that I ...
0
votes
1answer
3k views

apply patch when asked `File to patch`, what should I do?

I have a system freeze issue and I found this discusion on github, one of them suggest to add 5 patches: When I type: patch p1 < 0001-PM-autocomplet.patch It asked File to patch, I don't ...
0
votes
0answers
97 views

How to install real time patch on Embedded Linux version 3.16.0

I have a microprocessor that runs the embedded linux version 3.16.0-rc3 (armsdk@debian, gcc version 4.7.2 (GCC)). I wanted to install a real time patch, but I did not find the one for my linux version....
3
votes
2answers
116 views

transparent “symlink + binary patch”

I have a project where I am collecting and organizing mp3 files from a long-running radio show. Being from various origins and sources, the naming conventions and ID2/3 tags are all over the place. ...
0
votes
1answer
37 views

Is it possible to get patch to patch files in $HOME and system both in one command and file?

I have created the following patch file using diff -u file1 file2 | file.patch and then edited out the --- line and changed the path: ArkOS_Dev_Openbox.patch +++ ~/.config/openbox/menu.xml 2016-07-...
1
vote
1answer
840 views

How do I add to a unified patch file?

If I have a patch file in the unified patch format like the example below, how do I add lines to it so that those lines are then added by the (applied) patch? --- lao 2002-02-21 23:30:39.942229878 -...
2
votes
1answer
399 views

Applying RT_PREEMPT

I'm trying to install a kernel with the RT_PREEMPT patch on a Lubuntu 16.04 distro and running into some issues I'm not sure how to deal with. I've downloaded the sources for kernel v4.4.12 (linux-4.4....
0
votes
1answer
5k views

After updating the Red Hat server kernel to latest version it still shows as old version

I have updated the kernel on my Red Hat Enterprise Linux Server release 6.7 (Santiago) from 2.6.32-573.22.1.el6.x86_64 to 2.6.32-642.1.1.el6.x86_64 and as per Red Hat documentation https://access....
2
votes
1answer
435 views

How to find a specific patch for a kernel file

I've been debugging an issue in my linux kernel and have found a fix for the issue. Checking cross reference, I can see that the fix was applied to that file between kernel version A and kernel ...
0
votes
1answer
501 views

Linux red-hat + kernel patch update

I need to run the yum update on my Linux redHat machine during the yum update , I sow that yum perform some patch kernel update therefore I little worry to perform a reboot , because the patches of ...