Skip to content
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

addpkg(main/jackett): 0.2.1411 #23166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aicynide
Copy link
Contributor

Closes: #9757

@aicynide aicynide force-pushed the jackett branch 2 times, most recently from 64d9cda to 946ba89 Compare February 12, 2025 12:39
Copy link
Member

@TomJo2000 TomJo2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks mostly ready for merge aside from some minor style cleanup.

Has this been tested on-device yet?

Copy link
Contributor

@truboxl truboxl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides requesting other changes, please fix your commit authorship. All your recent PRs have the same issue.

From: Your Name <[email protected]>
Date: Wed, 12 Feb 2025 16:04:17 +0530

TERMUX_PKG_SERVICE_SCRIPT=("jackett" 'exec ${TERMUX_PREFIX}/bin/dotnet ${TERMUX_PREFIX}/lib/jackett/jackett.dll --DataFolder ${TERMUX_ANDROID_HOME}/.config/jackett 2>&1')
TERMUX_PKG_BLACKLISTED_ARCHES="arm"
TERMUX_PKG_RM_AFTER_INSTALL="
lib/jackett/libMono.Unix.so
Copy link
Contributor

@truboxl truboxl Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am rejecting this. If this lib is published as part of the program, it is essential to the running of the program. Removing it will cause problem. If the check fails, then is should be manually recompiled. EDIT: Retracting since further analysis of source code shows it's not used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

erroneously installed mono runtime library should be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically DllNotFoundException error can still happen when Check For Updates but I see you disabled update so I wont mind
If preferable build the correct libMono.Unix.so manually

@truboxl
Copy link
Contributor

truboxl commented Feb 13, 2025

$ jackett
The application to execute does not exist: '/data/data/com.termux/files/usr/bin/jackett.dll'.

@aicynide
Copy link
Contributor Author

$ jackett
The application to execute does not exist: '/data/data/com.termux/files/usr/bin/jackett.dll'.

Yeah i tested it, jackett.dll should be copied to $PREFIX/bin

@truboxl run $ dotnet $PREFIX/lib/jackett/jackett.dll

@aicynide aicynide requested a review from truboxl February 13, 2025 13:18
@aicynide aicynide force-pushed the jackett branch 3 times, most recently from f5ff830 to 7beff26 Compare February 15, 2025 18:53
@aicynide
Copy link
Contributor Author

@truboxl fixed everything!
You can run comfortably now
$ jackett
I ask u to set library path before running it

$ export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib:$LD_LIBRARY_PATH

Please merge this package now

@aicynide aicynide force-pushed the jackett branch 5 times, most recently from c339db1 to f838d05 Compare February 16, 2025 02:26
Copy link
Member

@Grimler91 Grimler91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

cp -r build "${TERMUX_PREFIX}/lib/jackett"
cat > $TERMUX_PREFIX/bin/jackett <<HERE
#!$TERMUX_PREFIX/bin/sh
export LD_LIBRARY_PATH=$TERMUX_PREFIX/lib:\$LD_LIBRARY_PATH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be necessary. Please set rpath instead, by passing -Wl,-rpath=$TERMUX_PREFIX/lib in some linker flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't understand, please show full command

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know anything about dotnet and what compiler flags it uses, so cannot give a full command. For many systems it is enough to:

export LDFLAGS+=" -Wl,-rpath=$TERMUX_PREFIX/lib"

but maybe dotnet does things differently.

TERMUX_PKG_BUILD_DEPENDS="aspnetcore-targeting-pack-8.0, dotnet-targeting-pack-8.0"
TERMUX_PKG_DEPENDS="aspnetcore-runtime-8.0, dotnet-host, dotnet-runtime-8.0"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_SERVICE_SCRIPT=("jackett" 'exec ${TERMUX_PREFIX}/bin/jackett --DataFolder ${TERMUX_ANDROID_HOME}/.config/jackett 2>&1')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace $TERMUX_PREFIX with just $PREFIX and ${TERMUX_ANDROID_HOME} with $HOME. $TERMUX_PREFIX and $TERMUX_ANDROID_HOME are only available during build, not during runtime on device.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Contributor

@truboxl truboxl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are not fixing your commit authorship, we are not going to merge this.

cp -r build "${TERMUX_PREFIX}/lib/jackett"
cat > $TERMUX_PREFIX/bin/jackett <<HERE
#!$TERMUX_PREFIX/bin/sh
export LD_LIBRARY_PATH=$TERMUX_PREFIX/lib:\$LD_LIBRARY_PATH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export LD_LIBRARY_PATH=$TERMUX_PREFIX/lib:\$LD_LIBRARY_PATH

cat > $TERMUX_PREFIX/bin/jackett <<HERE
#!$TERMUX_PREFIX/bin/sh
export LD_LIBRARY_PATH=$TERMUX_PREFIX/lib:\$LD_LIBRARY_PATH
exec $TERMUX_PREFIX/lib/jackett/jackett --NoUpdates $@
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exec $TERMUX_PREFIX/lib/jackett/jackett --NoUpdates $@
exec dotnet $TERMUX_PREFIX/lib/jackett/jackett.dll --NoUpdates "\$@"

TERMUX_PKG_SERVICE_SCRIPT=("jackett" 'exec ${TERMUX_PREFIX}/bin/dotnet ${TERMUX_PREFIX}/lib/jackett/jackett.dll --DataFolder ${TERMUX_ANDROID_HOME}/.config/jackett 2>&1')
TERMUX_PKG_BLACKLISTED_ARCHES="arm"
TERMUX_PKG_RM_AFTER_INSTALL="
lib/jackett/libMono.Unix.so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically DllNotFoundException error can still happen when Check For Updates but I see you disabled update so I wont mind
If preferable build the correct libMono.Unix.so manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package]: Jackett
4 participants