Skip to content

Update SABnzbd to 3.2.1 - #4537

Merged
hgy59 merged 4 commits into
SynoCommunity:masterfrom
Safihre:sabnzbd321
Apr 14, 2021
Merged

hgy59 merged 4 commits into
SynoCommunity:masterfrom
Safihre:sabnzbd321

Conversation

@Safihre

@Safihre Safihre commented Apr 1, 2021

Copy link
Copy Markdown
Contributor

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

@Safihre
Safihre requested a review from publicarray April 1, 2021 07:01

@publicarray publicarray left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would recommend dropping cross/busybox and use the generic startup script if you are able. It should make updating to DSM7 easier.

EDIT:

I see the package is already using SERVICE_COMMAND so what is busybox actually needed for?

Comment thread spk/sabnzbd/Makefile Outdated
@@ -18,7 +18,7 @@ DESCRIPTION_SPN = SABnzbd hace que Usenet sea lo más simple posible, automatiza
RELOAD_UI = yes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This won't do anything (anymore) and can be removed.

Suggested change
RELOAD_UI = yes

@Safihre

Safihre commented Apr 1, 2021

Copy link
Copy Markdown
Contributor Author

We use busybox for the ionice and nice commands, nothing else :)

@publicarray

Copy link
Copy Markdown
Member

Ah ok thanks, DSM6 has the nice command but not ionice 👍

@Safihre

Safihre commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

@publicarray Actually I see now that ionice doesn't work, or at least it's not picked up by SABnzbd.
The compiled package has the busybox in the bin folder, however, it seems not linked to provide for the ionice command.
Do you maybe understand enough of now cross/busybox should work?
In the old service-setup.sh of old packages we would call delgroup "${USER}" "users" >> ${INST_LOG} even though the busybox provided delgroup wasn't actually in the bin folder of the spk.
What did I miss to get it to link ionice correctly so SABnzbd can use it?

@publicarray

publicarray commented Apr 3, 2021 •

Copy link
Copy Markdown
Member

I've seen this in some packages before they use delgroup etc.

service-setup.sh:

BIN=${SYNOPKG_PKGDEST}/bin
$BIN/busybox --install $BIN >> ${INST_LOG}

@Safihre

Safihre commented Apr 3, 2021

Copy link
Copy Markdown
Contributor Author

Thanks! Of course!
BRB, applying this and testing it!

@Safihre

Safihre commented Apr 3, 2021

Copy link
Copy Markdown
Contributor Author

Fixed it and also took the time to apply a patch to disable the in-app update check. This was requested by users in our forums.

@hgy59 hgy59 mentioned this pull request Apr 9, 2021
2 tasks done
@hgy59

hgy59 commented Apr 11, 2021

Copy link
Copy Markdown
Contributor

as #4539 is now on the master branch, you have to remove >> ${INST_LOG} in service-setup.sh for service_postinst to work.

@Safihre

Safihre commented Apr 12, 2021 •

Copy link
Copy Markdown
Contributor Author

Pushed the changes.

@hgy59

hgy59 commented Apr 12, 2021

Copy link
Copy Markdown
Contributor

@Safihre you need to rebase with master too, otherwise you will have unexpected output at package installation

@hgy59

hgy59 commented Apr 12, 2021

Copy link
Copy Markdown
Contributor

And I changed the first three lines of service-setup.sh to get DSM7 compatibility to:

PYTHON_DIR="/var/packages/python38/target/bin"
PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}:${PATH}"
VIRTUALENV="${PYTHON_DIR}/python3 -m venv"

The /usr/local/{package} folder is old DSM5 stuff and not supported on DSM7.

@hgy59
hgy59 merged commit 4befb82 into SynoCommunity:master Apr 14, 2021
@Safihre

Safihre commented Apr 16, 2021 •

Copy link
Copy Markdown
Contributor Author

@hgy59 Will you also publish the package?
I don't have publish permissions (anymore).

@hgy59 hgy59 added status/published Published and activated (may take up to 48h until visible in DSM package manager) and removed status/ready-to-merge labels Apr 16, 2021
AlexPresso pushed a commit to AlexPresso/spksrc that referenced this pull request Jan 30, 2025
* Update SABnzbd to 3.2.1
* Restore ionice, patch SYNOPKG_PKGVAR and remove update check
* Remove INST_LOG
* Patch variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/published Published and activated (may take up to 48h until visible in DSM package manager)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants