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

Python 2.6.7-7 built spk?? #1009

Closed laneyweb closed 10 years ago

laneyweb commented 10 years ago

Hi,

I wonder if I can ask for some help please? I do apologise if this is the wrong forum.

I have just bought a DS412+ NAS (upgrading from a 2 bay) and as most of us know, Synocommunity is still down for the packages installs. I have been googling for the last few days and have picked up all but Python from http://synology.w01.eu/ as a number posts advise here. Thanks for that.

However, as I said, I cant find Python 2.6.7-7 for cedarview so I am unable to get Sabnzbd working.

Does anyone have the spk for Python 2.6.7-7 for the 412+ (cedarview)??

I have tried (for about 6 hours!) to follow the instructions for building it myself from GITHUB but I'm not at all comfortable with all the Debian, make & su malarky and I'm getting myself in all sorts of a mess :)

Any help much appreciated.

Soop

crazyscow commented 10 years ago

https://dl.dropboxusercontent.com/u/9377551/python_cedarview_2.7.6-8.spk

there you go. make sure youre using dsm 5

laneyweb commented 10 years ago

@crazyscow that's really good of you, thanks so much. All up and running now. Thanks again!

bjornstromberg commented 10 years ago

@crazyscow: could you make a spk for python for armadaxp? i've tried a few times with ubuntu in vbox but cant get it to find the toolchain-gcc file even though its where it supposed to be according to the sh error line..

gonna give it another try with debian live cd/usb instead..

thanks in adance..

crazyscow commented 10 years ago

I never heard of debian before i complied that python file lol. it took me 2 days to get it working completely so i rather just help you then give you file, because otherwise people are going to keep asking for files. ill just tell you what i did #978 in this thread to fix my problem.

i just needed to be on DSM 5 to install it because it was rewritten for DSM 5 that was the only problem that took me like 3 days to figure out.

summary you would need to typ "make arch-armadaxp" otherwise you can just google search it i found tons on armadaxp and on 88fxxx but nothing on cedarview so thats why i had to comply it myself.

hope this helped.

bjornstromberg commented 10 years ago

that would be even better if you have time to help me with this, i've waited with asking what was fucked up in ubuntu because @Diaoul is having alot to do with getting the new site and package repo up, so i thought that asking alot of stupid questions will slow that down..

ive used spksrc before, and also debian, now i was using ubuntu server 12.04 lts and then when the toolchain it downloads dont seem to work as when it does CC - it cashes with sh cant find absolute path/file-gcc

thats the probem the toolchain is downloaded and extracted but it doesnt want to play..

i've tested with nzbget because python is supposed to take long to compile, and i want to get the toolchain working before messing with the bigger builds..

im making a bootable usbkey with debian on now, so give me like half a hour to setup debian and im back with more info on the error.. :)

Dr-Bean commented 10 years ago

@bjornstromberg Are you sure you used a 32-bit version of Ubuntu the first time around?

bjornstromberg commented 10 years ago

@Dr-Bean no im using amd64 as i got more then 4gb ram... should i use i386 for spksrc?

Dr-Bean commented 10 years ago

Yes. Although it's not emphasized in the README, it's mandatory.

bjornstromberg commented 10 years ago

ah crap then we know why it doesnt work then hehe..

could you edit the readme.. and i'll try the i386 edition and guess it will work then :)

moneytoo commented 10 years ago

I use Xubuntu 13.10 and everything works perfectly. Readme already says x86. Shouldn't it work if all required 32-bit libs are installed on x64 (and a fix or two)? Might be worth a test.

bjornstromberg commented 10 years ago

yea thats what i thought too.. but i guess i've have to use i386..

Dr-Bean commented 10 years ago

Compiling 32bit on 64 bit might require an -m32 flag or somesuch. I don't know if all configure/Makefiles and whatnot support that flag?

bjornstromberg commented 10 years ago

well the x86 in the readme.. theres x86 and theres x86_64, and theres arm versions of ubuntu/debian..

so a edit in readme to x86, and specify that amd64 (x86_64) is not supported..

i thought arm was not supported as its not x86 but x86_64 should work, and it might but not out of the box..

Dr-Bean commented 10 years ago

Do you mean AMD instead of arm? Not sure what relation arm has with the subject:)

Maybe I'll update the README to explicitly state 32-bit for now. Imo, x86 should be clear enough, as x86_64 really is not the same thing at all, but it's a minor thing.

Dr-Bean commented 10 years ago

Done with ccb2e760c508df2f408a6e68aae8e025cf08ba9a. Better?

bjornstromberg commented 10 years ago

@Dr-Bean thats great.

i mean arm is a arch, amd64 includes x86_64 and amd64 arches, and i386 is x86 32bit.

i use arm ubuntu core on a arm development board so i thought x86 and x86_64 is same if you got 32bit and 64bit libs..

bjornstromberg commented 10 years ago

works fine on i386, thanks for helping out :)

Dr-Bean commented 10 years ago

It would seem everyone was able to get things to work, so let's close this issue.

moneytoo commented 10 years ago

@Dr-Bean I only tried few packages (python, vim, transmission, ttrss (busybox)) but all of them compile fine on Xubuntu 64-bit (without any compile argument) and run on my arm NAS. I only installed gcc-multilib g++-multilib which added probably the most basic requirement to Synology compilers - lib32gcc1 libc6-dev-i386. I will test other packages and try Debian as well. No reason to require 32-bit system if everything will compile (but I agree that 32-bit could still be recommended).

Dr-Bean commented 10 years ago

@moneytoo Ah, perfect :) I was a bit quick then. Imo, the more explicit, the better, especially because there are a lot of people lately who don't regularly use *nix distributions.

How about something like this (added breaks for clarity)

To use spksrc, it is recommended to use a virtual machine with an x86, 
32-bit version of Debian stable OS installed.
Non-x86 architectures are not supported. For 64-bit distributions, additional 
requirements are needed: `sudo aptitude install gcc-multilib g++-multilib`
moneytoo commented 10 years ago

Yeah, probably something like that once everything is verified as working (and patched/fixed if needed).

Edit: So far good, will keep testing.

bicbucstriim_noarch_1.1.0-2.spk
bitlbee_88f6281_3.2.1-8.spk
boxbackup-client_88f6281_0.11.1-1.spk
cops_noarch_1.0.0RC1-1.spk
couchpotatoserver_noarch_20140520-4.spk
debian-chroot_88f6281_7.4-4.spk
diskutils_88f6281_1.42.6-1.spk
domoticz_88f6281_281-1.spk
fengoffice_88f6281_2.5.1.2-3.spk
full-text-rss_noarch_2.9.5-1.spk
gateone_88f6281_1.1-4.spk
git_88f6281_1.8.4-3.spk
git-server_88f6281_1.8.3-1.spk
haproxy_88f6281_1.5~dev25-12.spk
headphones_noarch_20140520-5.spk
horde_88f6281_5.1.0-2.spk
htpcmanager_noarch_20140520-1.spk
jappix_noarch_1.0.1-2.spk
lirc_88f6281_0.8.7-3.spk
maraschino_noarch_20140520-3.spk
mc_88f6281_4.8.10-2.spk
memcached_88f6281_1.4.15-2.spk
mercurial_88f6281_2.8.2-1.spk
museek-plus_88f6281_0.2-1.spk
mutt_88f6281_1.5.23-1.spk
mylar_noarch_20140520-3.spk
newznab_88f6281_0.2.3-6.spk
node_88f6281_0.10.6-1.spk
nzbdrone_88f6281_2.0.0.1397-1.spk
nzbget_88f6281_12.0-10.spk
oscam_88f6281_1.20~r7536-1.spk
owncloud_88f6281_6.0.3-3.spk
plowshare_88f6281_20140520-1.spk
python_88f6281_2.7.6-8.spk
redis_88f6281_2.6.7-2.spk
roundcube_noarch_1.0.1-2.spk
rutorrent_88f6281_3.6-6.spk
sabnzbd_88f6281_0.7.17-9.spk
selfoss_88f6281_2.10-3.spk
sickbeard_noarch_20140520-5.spk
squidguard_88f6281_1.5-1.spk
sslh_88f6281_1.13b-1.spk
transmission_88f6281_2.83-6.spk
tt-rss_88f6281_1.12-5.spk
tvheadend_88f6281_3.4.27-6.spk
umurmur_88f6281_0.2.14-4.spk
vim_88f6281_7.4-2.spk
zsh_88f6281_5.0.5-1.spk
bjornstromberg commented 10 years ago

im just wondering why my ubuntu 64bit didnt find the gcc compiler toolchain, it said file not found even though it was at the exact place it was looking?

it was the armadaxp toolchain btw.

moneytoo commented 10 years ago

@bjornstromberg I saw similar weird errors without previously mentioned installed packages.

bjornstromberg commented 10 years ago

@moneytoo alright so it might been that i installed the 32bit libs before i installed all the gcc stuff.. cause when i installed the 32bit libs there was a shitload of libs..

guess thats the reason then..