Closed termuxbot2 closed 5 months ago
Help
Help
This seems to be your first comment on GitHub. What exactly do you want help with?
This issue is for a routine package auto update failure of our uwsgi
package.
If you are requesting it to be updated, someone will get around to it when they have the time.
All contributors to the Termux project are volunteers, as such these things might take some time.
hey i wanted to update this package but when i ran the sha256sum on the tar ball it was exactly the same so did someone else already update the package @TomJo2000
i ran the sha256sum on the tar ball it was exactly the same so did someone else already update the package
I'm not sure I quite got that.
You can download the new version's tarball and run sha256sum
on that manually to get the new checksum of course, but we have a more automated way to do the same thing.
./scripts/bin/update-checksum
.
It even gives you the option to put that into a git commit right away, you just gotta bump the version in the build.sh
file.This is exactly what the autoupdater does.
Now, obviously since this issue was opened, something isn't working with the autoupdate in this case, so you'll probably need to read the logs above, or run a couple test builds yourself using the package build container to figure out why it's not working.
It looks like the core-uwsgi.c.patch
is failing to apply.
That will probably need to be regenerated. Or may no longer be necessary.
That's where you come in.
Once you have it building fine locally you can send up a PR here and we'll talk you through any other specifics that might come up.
no what i meant is that someone has already updated the package
@pranav10780 You incorrectly calculated checksum.
When version is changed, you need to download the latest tarball and run sha256sum
on it. Then replace checksum variable with new value.
diff --git a/packages/uwsgi/build.sh b/packages/uwsgi/build.sh
index f66d09acd..5435fb285 100644
--- a/packages/uwsgi/build.sh
+++ b/packages/uwsgi/build.sh
@@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://projects.unbit.it/uwsgi
TERMUX_PKG_DESCRIPTION="uWSGI application server container"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
-TERMUX_PKG_VERSION="2.0.24"
-TERMUX_PKG_REVISION=1
+TERMUX_PKG_VERSION="2.0.25.1"
TERMUX_PKG_SRCURL=https://github.com/unbit/uwsgi/archive/${TERMUX_PKG_VERSION}.tar.gz
-TERMUX_PKG_SHA256=6be644f8c36379a97ca1c71c03c146af109983a58eacefbcfdaaff3c62d7edf8
+TERMUX_PKG_SHA256=a1e4a401f71d29e49d4762223412c32a42594c415f9d72d0f759680e5b8f4cf9
TERMUX_PKG_DEPENDS="libandroid-glob, libandroid-sysv-semaphore, libandroid-utimes, libcap, libcrypt, libjansson, libuuid, libxml2, openssl, pcre, python"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
Checksum will not change only if you downloaded the same tarball version as was used before.
No one already updated package. The last update of uwsgi was 2 months ago.
P.S. Use script ./scripts/bin/update-checksum
if not sure about how to update checksum.
(source build.sh; curl -LO $TERMUX_PKG_SRCURL)
This is how I downloaded the tarball and then check the checksum
But i downloaded old tarball ,so how do I download the latest version
But i downloaded old tarball ,so how do I download the latest version
To download the new version, change the version in the build.sh
file,
and then run ./scripts/bin/update-checksum uwsgi
, as both sylirre and I have already suggested.
remote: Permission to termux/termux-packages.git denied to pranav10780. fatal: unable to access 'https://github.com/termux/termux-packages.git/': The requested URL returned error: 403
thsi is my current issue , i was able to downlaod the latest tarball and use the update-checksum script but when i type git push this error comes up
I have tried the common fixes and stuff from stackoverflow but nothing seems to work
.git/
at the end.We don't provide public access to git push to termux-packages repo. You should fork this repo, make some changes and make a pull request to this repo if you want to contribute.
Oh, that was a git push. I thought it was a git clone. I need to sleep a bit more...
Any guidance on why the patch fails. I am out of ideas to try
Briefly the patch file is a summary of differences between original source and modified. If the context in the patch differs from the source code it being applied to, it would fail.
In this case the following code part
// in threading mode we need to use the cancel pthread subsystem
void wait_for_threads() {
was changed to
// This function is called from signal handler or main thread to wait worker threads.
// `uwsgi.workers[uwsgi.mywid].manage_next_request` should be set to 0 to stop worker threads.
static void wait_for_threads() {
This source code change invalidated the patch file and it should be regenerated.
Closing as package update was submitted.
Hi, I'm Termux 🤖.
I'm here to help you update your Termux packages.
I've tried to update the uwsgi package, but it failed.
Here's the output of the update script:
Show log
Above error occured when I last tried to update at 2024-04-14 00:27:11 UTC.
Run ID: 8677195975
Note: Automatic updates will be disabled until this issue is resolved.