LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2017, 02:18 PM   #1
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Patching Files in Slackware


How do I patch my system with this patch?
https://www.nikhef.nl/~janjust/ppp/download.html

Or do I have to rebuild the source with the patch?
 
Old 05-23-2017, 02:35 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You'd need to rebuild the ppp package once applying the patch. You can add the patch line after this one...

Code:
zcat $CWD/ppp.CVE-2015-3310.diff.gz | patch -p1 --verbose || exit 1
Something like patch -p1 < $CWD/location/to/patch

Then just run the SlackBuild and then upgradepkg --reinstall the new package.
 
Old 05-23-2017, 02:38 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
You should decompress the source compressed archive ppp-2.4.7.tar.xz, apply the two first patches, compress it again then rebuild the package.

To know more, type "man patch".

But why do you want apply these patches? In other words, what do you need that stuff for?

Last edited by Didier Spaier; 05-23-2017 at 02:39 PM.
 
Old 05-23-2017, 03:34 PM   #4
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Original Poster
Rep: Reputation: Disabled
I'm going to assume the patch was successful.

Code:
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/README.eap-tls ppp-2.4.7-eaptls-mppe-0.999/README.eap-tls
|--- ppp-2.4.7/README.eap-tls	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/README.eap-tls	2017-05-09 14:38:55.129084488 +0200
--------------------------
patching file README.eap-tls
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/etc.ppp/eaptls-client ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/eaptls-client
|--- ppp-2.4.7/etc.ppp/eaptls-client	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/eaptls-client	2017-05-09 14:38:55.129084488 +0200
--------------------------
patching file etc.ppp/eaptls-client
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/etc.ppp/eaptls-server ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/eaptls-server
|--- ppp-2.4.7/etc.ppp/eaptls-server	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/eaptls-server	2017-05-09 14:38:55.137084099 +0200
--------------------------
patching file etc.ppp/eaptls-server
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/etc.ppp/openssl.cnf ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/openssl.cnf
|--- ppp-2.4.7/etc.ppp/openssl.cnf	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/etc.ppp/openssl.cnf	2017-05-09 14:38:55.137084099 +0200
--------------------------
patching file etc.ppp/openssl.cnf
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/linux/Makefile.top ppp-2.4.7-eaptls-mppe-0.999/linux/Makefile.top
|--- ppp-2.4.7/linux/Makefile.top	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/linux/Makefile.top	2017-05-09 14:38:55.138084052 +0200
--------------------------
patching file linux/Makefile.top
Using Plan A...
Hunk #1 succeeded at 26.
Hunk #2 succeeded at 37.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/Makefile.linux ppp-2.4.7-eaptls-mppe-0.999/pppd/Makefile.linux
|--- ppp-2.4.7/pppd/Makefile.linux	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/Makefile.linux	2017-05-09 14:38:55.138084052 +0200
--------------------------
patching file pppd/Makefile.linux
Using Plan A...
Hunk #1 succeeded at 76.
Hunk #2 succeeded at 118.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/auth.c ppp-2.4.7-eaptls-mppe-0.999/pppd/auth.c
|--- ppp-2.4.7/pppd/auth.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/auth.c	2017-05-09 14:38:55.139084004 +0200
--------------------------
patching file pppd/auth.c
Using Plan A...
Hunk #1 succeeded at 109.
Hunk #2 succeeded at 186.
Hunk #3 succeeded at 246.
Hunk #4 succeeded at 270.
Hunk #5 succeeded at 430.
Hunk #6 succeeded at 768.
Hunk #7 succeeded at 805.
Hunk #8 succeeded at 1334.
Hunk #9 succeeded at 1397.
Hunk #10 succeeded at 1416.
Hunk #11 succeeded at 1783.
Hunk #12 succeeded at 2436.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/ccp.c ppp-2.4.7-eaptls-mppe-0.999/pppd/ccp.c
|--- ppp-2.4.7/pppd/ccp.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/ccp.c	2017-05-09 14:38:55.148083482 +0200
--------------------------
patching file pppd/ccp.c
Using Plan A...
Hunk #1 succeeded at 540.
Hunk #2 succeeded at 570.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/chap-md5.c ppp-2.4.7-eaptls-mppe-0.999/pppd/chap-md5.c
|--- ppp-2.4.7/pppd/chap-md5.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/chap-md5.c	2017-05-09 14:38:55.148083482 +0200
--------------------------
patching file pppd/chap-md5.c
Using Plan A...
Hunk #1 succeeded at 36.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/eap-tls.c ppp-2.4.7-eaptls-mppe-0.999/pppd/eap-tls.c
|--- ppp-2.4.7/pppd/eap-tls.c	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/eap-tls.c	2017-05-11 10:43:00.345739124 +0200
--------------------------
patching file pppd/eap-tls.c
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/eap-tls.h ppp-2.4.7-eaptls-mppe-0.999/pppd/eap-tls.h
|--- ppp-2.4.7/pppd/eap-tls.h	1970-01-01 01:00:00.000000000 +0100
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/eap-tls.h	2017-05-09 14:38:55.150083347 +0200
--------------------------
patching file pppd/eap-tls.h
Using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/eap.c ppp-2.4.7-eaptls-mppe-0.999/pppd/eap.c
|--- ppp-2.4.7/pppd/eap.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/eap.c	2017-05-09 14:38:55.151083274 +0200
--------------------------
patching file pppd/eap.c
Using Plan A...
Hunk #1 succeeded at 43.
Hunk #2 succeeded at 67.
Hunk #3 succeeded at 218.
Hunk #4 succeeded at 448.
Hunk #5 succeeded at 582.
Hunk #6 succeeded at 808.
Hunk #7 succeeded at 1018.
Hunk #8 succeeded at 1326.
Hunk #9 succeeded at 1555.
Hunk #10 succeeded at 1696.
Hunk #11 succeeded at 2061.
Hunk #12 succeeded at 2105.
Hunk #13 succeeded at 2190.
Hunk #14 succeeded at 2408.
Hunk #15 succeeded at 2554.
Hunk #16 succeeded at 2621.
Hunk #17 succeeded at 2750.
Hunk #18 succeeded at 2870.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/eap.h ppp-2.4.7-eaptls-mppe-0.999/pppd/eap.h
|--- ppp-2.4.7/pppd/eap.h	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/eap.h	2017-05-09 14:38:55.152083200 +0200
--------------------------
patching file pppd/eap.h
Using Plan A...
Hunk #1 succeeded at 84.
Hunk #2 succeeded at 105.
Hunk #3 succeeded at 131.
Hunk #4 succeeded at 164.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/md5.c ppp-2.4.7-eaptls-mppe-0.999/pppd/md5.c
|--- ppp-2.4.7/pppd/md5.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/md5.c	2017-05-09 14:38:55.152083200 +0200
--------------------------
patching file pppd/md5.c
Using Plan A...
Hunk #1 succeeded at 33.
Hunk #2 succeeded at 307.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/md5.h ppp-2.4.7-eaptls-mppe-0.999/pppd/md5.h
|--- ppp-2.4.7/pppd/md5.h	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/md5.h	2017-05-09 14:38:55.152083200 +0200
--------------------------
patching file pppd/md5.h
Using Plan A...
Hunk #1 succeeded at 36.
Hunk #2 succeeded at 64.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/pathnames.h ppp-2.4.7-eaptls-mppe-0.999/pppd/pathnames.h
|--- ppp-2.4.7/pppd/pathnames.h	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/pathnames.h	2017-05-09 14:38:55.153083126 +0200
--------------------------
patching file pppd/pathnames.h
Using Plan A...
Hunk #1 succeeded at 21.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/plugins/Makefile.linux ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/Makefile.linux
|--- ppp-2.4.7/pppd/plugins/Makefile.linux	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/Makefile.linux	2017-05-09 14:38:55.153083126 +0200
--------------------------
patching file pppd/plugins/Makefile.linux
Using Plan A...
Hunk #1 succeeded at 4 with fuzz 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/plugins/passprompt.c ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/passprompt.c
|--- ppp-2.4.7/pppd/plugins/passprompt.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/passprompt.c	2017-05-09 14:38:55.153083126 +0200
--------------------------
patching file pppd/plugins/passprompt.c
Using Plan A...
Hunk #1 succeeded at 107.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/plugins/passwordfd.c ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/passwordfd.c
|--- ppp-2.4.7/pppd/plugins/passwordfd.c	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/plugins/passwordfd.c	2017-05-09 14:38:55.154083052 +0200
--------------------------
patching file pppd/plugins/passwordfd.c
Using Plan A...
Hunk #1 succeeded at 79.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/pppd.8 ppp-2.4.7-eaptls-mppe-0.999/pppd/pppd.8
|--- ppp-2.4.7/pppd/pppd.8	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/pppd.8	2017-05-09 14:38:55.155082978 +0200
--------------------------
patching file pppd/pppd.8
Using Plan A...
Hunk #1 succeeded at 248.
Hunk #2 succeeded at 265.
Hunk #3 succeeded at 299.
Hunk #4 succeeded at 575.
Hunk #5 succeeded at 739.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur ppp-2.4.7/pppd/pppd.h ppp-2.4.7-eaptls-mppe-0.999/pppd/pppd.h
|--- ppp-2.4.7/pppd/pppd.h	2014-08-09 14:31:39.000000000 +0200
|+++ ppp-2.4.7-eaptls-mppe-0.999/pppd/pppd.h	2017-05-09 14:38:55.156082905 +0200
--------------------------
patching file pppd/pppd.h
Using Plan A...
Hunk #1 succeeded at 325.
Hunk #2 succeeded at 746.
done
Configuring for Linux
Thanks guys.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in installation of gcc3.3.6 and patching its patch files. rahaf Linux - Software 1 06-24-2007 07:19 AM
Patching Python files Dee-ehn Linux - Software 2 10-03-2006 02:02 AM
Upgrading & security patching slackware correctme Slackware 13 12-08-2003 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration