View previous topic :: View next topic |
Author |
Message |
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 8:15 am Post subject: How do I patch DWM? |
|
|
I went over the DWM documentation in the gentoo website, but it did not work, am I doing it wrong?
The website-> https://wiki.gentoo.org/wiki/Dwm
The steps I did->
1)Make a new dwm directory
2)Put the .diff file in dwm directory.
3)Compiled dwm.
Problem:- It complies but the patch does not get applied, the patch I am applying is always center.
Thank you and God Bless! |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1721 Location: Germany
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Wed Jun 19, 2024 8:58 am Post subject: |
|
|
SavedElijah,
emerge runs Code: | patch -p1 patchfile |
If the patch was not found at all, that is there was no error, its not in the path where emerge is looking.
If applying the patch ends with a no file to patch error, the chunk headers are probably incorrect for patch -p1
Then you can get failed to apply hunk ... which means that patch found everything but the code to be patched has changed, so the patch needs to be recreated. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 4:04 pm Post subject: |
|
|
I tried it, sadly it does not seem to work, any more options? |
|
Back to top |
|
|
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 4:06 pm Post subject: |
|
|
NeddySeagoon wrote: | SavedElijah,
emerge runs Code: | patch -p1 patchfile |
If the patch was not found at all, that is there was no error, its not in the path where emerge is looking.
If applying the patch ends with a no file to patch error, the chunk headers are probably incorrect for patch -p1
Then you can get failed to apply hunk ... which means that patch found everything but the code to be patched has changed, so the patch needs to be recreated. |
It comes back with an error "Not a valid pakage atom" |
|
Back to top |
|
|
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 4:13 pm Post subject: |
|
|
SavedElijah wrote: | NeddySeagoon wrote: | SavedElijah,
emerge runs Code: | patch -p1 patchfile |
If the patch was not found at all, that is there was no error, its not in the path where emerge is looking.
If applying the patch ends with a no file to patch error, the chunk headers are probably incorrect for patch -p1
Then you can get failed to apply hunk ... which means that patch found everything but the code to be patched has changed, so the patch needs to be recreated. |
It comes back with an error "Not a valid pakage atom" |
I used patch ps1 < patchfile but it cannot find my dwm config. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20484
|
Posted: Wed Jun 19, 2024 4:17 pm Post subject: |
|
|
SavedElijah wrote: | any more options? | Provide actual and complete output of the commands you are executing so others can see exactly what is happening. There may be an important clue you're not noticing.
That includes the contents of the directory where the patch resides as well as the contents of the patch itself. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 5:04 pm Post subject: Re: How do I patch DWM? |
|
|
SavedElijah wrote: | I went over the DWM documentation in the gentoo website, but it did not work, am I doing it wrong?
The website-> https://wiki.gentoo.org/wiki/Dwm
The steps I did->
1)Make a new dwm directory
2)Put the .diff file in dwm directory.
3)Compiled dwm.
Problem:- It complies but the patch does not get applied, the patch I am applying is always center.
Thank you and God Bless! |
|
|
Back to top |
|
|
SavedElijah n00b
Joined: 19 Jun 2024 Posts: 10
|
Posted: Wed Jun 19, 2024 5:11 pm Post subject: |
|
|
pjp wrote: | SavedElijah wrote: | any more options? | Provide actual and complete output of the commands you are executing so others can see exactly what is happening. There may be an important clue you're not noticing.
That includes the contents of the directory where the patch resides as well as the contents of the patch itself. |
Hey! Thank you for reaching out to me, turns out there was some problem with the package directory itself, I fixed it! |
|
Back to top |
|
|
|