-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
base: master
Are you sure you want to change the base?
Conversation
64d9cda
to
946ba89
Compare
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.
This looks mostly ready for merge aside from some minor style cleanup.
Has this been tested on-device yet?
59c84f7
to
84fd348
Compare
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.
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 |
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.
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
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.
erroneously installed mono runtime library should be removed
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.
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
|
Yeah i tested it, jackett.dll should be copied to $PREFIX/bin @truboxl run |
f5ff830
to
7beff26
Compare
@truboxl fixed everything! $ export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib:$LD_LIBRARY_PATH Please merge this package now |
c339db1
to
f838d05
Compare
Co-authored-by: TomIO <[email protected]>
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.
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 |
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.
This should not be necessary. Please set rpath instead, by passing -Wl,-rpath=$TERMUX_PREFIX/lib
in some linker flag.
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.
I can't understand, please show full command
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.
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') |
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.
Please replace $TERMUX_PREFIX with just
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.
Ok
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.
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 |
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.
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 $@ |
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.
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 |
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.
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
Closes: #9757