SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Add apollolake support to some packages (Sonarr/Transmission/Radarr/etc) for DSX18+ #2945

Closed AthAshino closed 6 years ago

AthAshino commented 6 years ago

Setup

Package Name: Sonarr/Transmission/Radarr/SABnzbd/Python V2/nano/Jackett/Git Server/Python Package Version:

NAS Model: DS218+, DS718+, DS918+ NAS Architecture: Apollo Lake DSM version: 6.1

Expected behavior

Support for NAS devices (DS218+ specifically) with apollolake architecture in some packages (Sonarr, Radarr, Jackett and Transmission in my case).

Actual behavior

Sonarr, Radarr, Transmission, SABnzbd, Python v2, Jackett, Git Server, Python and nano are currently not available for apollolake-based NAS devices in SynoCommunity package repo.

Thank you for your time.

RedCat30 commented 6 years ago

Hello

I can't find Midnight Commander for DS918+ in synocommunity repo. Can you help me?
Thx

RedCat

ymartin59 commented 6 years ago

@wshyang As it is easy to build and do not run background service, I just built it: http://dl.free.fr/bE1mHpnAo I hope it will work...

Superbeest commented 6 years ago

Sonarr seems to be working fine on 918+ apollolake using these builds: first installed mono https://www.dropbox.com/s/wgvvct1sf0507aq/mono_apollolake-6.1_5.8.0.22-9.spk?dl=0 then Sonarr: https://github.com/SynoCommunity/spksrc/files/1418348/nzbdrone_apollolake-6.1_20171026-10.spk.zip

Thanks! (links found in this thread)

jilleb commented 6 years ago

If that's the case, Sonarr could be added to the repository so it can be installed in the "official" way, right?

Safihre commented 6 years ago

I tried to compile python for you guys, but there is something wrong with the python spk on the DSM6.1 toolchain: it won't compile due to a problem in CFFI. I already updated the cffi and pycparser packages to the latest version in my branch, but it didn't work: https://travis-ci.org/Safihre/spksrc/builds/304371455 Maybe a newer setuptools?

The strangest part is that I can actually compile the sabnzbd package on the DSM6.1 toolchain, which compiles the whole of cross/python without a problem. Only the spk gives a problem.

I also compiled all the other packages you requested (untested!) Click to see the files for each app: https://github.com/Safihre/spksrc/tags

Safihre commented 6 years ago

Oke I think I managed to get python working! Can you guys test it? https://github.com/Safihre/spksrc/releases/tag/python-5-dms61

Safihre commented 6 years ago

There are also new mono (and the packages using mono) available here: https://github.com/Safihre/spksrc/tags

Need feedback to create a final version to submit PR :)

tchirou commented 6 years ago

Hi

Just installed on a DS418play with intel J3355 with DSM DSM 6.1.4-15217 Update 1 and it runs.

I don't know what else to check, I use the packages couchpotato-custom, sickbear-custom and sabnzbd-testing which do not work without a working git package. I have them as I was on a ds414j with DSM 5, then migrated to DSM 6 then migrated to the DS414play

I had instaled mylar through git (not the synocommunity package) and it still worked. And it keeps working now with this python package. I just shutdown it and launched it and it works.

I am not a linux wizard but if you can tell me what to do yo help you to insure it works as intended, I am available

Thanks a lot for your work !

2017-11-23 20:17 GMT+01:00 Safihre notifications@github.com:

Oke I think I managed to get python working! Can you guys test it? https://github.com/Safihre/spksrc/releases/tag/python-5-dms61

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/2945#issuecomment-346685521, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb87M1_KYVZQZYrNI668ZnbESQwuhFcks5s5cS4gaJpZM4PuydG .

Safihre commented 6 years ago

Sabnzbd shouldn't need git. Can you try it again? How about this git? Link removed, outdated And maybe this sabnzbd? Link removed, outdated

tchirou commented 6 years ago

Well Sabnzbd-testing is in error and the only choice I have is to uninstall it

Your git package seems to run

Your sabnzbd package installs fine but when I want to launch it, it gives an error "failure to repair the package". Same thing for couchpotato-custom and sickbeard-custom

Like I said, I com from working packages on DSM 5 then 6 on a DS414j so I don't know how much it may complicate the situation

Many thanks though !

2017-11-23 20:50 GMT+01:00 Safihre notifications@github.com:

Sabnzbd shouldn't need git. Can you try it again? How about this git? https://github.com/Safihre/spksrc/releases/tag/git-2-dsm61 And maybe this sabnzbd? https://github.com/Safihre/spksrc/releases/tag/sabnzbd-1-dsm61

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/2945#issuecomment-346689339, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb87H-yy2V6NiaRHSQSUYTU4CSDv3L3ks5s5cx9gaJpZM4PuydG .

jilleb commented 6 years ago

@Safihre, sonarr and mono work perfectly, jackett doesn't want to run (yet). Good work 👍

sholden28 commented 6 years ago

@safihre I'm still looking for a syncthing package if you were so inclined. It would be greatly appreciated.

Safihre commented 6 years ago

@cytec I tried to compile the syncthing package in the dsm6 branch (with updates from master merged in) but all of the builds are failing: https://travis-ci.org/Safihre/spksrc/builds/306671422 apollolake is not yet listed as a supported arch, that should probably be in amd64 right? Others fail with:

===>  No PLIST for syncthing
find: `src/wizard/': No such file or directory
make[1]: *** [wizards] Error 1
make: [arch-alpine-6.1] Error 2 (ignored)
cytec commented 6 years ago

@Safihre seems like the Makefile for syncthing ins't the most recent in the dsm6 branch. either copy the latest syncthing folder over from master or try deleting https://github.com/SynoCommunity/spksrc/blob/dsm6/spk/syncthing/Makefile#L25 since the folder isn't present that's most likely why it fails!

regarding apollolake: yep should be amd64

Safihre commented 6 years ago

@cytec thanks! That fixed it. @sholden28 Here you go: Link removed, outdated

sholden28 commented 6 years ago

Thanks so much @Safihre. The package installs, but won't run unfortunately. DS718+. "Failed to run the package service", using syncthing_apollolake-6.1_0.14.30-13.spk

mvdwater commented 6 years ago

Hey @Safihre thanks for sharing binaries! Would it be possible to also share a compiled version of Midnight Commander (mc) for appololake in your repo? Or is something still needed to get that to work?

I've recently upgraded to a DS218+ and have some Linux programming/scripting experience so I would also be interested to help out getting things fully supported. I'd need to invest some time to get the dev environment setup though...

Safihre commented 6 years ago

Here it would be: Link removed, outdated Only build it, so no clue if it works!

mvdwater commented 6 years ago

Great, thanks! It looks like it works fine. If I find any irregularities I'll report back.

defaultsecurity commented 6 years ago

Any ruTorrent or Transmission packages for Apollo Lake / DS918+ yet? :)

mvdwater commented 6 years ago

Yes, they are in that same repo: https://github.com/Safihre/spksrc/tags

AthAshino commented 6 years ago

Jackett still doesn't work, install works fine but can't launch it.

bchocotoff commented 6 years ago

My apologies for seeming inpatient but is there an ETA for SABnzbd? I've tried the package from Safihre and it is able to install but i was not able to get it to run yet, even after changing the user to root. Running start-stop-status fails as well

defaultsecurity commented 6 years ago

I downloaded rutorrent_apollolake-6.1_3.8-1.spk from https://github.com/Safihre/spksrc/tags

It runs, but I get:

[30.11.2017 17:28:41] WebUI started. [30.11.2017 17:28:41] _task: Some functionality will be unavailable. rTorrent user can't access external program (pgrep). [30.11.2017 17:28:41] ratio: Some functionality will be unavailable. rTorrent user can't access external program (php). [30.11.2017 17:28:41] create: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] unpack: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] xmpp: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] datadir: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] loginmgr: Some functionality will be unavailable. rTorrent user can't access external program (php). [30.11.2017 17:28:41] trafic: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] history: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] rutracker_check: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] retrackers: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] scheduler: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] autotools: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] rss: Plugin will not work. rTorrent user can't access external program (php). [30.11.2017 17:28:41] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo). [30.11.2017 17:28:41] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg). [30.11.2017 17:28:41] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl).

mvdwater commented 6 years ago

Hmm, getting the following error message in mcedit when searching for any string inside a text file:

PCRE library is compiled with incompatible options

Looks like an error message from glib.

mvdwater commented 6 years ago

@Safihre: for me your python2.7 is installing but the post-install fails and as a result sabnzbd is not working (missing Python virtualenv).

2017/12/01 11:48:58 install python 2.7.13-16 Begin postinst Traceback (most recent call last): File "/usr/local/python/bin/pip", line 11, in load_entry_point('pip==9.0.1', 'console_scripts', 'pip')() File "/usr/local/python/lib/python2.7/site-packages/pkg_resources/init.py", line 572, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/python/lib/python2.7/site-packages/pkg_resources/init.py", line 2749, in load_entry_point return ep.load() File "/usr/local/python/lib/python2.7/site-packages/pkg_resources/init.py", line 2402, in load return self.resolve() File "/usr/local/python/lib/python2.7/site-packages/pkg_resources/init.py", line 2408, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/python/lib/python2.7/site-packages/pip/init.py", line 28, in from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/usr/local/python/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in from pip.download import path_to_url File "/usr/local/python/lib/python2.7/site-packages/pip/download.py", line 36, in from pip.utils.glibc import libc_ver File "/usr/local/python/lib/python2.7/site-packages/pip/utils/glibc.py", line 4, in import ctypes File "/usr/local/python/lib/python2.7/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ImportError: No module named _ctypes`

