{"id":29130606,"url":"https://github.com/elementary/os-patches","last_synced_at":"2025-06-30T04:08:08.156Z","repository":{"id":39764129,"uuid":"131585804","full_name":"elementary/os-patches","owner":"elementary","description":"Patched packages for elementary OS and the tools that keep them up-to-date","archived":false,"fork":false,"pushed_at":"2025-05-10T23:02:43.000Z","size":582396,"stargazers_count":20,"open_issues_count":9,"forks_count":12,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-05-10T23:25:53.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elementary.png","metadata":{"funding":{"github":"elementary","patreon":"elementary","liberapay":"elementary","custom":"https://elementary.io/get-involved#funding"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-30T11:06:24.000Z","updated_at":"2025-04-14T23:37:42.000Z","dependencies_parsed_at":"2023-11-06T10:30:27.238Z","dependency_job_id":"9afaf97c-152e-4625-88f5-6ceb9bf8a2d6","html_url":"https://github.com/elementary/os-patches","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elementary/os-patches","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary%2Fos-patches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary%2Fos-patches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary%2Fos-patches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary%2Fos-patches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elementary","download_url":"https://codeload.github.com/elementary/os-patches/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementary%2Fos-patches/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262708004,"owners_count":23351532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-30T04:07:58.321Z","updated_at":"2025-06-30T04:08:08.142Z","avatar_url":"https://github.com/elementary.png","language":"Python","funding_links":["https://github.com/sponsors/elementary","https://patreon.com/elementary","https://liberapay.com/elementary","https://elementary.io/get-involved#funding"],"categories":[],"sub_categories":[],"readme":"# OS Patches metarepository\n\nThis repository contains all the sources for the elementary specific patches.\n\nThe packages are included into the [OS Patches Repository](https://launchpad.net/~elementary-os/+archive/ubuntu/os-patches).\n\n## How is this repository working\n\nThe `master` branch is composed of GitHub Workflows that are running daily to\ncheck for any new version in the Ubuntu repositories of the patched components.\nIf a newer version of a package is found in the Ubuntu repositories, a Pull Request\nwill be opened in this repository to let the team know to rebase patches and push\nand update.\n\nThe workflow uses the `get-latest-version.py` python script included.\n\nIt depends on `python3-launchpadlib`, `python3-apt` and `python3-github`.\n\n## Many branches\n\nThe repository is made of several distinct branches:\n * `import-list-$UBUNTU_NAME` is the branch listing the different packages\n that are getting patched.\n * `$PACKAGE-$UBUNTU_NAME` is the last source that got used to create the\n patched version\n * `$PACKAGE-$UBUNTU_NAME-patched` is `$PACKAGE-$UBUNTU_NAME` with the patch\n applied on it\n\nThe package list file in `import-list-$UBUNTU_NAME` contains one package per\nline of packages to be monitored by the workflow. If the patched package has\nbeen backported from a newer Ubuntu release, you can denote this in the list\nwith a colon separator\n\ne.g. `packagekit:$NEWER_UBUNTU_NAME`\n\n\u003e Note that when possible, we try to discourage the use of OS patches and work\ndirectly with upstream to include them.\n\n## Creating a new Patch\n\n1. Create a new orphan branch\n\n    `git checkout --orphan {pkg-name}-{dist} \u0026\u0026 git rm -rf .`\n  \n2. Get the source of the package to be patched with `apt-source`. Do not use `sudo`.\n\n    `apt source {pkg-name}`\n  \n3. Remove everything but the unpacked sources\n\n    `rm *.tar.* *.dsc`\n  \n4. Move the source folder contents up to the pwd and then delete the empty folder\n\n    `cp -r {source-folder-name}/. . \u0026\u0026 rm -r {source-folder-name}`\n  \n5. Add source files, commit, and push\n\n    `git add * \u0026\u0026 git commit -am \"Initial Import, version {pkg-version}\"`\n  \n6. Create a `-patched` branch as a fork of this branch, not an orphan, make changes and push\n7. Create a packaging recipe on Launchpad: https://code.launchpad.net/~elementary-os/elementaryos/+git/os-patches/+recipes\n8. Once the build succeeds and is uploaded, update the `import-list-{dist}` branch. If this is done before the build succeeds, there will be false issue reports filed due to missing packages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementary%2Fos-patches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felementary%2Fos-patches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementary%2Fos-patches/lists"}