Repository navigation
ADFA-6386: Build terminal packages for org.appdevforall.codeonthego #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
fce4362
35e30fb
5aff857
b899e1d
4932d9c
4ad2773
40b0ac6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,37 @@ | ||
| stages: | ||
| - image | ||
| - build | ||
| - publish | ||
|
|
||
| # ghcr.io/termux/package-builder only publishes :latest, which tracks the newest | ||
| # termux-packages and drifts from our pinned submodule (e.g. NDK r30 vs r29, | ||
| # python3.14 vs python3.12). Build the builder image from the pinned | ||
| # submodule's own Dockerfile instead, cached per submodule commit. | ||
| builder-image: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NITPICK: On a cache miss this job builds the whole package-builder image (Ubuntu, Android SDK, NDK) in docker:dind on GitLab's default runner and default timeout. I couldn't verify whether that fits; the build job's explicit choice suggests it may not. Fix: give it the same tag and an explicit timeout. |
||
| image: docker:27 | ||
| stage: image | ||
| services: | ||
| - docker:27-dind | ||
| variables: | ||
| GIT_SUBMODULE_STRATEGY: recursive | ||
| GIT_SUBMODULE_DEPTH: 1 | ||
| script: | ||
| - SUBMODULE_TAG="$(git -C termux-packages rev-parse --short=12 HEAD)" | ||
| - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" | ||
| - | | ||
| if ! docker pull "$CI_REGISTRY_IMAGE/package-builder:$SUBMODULE_TAG"; then | ||
| docker build -t "$CI_REGISTRY_IMAGE/package-builder:$SUBMODULE_TAG" termux-packages/scripts | ||
| docker push "$CI_REGISTRY_IMAGE/package-builder:$SUBMODULE_TAG" | ||
| fi | ||
| # job images can't use runtime variables, so also tag with the pipeline's commit | ||
| - docker tag "$CI_REGISTRY_IMAGE/package-builder:$SUBMODULE_TAG" "$CI_REGISTRY_IMAGE/package-builder:$CI_COMMIT_SHA" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NITPICK: On a cache hit, every pipeline still pulls the full builder image only to add a per-commit tag, and those tags are never cleaned up. Each pipeline spends minutes and runner disk on a multi-GB Fix: retag at the manifest level ( |
||
| - docker push "$CI_REGISTRY_IMAGE/package-builder:$CI_COMMIT_SHA" | ||
|
|
||
| build-packages: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MINOR: The build matrix still lists The defect is at Fix: change the matrix, and |
||
| image: ghcr.io/termux/package-builder:latest | ||
| image: $CI_REGISTRY_IMAGE/package-builder:$CI_COMMIT_SHA | ||
| stage: build | ||
| needs: | ||
| - job: builder-image | ||
| timeout: 6h | ||
| tags: | ||
| - saas-linux-xlarge-amd64 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ TERMUX_PACKAGE_NAME="com.termux" | |
| export TERMUX_PACKAGE_NAME | ||
|
|
||
| # The package name of the intended application | ||
| COTG_PACKAGE_NAME="com.itsaky.androidide" | ||
| COTG_PACKAGE_NAME="org.appdevforall.codeonthego" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMPORTANT: On a termux-packages tree that was patched before this change, the new package name, repo URL and the three new patches never take effect.
Fix: record the package name, repo URL and patch list in |
||
| export COTG_PACKAGE_NAME | ||
|
|
||
| # Path to the public key | ||
|
|
@@ -38,7 +38,7 @@ TERMUX_PKG_API_LEVEL=28 | |
| export TERMUX_PKG_API_LEVEL | ||
|
|
||
| # The URL of the repository where the packages will be published | ||
| COTG_REPO="https://packages.appdevforall.org/apt/termux-main" | ||
| COTG_REPO="https://packages.appdevforall.org/apt/codeonthego-main" | ||
| export COTG_REPO | ||
|
|
||
| # All supported CPU ABIs | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,6 +109,10 @@ if [[ -z "${COTG_REPO}" ]]; then | |
| scribe_error_exit "A package repository URL must be specified." | ||
| fi | ||
|
|
||
| # generate-bootstraps.sh repacks the JDK's ct.sym with brotli and does not | ||
| # check the result: without brotli it deletes ct.sym and still reports success. | ||
| scribe_check_command "brotli" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MINOR: The The defect is in Fix: in the patch, fail the subshell on any step ( |
||
|
|
||
| COTG_VARIANT="debug" | ||
|
|
||
| declare -a COTG_EXTRA_PACKAGES | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/packages/dos2unix/build.sh b/packages/dos2unix/build.sh | ||
| index b4d2fa40..d30052a0 100644 | ||
| --- a/packages/dos2unix/build.sh | ||
| +++ b/packages/dos2unix/build.sh | ||
| @@ -5,7 +5,7 @@ TERMUX_PKG_LICENSE_FILE="COPYING.txt" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION=7.5.2 | ||
| TERMUX_PKG_REVISION=1 | ||
| -TERMUX_PKG_SRCURL=https://waterlan.home.xs4all.nl/dos2unix/dos2unix-${TERMUX_PKG_VERSION}.tar.gz | ||
| +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/dos2unix/dos2unix/${TERMUX_PKG_VERSION}/dos2unix-${TERMUX_PKG_VERSION}.tar.gz | ||
| TERMUX_PKG_SHA256=264742446608442eb48f96c20af6da303cb3a92b364e72cb7e24f88239c4bf3a | ||
| TERMUX_PKG_BUILD_IN_SRC=true | ||
| TERMUX_PKG_DEPENDS="libandroid-support" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/x11-packages/foot/build.sh b/x11-packages/foot/build.sh | ||
| index 77969a23..d361311e 100644 | ||
| --- a/x11-packages/foot/build.sh | ||
| +++ b/x11-packages/foot/build.sh | ||
| @@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="MIT" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION="1.25.0" | ||
| TERMUX_PKG_SRCURL=https://codeberg.org/dnkl/foot/archive/${TERMUX_PKG_VERSION}.tar.gz | ||
| -TERMUX_PKG_SHA256=442a42d576ec72dd50f2d3faea8a664230a47bac79dc1eb6e7c9125ee76c130f | ||
| +TERMUX_PKG_SHA256=ee9d0e51295945157ecb33119cb2c79b276093d0fd342d959d78d772d505571c | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NITPICK: This checksum pins an archive Codeberg generates on demand, and it has already been regenerated once. The next regeneration breaks Fix: if foot publishes a release tarball for 1.25.0, point |
||
| TERMUX_PKG_AUTO_UPDATE=true | ||
| TERMUX_PKG_DEPENDS="libandroid-support, fontconfig, freetype, libfcft, libpixman, libwayland, libxkbcommon, utf8proc" | ||
| TERMUX_PKG_BUILD_DEPENDS="libtllist, libwayland-protocols, libwayland-cross-scanner, scdoc, xdg-utils" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| diff --git a/packages/apr-util/build.sh b/packages/apr-util/build.sh | ||
| index d6fa52a5..0f3e8071 100644 | ||
| --- a/packages/apr-util/build.sh | ||
| +++ b/packages/apr-util/build.sh | ||
| @@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION=1.6.3 | ||
| TERMUX_PKG_REVISION=3 | ||
| -TERMUX_PKG_SRCURL=https://downloads.apache.org/apr/apr-util-${TERMUX_PKG_VERSION}.tar.gz | ||
| +TERMUX_PKG_SRCURL=https://archive.apache.org/dist/apr/apr-util-${TERMUX_PKG_VERSION}.tar.gz | ||
| TERMUX_PKG_SHA256=2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983 | ||
| TERMUX_PKG_DEPENDS="apr, libcrypt, libexpat, libiconv, libuuid" | ||
| TERMUX_PKG_BREAKS="apr-util-dev" | ||
| diff --git a/packages/giflib/build.sh b/packages/giflib/build.sh | ||
| index 99328807..e32835b5 100644 | ||
| --- a/packages/giflib/build.sh | ||
| +++ b/packages/giflib/build.sh | ||
| @@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="MIT" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION="5.2.2" | ||
| TERMUX_PKG_REVISION=1 | ||
| -TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/giflib/giflib-${TERMUX_PKG_VERSION}.tar.gz | ||
| +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/giflib/giflib-${TERMUX_PKG_VERSION%%.*}.x/giflib-${TERMUX_PKG_VERSION}.tar.gz | ||
| TERMUX_PKG_SHA256=be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb | ||
| TERMUX_PKG_BREAKS="giflib-dev" | ||
| TERMUX_PKG_REPLACES="giflib-dev" | ||
| diff --git a/packages/nano/build.sh b/packages/nano/build.sh | ||
| index 646e14b8..b1d3c13a 100644 | ||
| --- a/packages/nano/build.sh | ||
| +++ b/packages/nano/build.sh | ||
| @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor" | ||
| TERMUX_PKG_LICENSE="GPL-3.0" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION="8.7" | ||
| -TERMUX_PKG_SRCURL=https://nano-editor.org/dist/latest/nano-$TERMUX_PKG_VERSION.tar.xz | ||
| +TERMUX_PKG_SRCURL=https://nano-editor.org/dist/v${TERMUX_PKG_VERSION%%.*}/nano-$TERMUX_PKG_VERSION.tar.xz | ||
| TERMUX_PKG_SHA256=afd287aa672c48b8e1a93fdb6c6588453d527510d966822b687f2835f0d986e9 | ||
| TERMUX_PKG_AUTO_UPDATE=true | ||
| TERMUX_PKG_DEPENDS="libandroid-support, ncurses" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR:
publish-packagesstill pushes to Scribe's GitLab repository, not to thecodeonthego-mainrepository this PR pointsCOTG_REPOat.The job, outside this diff, clones
scribe-oss/core/scribe-packages-repoand commits as "Scribe CI". Once CI is wired up, a green pipeline would publish the CoGo packages there and leavepackages.appdevforall.org/apt/codeonthego-mainempty, soaptinside the app finds nothing. No pipeline runs today, but it contradicts the description's claim that the config is now correct.Fix: point the publish job at the CoGo package host, or remove it until CI is wired up.