Indeed, _ctypes.so is missing from /usr/local/python/lib/python2.7/lib-dynload/

felixekman commented 6 years ago

@Safihre Thank you for your great work! Sonarr is working great for me. Transmission seems to have some issues with Sonarr and moving files. Otherwise, it's perfect!

Would you be able to get a version of TVHeadend working?

tchirou commented 6 years ago

Tvheadend has an apollake version you can find on the tvheadend version

Le 3 déc. 2017 à 02:12, Felix notifications@github.com a écrit :

@Safihre https://github.com/safihre Thank you for your great work! Sonarr is working great for me. Transmission seems to have some issues with Sonarr and moving files. Otherwise, it's perfect!

Would you be able to get a version of TVHeadend working?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/2945#issuecomment-348732645, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb87DOhVMvWyca4y_J3wnbalFXQY5Z4ks5s8fWQgaJpZM4PuydG .

sromi commented 6 years ago

Hi, I'm trying to install sickbeard custom, which is already available in the package center. But it says I need to install git and python. I installed these packages from this thread, am I missing something? Also would it be possible to get a package for nzbget? Thanks for all the support!

BrianRotha commented 6 years ago

Thanks for all your hard work on this. I too am trying to install GIT/Python on a Synology X18 so I can get SickBeard, sabNZB, etc. working. I have also tried the packages using the link on this thread but no luck! Any help from anyone who has managed to do it would be gratefully received. Much love!

Safihre commented 6 years ago

Quite some hurdles still need to be taken for these packages to work. Porting to new service setup first, followed by fixing of the python package. I still need to setup a virtual machine with DSM, since I have no Synology myself.. Hopefully next week! Finishing my PhD this week so it's a bit hectic! 🤓

BrianRotha commented 6 years ago

Good luck with your studies, Safihre. New to week would be great

Is it possible to setup a reward on this request? Happy to show some appreciation for your work.

joseant commented 6 years ago

Hello. I cannot find the package Mosquitto in the DS218+

Is there any way to install it?

Edit: I have found it in http://dl.free.fr/getfile.pl?file=/vTr3z4UT

yahooeyu commented 6 years ago

Hello, any help with MediaInfo? =) can't use it with ds218 =(

BrianRotha commented 6 years ago

Safihre - are you still hoping to work on this this week? Thanks

Safihre commented 6 years ago

Yep, compilation and DSM test platform setup and working on it now. Lots of trial and error.

hsleewis commented 6 years ago

