{"id":964,"date":"2013-11-09T15:50:52","date_gmt":"2013-11-09T15:50:52","guid":{"rendered":"http:\/\/www.nooblet.org\/blog\/?p=964"},"modified":"2013-11-09T15:51:22","modified_gmt":"2013-11-09T15:51:22","slug":"compile-libocsync0-for-debian-wheezy-from-source","status":"publish","type":"post","link":"https:\/\/www.nooblet.org\/blog\/2013\/compile-libocsync0-for-debian-wheezy-from-source\/","title":{"rendered":"Compile Owncloud libocsync0 for Debian Wheezy from source"},"content":{"rendered":"<p>I was trying to get the <a href=\"https:\/\/github.com\/csawyerYumaed\/pyOwnCloud\">Python Owncloud CLI<\/a> package to work on Wheezy. It requires libocsync0 which is <a href=\"http:\/\/packages.debian.org\/sid\/ocsync\">available in unstable<\/a> but it has many depends that would push the box further into unstable than I would of liked (samba and sftp plugins require unstable versions of samba, ssh, libc6, etc.).<\/p>\n<p>To get libocsync working on wheezy, I did the following:<\/p>\n<pre class=\"lang:sh decode:true \" ># Add unstable repository to APT\r\ncat &lt;&lt; EOF &gt; \/etc\/apt\/sources.list.d\/unstable.list\r\ndeb     http:\/\/ftp.uk.debian.org\/debian\/     unstable main contrib non-free\r\ndeb-src http:\/\/ftp.uk.debian.org\/debian\/     unstable main contrib non-free\r\nEOF\r\n\r\n# Pin unstable low so it isn't default\r\ncat &lt;&lt; EOF &gt; \/etc\/apt\/preferences.d\/unstable.pref\r\nPackage: *\r\nPin: release a=unstable\r\nPin-Priority: 400\r\nEOF\r\n\r\n# Download source files to \/usr\/src\r\ncd \/usr\/src &amp;&amp; apt-get update &amp;&amp; apt-get source ocsync\r\n\r\n# Get build depends \r\n# (If you note down what packages are installed NEW here, you can manually remove them afterwards)\r\napt-get build-dep ocsync\r\n\r\n# Remove unstable repository\r\nrm -f \/etc\/apt\/sources.list.d\/unstable.list \/etc\/apt\/preferences.d\/unstable.pref &amp;&amp; apt-get update\r\n\r\n# Change to the new ocsync source directory, in my case it was\r\ncd \/usr\/src\/ocsync-0.90.4\r\n\r\n# run through compile (instructions at http:\/\/www.debian.org\/doc\/manuals\/maint-guide\/build.en.html )\r\ndebian\/rules clean\r\ndpkg-source -b .\/\r\ndebian\/rules build\r\nfakeroot debian\/rules binary\r\n\r\n# .deb files are now in \/usr\/src\r\nls -la \/usr\/src\r\n\r\n# install required package\r\ndpkg -i libocsync0_0.90.4-1_amd64.deb<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to get the Python Owncloud CLI package to work on Wheezy. It requires libocsync0 which is available in unstable but it has many depends that would push the box further into unstable than I would of liked (samba and sftp plugins require unstable versions of samba, ssh, libc6, etc.). To get libocsync [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[203,206,233,204,205],"class_list":["post-964","post","type-post","status-publish","format-standard","hentry","category-linux","tag-compile","tag-libocsync0","tag-linux","tag-ocsync","tag-owncloud"],"_links":{"self":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":4,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"predecessor-version":[{"id":968,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/964\/revisions\/968"}],"wp:attachment":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}