Patches that relate to specific PR's to be used with https://github.com/cweagans/composer-patches
The patches have been created to be used for composer M2 projects.
So if you have used steps described at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html, you should have a M2 project that has composer.json at it's core that dicrates which packages are installed.
- In project root folder: composer require cweagans/composer-patches=~1.4.0
- Copy the patches you want to use under /patches
- The project composer.json should also already have an "extra" key defined. if you add new sub-key there called "patches" (see above), then the next time you do "composer update", the modules that have patches defined will be re-installed and patches applied. Patches have file-target paths that are relative to composer packages which means that the context defined in composer.json is pretty important and patches are not directly appliable in context on magento/magento2 repository, but they're ripe to be used for composer project.
{
"require": {
"cweagans/composer-patches": "~1.4.0",
},
"extra": {
"patches": {
"magento/module-catalog": {
"Fix: https://github.com/magento/magento2/issues/5438": "https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Catalog-M2.1.0-image-attribute-backend-model-hardcoded-attribute-code-removal.patch",
"Fix: https://github.com/magento/magento2/issues/6076": "https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Catalog-0001-MAGETWO-54223-CMS-Widgets-Catalog-Category-Link-widg.patch",
"Fix: https://github.com/magento/magento2/issues/5931 and https://github.com/magento/magento2/issues/5612": "https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Catalog-M2.1.5-MAGETWO-56410-MAGETWO-56411-github-issues-5931-5612.patch"
},
"magento/module-ui": {
"Fix: https://github.com/magento/magento2/issues/5438": "https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Ui-M2.1.0-allow-backend-to-know-the-origin-input-of-the-upload-request.patch"
},
"magento/magento2-base": {
"Fix: https://github.com/magento/magento2/issues/4232": "https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Base-0001-MAGETWO-52850-GitHub-UTF-8-special-character-issue-i.patch"
}
}
}
}