addpkg(x11/upscaler): 1.6.3#29630
Conversation
sabamdarif
commented
May 1, 2026
- same as other two
- btw i use bit AI here , so idk if it will be ok or not
4f555a8 to
23c8caa
Compare
TomJo2000
left a comment
There was a problem hiding this comment.
There's an existing x11-packages/libncnn.
And the build for upscayl-ncnn looks a bit odd.
But the package and dependencies itself look fine from a packaging guidelines standpoint.
Nix, AUR and FreeBSD is just about the bare minimum for existing packages.
But this is a fairly niche GNOME Circle application, so I'm inclined to be slightly more lenient on it.
https://repology.org/project/upscaler/versions
| termux_download "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesrgan-ncnn-vulkan-20220424-ubuntu.zip" \ | ||
| "${TERMUX_PKG_CACHEDIR}/realesrgan-ncnn-vulkan-20220424-ubuntu.zip" \ | ||
| "e5aa6eb131234b87c0c51f82b89390f5e3e642b7b70f2b9bbe95b6a285a40c96" |
There was a problem hiding this comment.
What's going on here?
Do we need a host version of this?
In any case the version(s) shouldn't be hardcoded.
And if this is in the Ubuntu repos you should use termux_download_ubuntu_packages instead.
But again... What?
There was a problem hiding this comment.
so it's because arch linux did this https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=upscayl-ncnn#n16
TERMUX_PKG_VERSION=(
"20251207-174704"
"v0.2.5.0"
)
TERMUX_PKG_SRCURL=(
"https://github.com/upscayl/upscayl-ncnn/archive/refs/tags/${TERMUX_PKG_VERSION[0]}.tar.gz"
"https://github.com/xinntao/Real-ESRGAN/releases/download/${TERMUX_PKG_VERSION[1]}/realesrgan-ncnn-vulkan-20220424-ubuntu.zip"
)but idk for what reason it always stopping after applying the patch this is what happened https://github.com/sabamdarif/termux-packages/actions/runs/25170925096/job/73789809688#step:9:5001
that's why i use this , idk how how to do it right way
There was a problem hiding this comment.
if it's not a problem can you please guide me how this build.sh should be
There was a problem hiding this comment.
@TomJo2000 This zip archive contains model files for image upscaling. No build tools and realesrgan-ncnn-vulkan is not used anyway. There is no ubuntu package exist for it.
There shouldn't be issue downloading it in post-get-source or pre-configure.
Bash package does something like to pull additional patches:
termux-packages/packages/bash/build.sh
Lines 37 to 57 in 1e77a3a
There was a problem hiding this comment.
I'd say bash is a somewhat different case since those patches are essentially Bash's way to do patch releases instead of doing a new tag and tarball like most packages do.
Either way is fine.
I think I'd prefer just having it in the TERMUX_PKG_SRCURL array though since that saves us the hassle of needing a post-get-source hook.
There was a problem hiding this comment.
@TomJo2000 then should i test adding both of this in TERMUX_PKG_SRCURL ?
| cd "$TERMUX_PKG_SRCDIR" | ||
| mv src/* . | ||
| rm -rf src |
There was a problem hiding this comment.
Did you mean TERMUX_PKG_BUILD_IN_SRC=true?
There was a problem hiding this comment.
it didn't start compiling process https://github.com/termux/termux-packages/actions/runs/25224117441/job/73963347510?pr=29630#step:9:4808
e26a7ff to
21c0d73
Compare
21c0d73 to
91267cf
Compare
it looks like something related to blueprint-compiler |
|
i think i should try once with this upscayl/upscayl-ncnn#13 patch |
Perhaps something wrong with my build env. On GitHub Actions I see builds except arm passed. |
d4ef011 to
6333b9b
Compare
|
I've tested this PR upscaling a screenshot and in my case the result is just a black image |
i need to fix it , in my current device it doesn't work because of some driver issue , so there is some issues I needed to be fixed, also arm version doesn't build and upscayl-ncnn have some error during the build so there are a lot to fix |
6333b9b to
be635b9
Compare
27dd71b to
b7ca55e
Compare
|
all the build errors are fixed, now i just need to test it |
|
@DuilioPerez can you test the new build ? |
Sorry, I can't test today. Maybe tomorrow. I'm compiling libreoffice for termux to test bugs, and that take a long time |
wow that's great , let me know how things happens , i will try to help if i can |
Yes, I started yesterday but accidentally stopped the build so I restarted. It was not possible to finish after 12 hours. But I'll give it all the time I can to start testing |
|
@sabamdarif if you're interested here we talk about it: #29690 |
