LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2016, 12:41 PM   #16
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled

Just read your post, Grail, and that in itself has just cleared up and verified that patch works where it is. Thanks.
 
Old 03-31-2016, 02:07 PM   #17
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,768

Rep: Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050
I would mention that if you read the man page it does have a good little example about using the -p option, but the breakdown is that it strips off leading slashes based on the value assigned (ie, 0 would be the full path and 1 would make it relative to the current directory and so on). So depending on where you call the patch from (where the actual patch file is is irrelevant) you need
the path to the file to be patched to be the same. So in your example you could put a boot directory in your test directory and place the file to be changed in there and create the patch.
the issue then becomes if you set it to 1 and as boot sits directly under the root directory, you would need to be calling the path command from within / ... hope that helps a little
 
1 members found this post helpful.
Old 03-31-2016, 03:00 PM   #18
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Yes it does, I have read the man pages actually, and I kind of get it, though it is a lot more complex than just using absolute paths in my opinion, but hey I'm still new to linux in my opinion. Thanks for helping me battle through this one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Bitbake - applying patch to a recipe- No file to patch error phani222 Linux - Newbie 6 01-10-2018 06:14 AM
LFS 5.4 error: patch: **** Can't open patch file .. DavidLee1A Linux From Scratch 6 12-28-2012 04:33 PM
can't find file to patch at input line n problem, Installing WiMax module on ns2-29 Narges Linux - Newbie 14 12-15-2012 05:41 AM
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration