Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I patch files manually?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Tue Oct 11, 2022 7:47 am    Post subject: How can I patch files manually? Reply with quote

Sometimes, patches in /etc/portage/patches will fail for me on adding single lines and I don't want to mess with the patch so would like to remedy this manually. However, the files in /var/tmp/portage get overwritten by emerge. Is there an option/directory that would allow me to patch files manually?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31581
Location: here

PostPosted: Tue Oct 11, 2022 7:56 am    Post subject: Reply with quote

You can use ebuild command that allows you to do the phases launched automatically by emerge

Code:
# ebuild /var/db/repos/gentoo/<category>/<package>/<package>-<version>.ebuild unpack
-- now you can go in /var/tmp/portage and modify source code
# ebuild /var/db/repos/gentoo/<category>/<package>/<package>-<version>.ebuild merge

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Oct 11, 2022 8:36 am    Post subject: Reply with quote

Pay08,

You may as make yourself a new patch if you follow fedeliallalineas advice.
It may be needed again.
_________________
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
Pay08
n00b
n00b


Joined: 04 Jul 2022
Posts: 51

PostPosted: Tue Oct 11, 2022 12:00 pm    Post subject: Reply with quote

[quote="fedeliallalinea"]You can use ebuild command that allows you to do the phases launched automatically by emerge

Thanks, that solved it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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