{"id":18355737,"url":"https://github.com/fex-emu/fex-ppa","last_synced_at":"2025-04-10T01:43:08.791Z","repository":{"id":38797045,"uuid":"443021616","full_name":"FEX-Emu/FEX-ppa","owner":"FEX-Emu","description":"PPA management","archived":false,"fork":false,"pushed_at":"2025-04-05T01:33:46.000Z","size":288,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T02:26:03.817Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FEX-Emu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-12-30T09:01:55.000Z","updated_at":"2025-04-05T01:33:50.000Z","dependencies_parsed_at":"2023-12-12T00:52:45.847Z","dependency_job_id":"798141c3-6731-4b7b-8e89-e774194637cb","html_url":"https://github.com/FEX-Emu/FEX-ppa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEX-Emu%2FFEX-ppa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEX-Emu%2FFEX-ppa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEX-Emu%2FFEX-ppa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEX-Emu%2FFEX-ppa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FEX-Emu","download_url":"https://codeload.github.com/FEX-Emu/FEX-ppa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142310,"owners_count":21054617,"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":"2024-11-05T22:07:49.855Z","updated_at":"2025-04-10T01:43:08.767Z","avatar_url":"https://github.com/FEX-Emu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick copy-paste guide\n* From root of tree\n``` bash\nexport TEMP_SOURCE=$(mktemp -d -t FEX-XXXXXXXXXX)\nexport FEX_VERSION=$(date +%y%m)\nexport UBUNTU_SUBVERSION= # If exists then tilde plus a number\nexport PACKAGE_VERSION=${FEX_VERSION}${UBUNTU_SUBVERSION}\nexport FEXPPA=$(readlink -f .)\ngit clone --recurse-submodules --depth=1 --branch=FEX-${FEX_VERSION} https://github.com/FEX-Emu/FEX.git $TEMP_SOURCE\nrm -Rf $TEMP_SOURCE/External/{fex-gcc-target-tests-bins,fex-gvisor-tests-bins,fex-posixtest-bins}\nrm -Rf $TEMP_SOURCE/.git\nrm -Rf $TEMP_SOURCE/unittests\nrm -Rf $TEMP_SOURCE/External/vixl/src/aarch32/\nrm -Rf $TEMP_SOURCE/External/vixl/test\ntar -cvpzf fex-emu_${PACKAGE_VERSION}.orig.tar.gz -C $TEMP_SOURCE/ .\nwget https://github.com/bylaws/llvm-mingw/releases/download/20241812/llvm-mingw-20241218-ucrt-ubuntu-20.04-aarch64.tar.xz -O $TEMP_SOURCE/llvm-mingw-20241218-ucrt-ubuntu-20.04-aarch64.tar.xz\ntar -cvpzf wine_fex-emu_${PACKAGE_VERSION}.orig.tar.gz -C $TEMP_SOURCE/ .\n${FEXPPA}/create_packages.py 0 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz\n${FEXPPA}/create_packages.py 1 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz\n${FEXPPA}/create_packages.py 2 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz\n# This step actually uploads the packages to launchpad.\n${FEXPPA}/create_packages.py 3 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz\nrm -Rf $TEMP_SOURCE\nrm -Rf ${FEXPPA}/gen_ppa\nrm ${FEXPPA}/fex-emu_${PACKAGE_VERSION}.orig.tar.gz\nrm ${FEXPPA}/wine_fex-emu_${PACKAGE_VERSION}.orig.tar.gz\n```\n\n# Stage documentation\n* `Args = \u003cScript\u003e \u003cStage\u003e \u003cVersion\u003e \u003cChangelog file\u003e \u003cSource tar\u003e`\n\n## Stage 0\n* Generates a change log from the passed in changelog file and copies it in to debian/changelog\n* Wrapped by changelog_template\n* Make sure to check debian/changelog after generating\n\n`${FEXPPA}/create_packages.py 0 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz`\n\n## Stage 1\n* Generates all the target specific folder structures for building source packages\n* Generates in to `gen_ppa` in cwd\n\n`${FEXPPA}/create_packages.py 1 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz`\n\n## Stage 2\n* Walks all of the target specific debian trees and runs `debuild -S` over them cleanly\n\n`${FEXPPA}/create_packages.py 2 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz`\n\n## Stage 3\n* Walks all of the created debian packages and uploads them directly to the fex-ppa with dput\n* Hardcoded to ppa:fex-emu/fex\n\n`${FEXPPA}/create_packages.py 3 ${FEX_VERSION} ${PACKAGE_VERSION} TestChanges fex-emu_${PACKAGE_VERSION}.orig.tar.gz`\n\n# Local pbuilder testing\n\n## Setting up a pbuilder\n### Only needs to be done once\nThis allows you to create a pbuilder to test building the package before uploading to PPA\n\n* Depending on which builder you want, generate an image for whichever distro series\n\n`sudo pbuilder create --distribution jammy --architecture arm64 --mirror \"http://ports.ubuntu.com/ubuntu-ports/\" --basetgz /var/cache/pbuilder/jammy-arm64-base.tgz`\n\n`sudo pbuilder create --distribution kinetic --architecture arm64 --mirror \"http://ports.ubuntu.com/ubuntu-ports/\" --basetgz /var/cache/pbuilder/kinetic-arm64-base.tgz`\n\n`sudo pbuilder create --distribution noble --architecture arm64 --mirror \"http://ports.ubuntu.com/ubuntu-ports/\" --basetgz /var/cache/pbuilder/noble-arm64-base.tgz`\n\n# Perform the build\nThis will attempt building the package provided with the dsc file.\nResult will be in `/var/cache/pbuilder/result/`\n\n`sudo pbuilder build --distribution jammy --architecture arm64 --basetgz /var/cache/pbuilder/jammy-arm64-base.tgz gen_ppa/fex-emu-armv8.0_${PACKAGE_VERSION}~j.dsc`\n\n`sudo pbuilder build --distribution kinetic --architecture arm64 --basetgz /var/cache/pbuilder/kinetic-arm64-base.tgz gen_ppa/fex-emu-armv8.0_${PACKAGE_VERSION}~k.dsc`\n\n`sudo pbuilder build --distribution noble --architecture arm64 --basetgz /var/cache/pbuilder/noble-arm64-base.tgz gen_ppa/fex-emu-armv8.0_${PACKAGE_VERSION}~n.dsc`\n\n# Cleanup\n` sudo rm /var/cache/pbuilder/noble-arm64-base.tgz`\n\n## After this step you will need to do the `Setting up a pbuilder` step again\n\n# Manual uploading to launchpad ppa\n\n* Typically stage three of the `create_packages.py` script does this\n`dput ppa:fex-emu/fex ../fex-emu_2201_source.changes`\n\n## Common errors\n### Unable to find `fex-emu_2201ubuntu4.orig.tar.gz` in upload or distribution.\n* debuild -S would have printed some text about this\n  * Working: dpkg-buildpackage: info: full upload (original source is included)\n  * Non-working: dpkg-buildpackage: info: binary and diff upload (original source NOT included)\n\n* Failure I found with this was changelog had multiple version back to back same versions\n\n### Unable to find mandatory field 'Changed-By' in the changes file.\n* Changes need to be indented by two spaces otherwise the change file is invalid.\n* Ensure it is indented\n\n### create_package failed with log complaining about running out of memory\n* Add `auto-expand-secmem` to `$HOME/.gnupg/gpg-agent.conf` and then restart gpg-agent with `killall gpg-agent`\n* Lets GPG agent allocate more secure working memory which is necessary to allow multiple signing agents at once\n\n### New subversion rejected due to `Version older than that in the archive`\nWhen updating the package with a new subversion, the old version first needs to be deleted from the ppa.\n\n- This is due to their version check not really understanding the `\u003cVersion\u003e~\u003cSubVersion\u003e~\u003cdistro series\u003e` layout\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-emu%2Ffex-ppa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffex-emu%2Ffex-ppa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-emu%2Ffex-ppa/lists"}