Difference between revisions of "Localpatch"
(Created page with "{{Template:Fancynote|This is just workprint. Feel free to contribute.}} By default, localpatch will look into /etc/portage/patches in order to search for patches, it can be chang...") |
(added installation steps) |
||
| Line 1: | Line 1: | ||
{{Template:Fancynote|This is just workprint. Feel free to contribute.}} | {{Template:Fancynote|This is just workprint. Feel free to contribute.}} | ||
| − | |||
| − | + | == Installation == | |
| + | localpatch is no longer part of portage. You need to install foobashrc: | ||
| + | <console># ##i##emerge app-portage/foobashrc</console> | ||
| + | This will install the script foobashrc.bashrc at /etc/portage/. It is intended to be used in the emerge process through /etc/portage/bashrc (see [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=6#doc_chap3 Hooking In the Emerge Process (Gentoo Manual)]). If you do not have your own bashrc yet, you can just link it to foobashrc: | ||
| + | <console># ##i##ln -s /etc/portage/foobashrc.bashrc /etc/portage/bashrc</console> | ||
| + | To complete the installation you need to add | ||
| + | |||
| + | <pre> | ||
| + | foobashrc_modules = "localpatch" | ||
| + | </pre> | ||
| + | to your make.conf. By un-/commenting this line you can easily activate/deactivate localepatch. | ||
| + | == How it works == | ||
| + | |||
| + | By default, localpatch will look into /etc/portage/localpatches in order to search for patches. This can be changed by setting LOCALPATCH_OVERLAY variable within make.conf. | ||
| + | |||
| + | The actual patches for a package are places in subdirectories with one of the following naming shemata: | ||
# ${CATEGORY}/${PN}-${PV}-${PR} - example 'app-foo/bar-1.0-r1' | # ${CATEGORY}/${PN}-${PV}-${PR} - example 'app-foo/bar-1.0-r1' | ||
# ${CATEGORY}/${PN}-${PV} - example 'app-foo/bar-1.0' | # ${CATEGORY}/${PN}-${PV} - example 'app-foo/bar-1.0' | ||
# ${CATEGORY}/${PN} - example 'app-foo/bar' | # ${CATEGORY}/${PN} - example 'app-foo/bar' | ||
| + | Only the patches within the first matching shema are used and are applied within numerical order. | ||
| + | |||
| + | == See Also == | ||
| + | [[Localpatch_(Tutorial)]]<br /> | ||
http://forums.funtoo.org/viewtopic.php?id=193 | http://forums.funtoo.org/viewtopic.php?id=193 | ||
Revision as of 20:42, 2 January 2013
This is just workprint. Feel free to contribute.
Installation
localpatch is no longer part of portage. You need to install foobashrc:
# emerge app-portage/foobashrc
This will install the script foobashrc.bashrc at /etc/portage/. It is intended to be used in the emerge process through /etc/portage/bashrc (see Hooking In the Emerge Process (Gentoo Manual)). If you do not have your own bashrc yet, you can just link it to foobashrc:
# ln -s /etc/portage/foobashrc.bashrc /etc/portage/bashrc
To complete the installation you need to add
foobashrc_modules = "localpatch"
to your make.conf. By un-/commenting this line you can easily activate/deactivate localepatch.
How it works
By default, localpatch will look into /etc/portage/localpatches in order to search for patches. This can be changed by setting LOCALPATCH_OVERLAY variable within make.conf.
The actual patches for a package are places in subdirectories with one of the following naming shemata:
- ${CATEGORY}/${PN}-${PV}-${PR} - example 'app-foo/bar-1.0-r1'
- ${CATEGORY}/${PN}-${PV} - example 'app-foo/bar-1.0'
- ${CATEGORY}/${PN} - example 'app-foo/bar'
Only the patches within the first matching shema are used and are applied within numerical order.
See Also
Localpatch_(Tutorial)
http://forums.funtoo.org/viewtopic.php?id=193