Does anyone have a new link to the mono package? the old one has expired :(

Safihre commented 6 years ago

Have you tried from mine? They are the same https://github.com/Safihre/spksrc/tags, select latest mono tag.

hsleewis commented 6 years ago

Thanks @Safihre, yeah I actually just did, but can't get sonarr to work. Or better said, I can't get the webinterface to work. Nothing shows up in the logs so I don't know if it's an apollo lake issue or something else.

RedCat30 commented 6 years ago

Hello

I tired mc_apollolake-6.1_4.8.15-3.spk on 918+. Install was successful, in ssh start mc. Some functions are work great (chown, chmod in menu), but COPY dont! I press F5, and ENTER, but nothing happend. What is wrong? Somebody can try this?

Thx :)

AndyHIP commented 6 years ago

is there any chance for SABNZBD on my DS918+ at the moment?

Safihre commented 6 years ago

So, it has taken days of compiling, liters of coffee and moments of pulling my own hairs, but I think I have working packages now. Who feels like trying? Python: https://github.com/Safihre/spksrc/releases/tag/python-dsm61-new-all (link updated) SABnzbd: https://github.com/Safihre/spksrc/releases/tag/sabnzbd-dsm61-new-all (link updated)

defaultsecurity commented 6 years ago

Thanks for your contribution! python_apollolake-6.1_2.7.14-17.spk installed without problems. But then I tried to install sickrage from the community tab of the package manager and it says: "missing packages: python, git" When I try to install subliminal, it says "missing packages: python"

Safihre commented 6 years ago

What if you use them from my releases? For example: Links removed, outdated

bchocotoff commented 6 years ago

Are you serious!!! Im home in 5 minutes i will let you know if im able to get sabnzbd working!!!

defaultsecurity commented 6 years ago

Now I installed git_apollolake-6.1_2.11.0-10.spk also Then sickrage_noarch-all_20171119-4.spk Now sickrage is stuck at "installing" since roughly 10 minutes and doesn't do anything.

sickrage stuck

tchirou commented 6 years ago

Hi I have a DS418. I had migrated from a DS414j with a dsm 5 then dsm 6.1 So I had already python, git, sabnzbd testing, couchpotato testing and sickbeard testing with https://github.com/SickRage/sickrage.github.io I have installed your python, git, sabnzbd and sickrage None of them work : it says "error when trying to repair" (or something like that, it is in french for me) Thanks a lot for your hard work though :-)

2018-01-05 16:30 GMT+01:00 Safihre notifications@github.com:

What if you use them from my releases? For example: https://github.com/Safihre/spksrc/releases/tag/sickrage-1-dsm61 https://github.com/Safihre/spksrc/releases/tag/git-2-dsm61

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/2945#issuecomment-355582653, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb87Bs03SefI8gJ6ufjmGyAndkCGSw2ks5tHkAkgaJpZM4PuydG .

defaultsecurity commented 6 years ago

rutorrent_apollolake-6.1_3.8-1.spk installed fine, but its log gives the following errors:

[05.01.2018 16:52:35] WebUI started. [05.01.2018 16:52:36] rss: Some functionality will be unavailable. Webserver user can't access external program (curl). [05.01.2018 16:52:36] throttle: Plugin failed to start. [05.01.2018 16:52:36] _task: Some functionality will be unavailable. rTorrent user can't access external program (pgrep). [05.01.2018 16:52:36] ratio: Some functionality will be unavailable. rTorrent user can't access external program (php). [05.01.2018 16:52:36] create: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] unpack: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] xmpp: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] datadir: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] loginmgr: Some functionality will be unavailable. rTorrent user can't access external program (php). [05.01.2018 16:52:36] trafic: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] history: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] rutracker_check: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] retrackers: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] scheduler: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] autotools: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] rss: Plugin will not work. rTorrent user can't access external program (php). [05.01.2018 16:52:36] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo). [05.01.2018 16:52:36] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg). [05.01.2018 16:52:36] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl).

Safihre commented 6 years ago

@bolhaskutya probably because the git package I linked is actually broken, sorry for that! Need to recompile.

@tchirou what packages are giving this error? What if you try to uninstall python and sabnzbd and then install both from my releases?

bchocotoff commented 6 years ago

DS918+

I will let you know if i run into any problems but it seems to be working!!! You are genuinely the best Safihre!