View previous topic :: View next topic |
Author |
Message |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
Posted: Tue Oct 11, 2022 7:47 am Post subject: How can I patch files manually? |
|
|
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 |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31581 Location: here
|
Posted: Tue Oct 11, 2022 7:56 am Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55162 Location: 56N 3W
|
Posted: Tue Oct 11, 2022 8:36 am Post subject: |
|
|
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 |
|
 |
Pay08 n00b

Joined: 04 Jul 2022 Posts: 51
|
|
Back to top |
|
 |
|