Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I patch DWM?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 8:15 am    Post subject: How do I patch DWM? Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1640
Location: Germany

PostPosted: Wed Jun 19, 2024 8:39 am    Post subject: Reply with quote

If you use portage to install dwm, portage has a possibility to apply patches: https://wiki.gentoo.org/wiki//etc/portage/patches
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54539
Location: 56N 3W

PostPosted: Wed Jun 19, 2024 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 4:04 pm    Post subject: Reply with quote

Banana wrote:
If you use portage to install dwm, portage has a possibility to apply patches: https://wiki.gentoo.org/wiki//etc/portage/patches


I tried it, sadly it does not seem to work, any more options?
Back to top
View user's profile Send private message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 4:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20388

PostPosted: Wed Jun 19, 2024 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 5:04 pm    Post subject: Re: How do I patch DWM? Reply with quote

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
View user's profile Send private message
SavedElijah
n00b
n00b


Joined: 19 Jun 2024
Posts: 10

PostPosted: Wed Jun 19, 2024 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum