<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
&gt;&gt;&gt;&gt;&gt; I hear that OpenSUSE&#39;s build server will build Debian packages, but<br>
&gt;&gt; I&#39;ve<br>
&gt;&gt;&gt;&gt;&gt; never used it.  It would be very useful if someone set that up, I<br>
&gt;&gt; think can<br>
&gt;&gt;&gt;&gt;&gt; also build Fedora and SUSE packages.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I played around with OpenSUSE&#39;s OBS but it&#39;s not a success yet.<br>
&gt;&gt;&gt;&gt; It needs a something.spec file for building RPMs and a something.dsc<br>
&gt;&gt; file<br>
&gt;&gt;&gt;&gt; for DEBs. Both files serve to define a source package.<br>
&gt;&gt;&gt;&gt; For the spec file, I started from one well worked out for Planet CCRMA<br>
&gt;&gt; by<br>
&gt;&gt;&gt;&gt; Fernando Lopez-Lezcano. It&#39;s looking good for the OBS right now except<br>
&gt;&gt; that<br>
&gt;&gt;&gt;&gt; I&#39;m struggling with the source definition, i.e. it doesn&#39;t seem to be<br>
&gt;&gt; able<br>
&gt;&gt;&gt;&gt; to grab the tar.gz from sourceforge.<br>
&gt;&gt;&gt;&gt; For the debian dsc file, I used Paul Brossier&#39;s one. The dsc is much<br>
&gt;&gt;&gt;&gt; simpler, but it cannot accept source urls, only local files. That&#39;s<br>
&gt;&gt; where<br>
&gt;&gt;&gt;&gt; OBS&#39;s so-called &quot;Source Service&quot; comes into the picture, which can<br>
&gt;&gt; download<br>
&gt;&gt;&gt;&gt; a tar.gz or even checkout an svn repo and tar.gz it for me. I&#39;m<br>
&gt;&gt; struggling<br>
&gt;&gt;&gt;&gt; with this too, because (1) I&#39;m unable to grab the resulting tar.gz from<br>
&gt;&gt; the<br>
&gt;&gt;&gt;&gt; dsc (it&#39;s created with an odd name that contains a colon) and (2) in the<br>
&gt;&gt;&gt;&gt; dsc an MD5 checksum of the tar.gz needs to be present which is unknown<br>
&gt;&gt; in<br>
&gt;&gt;&gt;&gt; the case of an archive newly created from SVN.<br>
&gt;&gt;&gt;&gt; I&#39;ll try to grow smarter with OBS, but in the meantime, any advice is<br>
&gt;&gt;&gt;&gt; highly appreciated. :)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; Update: both source access problems are solved for now.<br>
&gt;&gt;&gt; The deb build at the moment is stuck at the point where it doesn&#39;t<br>
&gt;&gt;&gt; recognize the source package as a valid one. Dunno why.<br>
&gt;&gt;&gt; The rpm build got as far as where it would have needed mp3lame - seems<br>
&gt;&gt; that<br>
&gt;&gt;&gt; it&#39;s only available with Planet CCRMA (?). GEM builds fine. I&#39;m playing<br>
&gt;&gt;&gt; around with conditionals for requires for different CPU capabilities,<br>
&gt;&gt;&gt; because OBS&#39;s spec file parser is somewhat limited.<br>
&gt;&gt;&gt; More news soon, hopefully.<br>
&gt;&gt; Deb source packages are too tricky to create manually, use the Debian<br>
&gt;&gt; tools.  If you are working from a git repo, like for puredata, the use<br>
&gt;&gt; &quot;git-buildpackage -S&quot;.   For any repo with the debian/ folder there, you<br>
&gt;&gt; can use &quot;debuild -S&quot;<br>
&gt;&gt;<br>
&gt;&gt; You will need to change the debian/changelog to have your name and email<br>
&gt;&gt; in it, so that the signing part works, if opensuse requires signed<br>
&gt;&gt; packages.  Launchpad, Debian, and Ubuntu all do.<br>
&gt;&gt;<br>
&gt;&gt; At the very least, you&#39;ll want to do:<br>
&gt;&gt;<br>
&gt;&gt; sudo apt-get install dpkg-dev devscripts debhelper cdbs<br>
&gt;&gt;<br>
&gt;&gt; You can also download the source packages from the Debian or Ubuntu<br>
&gt;&gt; official packages, but they&#39;ll be signed by the original uploaders key.<br>
&gt;&gt; That wouldn&#39;t work with Launchpad but might with OBS, if it has looser<br>
&gt;&gt; signing restrictions.<br>
&gt;&gt;<br>
&gt; Cool, I&#39;ve actually paid less attention to the deb process on OBS knowing<br>
&gt; that it&#39;s already worked out and up-to-date somewhere else. I&#39;ll take a<br>
&gt; look at how I can reuse those packages.<br>
&gt; OBS doesn&#39;t need signed packages, an I haven&#39;t tried if it accepts packages<br>
&gt; signed by someone else.<br>
<br>
</div></div>It could be a useful way to provide Debian/squeeze packages.<br>
<div class="im"><br>
&gt;&gt; If you want to try my new Pd-extended proper debian support, run:<br>
&gt;&gt;<br>
&gt;&gt; $ ~/auto-build/pd-extended/scripts/auto-build/pd-extended-source-tarball.sh<br>
&gt;&gt; $ mv /tmp/Pd-extended_0.43.1~20120926-source.tar.bz2<br>
&gt;&gt; ~/auto-build/pd-extended_0.43.1~20120926.orig.tar.bz2<br>
&gt;&gt; $ cd ~/auto-build/pd-extended<br>
&gt;&gt; $ debuild -S -uc -us<br>
&gt;&gt;<br>
&gt; Hm, I don&#39;t have this script yet in ~auto-build/ ... It seems it doesn&#39;t<br>
&gt; work if I just download it to any place along with its whole folder, but I<br>
&gt; cannot run it from the main run-automated-builder script either, because<br>
&gt; rsync cannot reach the server.<br>
<br>
</div>you need to get them from SVN:<br>
<br>
cd ~/auto-build/pd-extended/scripts<br>
svn up<br>
cd ..<br>
svn up<br></blockquote><div><br>That did the trick!<br>The script itself didn&#39;t succeed at the first run but the third run completed clean.<br>And it deletes the file at the end so I needed to copy it before it finished :o)<br>

 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The rsync method is gone for now, and perhaps permanently.  I&#39;m trying<br>
to see if I can make the cleaning process work without rsync.<br>
<div><div class="h5"><br>
&gt;<br>
&gt;&gt; (the -uc -us) means ignore the whole signing procedure, including the<br>
&gt;&gt; name in the debian/changelog)<br>
&gt;<br>
&gt;&gt; Also, its great that you are taking on the spec file for RPMs!  Once you<br>
&gt; get &#39;puredata&#39; working, then it would be very handy if you could make<br>
&gt;&gt; one for the externals/template.  Then it&#39;ll be easy to make RPMs for<br>
&gt;&gt; most of the libraries in Pd-extended, just like what&#39;s in Debian.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve never made RPMs before, but I&#39;ve done a lot of other packaging, so<br>
&gt;&gt; I&#39;ll help where I can.<br>
&gt;&gt;<br>
&gt; Well, the deb thing is stuck at this line now:<br>
&gt;<br>
&gt;&gt; dpkg-source: error: unrecognized file for a v1.0 source package:<br>
&gt;&gt; Pd-0.42.5-extended.tar.gz<br>
&gt;&gt;<br>
&gt; The file is pulled from<br>
&gt; <a href="http://sourceforge.net/projects/pure-data/files/pd-extended/0.42.5/Pd-0.42.5-extended.tar.gz" target="_blank">http://sourceforge.net/projects/pure-data/files/pd-extended/0.42.5/Pd-0.42.5-extended.tar.gz</a><br>


&gt; (It has a packages/linux_make/debian folder but still no good.)<br>
&gt; Is there a .tar.gz for pd-extended online which is suitable for deb<br>
&gt; packaging and I could link to it? I don&#39;t want to reinvent the wheel...<br>
&gt; BTW, Is there a Pd-0.42.5-extended-dev.deb (or alike) that I could study or<br>
&gt; use for parts?<br>
&gt;<br>
&gt; The rpm is losing it here:<br>
&gt;<br>
&gt;&gt; `test -f<br>
&gt;&gt; /home/abuild/rpmbuild/BUILD/Pd-0.42.5-extended/externals/unauthorized/mp3live~/../linux/mp3streamin~.libs<br>
&gt;&gt; &amp;&amp; cat<br>
&gt;&gt; /home/abuild/rpmbuild/BUILD/Pd-0.42.5-extended/externals/unauthorized/mp3live~/../linux/mp3streamin~.libs`<br>
&gt;&gt; /usr/bin/ld: cannot find -lmp3lame<br>
&gt;&gt;<br>
&gt; As far as I understood lame-devel is not available in Fedora. How do I<br>
&gt; proceed?<br>
&gt;<br>
&gt; András<br>
&gt;<br>
<br>
</div></div>For Debian/squeeze, we rely on the libmp3lame-dev that&#39;s in<br>
squeeze-backports.  Previously, it was required that people downloaded<br>
it from <a href="http://deb-multimedia.org" target="_blank">deb-multimedia.org</a>.  I guess you&#39;d need to get it from somewhere<br>
else, but I don&#39;t know enough about Fedora to say.  Does PlanetCCRMA<br>
include lame?  I think that would be the best place for dependencies.<br></blockquote><div><br>Planet CCRMA does have lame, but the OBS doesn&#39;t have Planet CCRMA.<br>It is possible to fetch and build the lame sources into with pd but then we would have the lame binary bundled into pd which is not something we want, do we?<br>

So my best idea right now is to disable the external(s) that use lame.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I think it&#39;ll be a lot easier if you start with just &#39;puredata&#39; and the<br>
libs based on the Library Template.  Then once you get the hang of basic<br>
RPM packaging, you can take on the whole pd-extended, which can be<br>
painful.  Also, I think that Pd-extended 0.43.1 will be a lot easier to<br>
package since I&#39;ve fixed all of the problems that came up during the<br>
proper debian packaging.<br>
<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote><div><br>Well... I&#39;m actually enjoying RPM packaging, it&#39;s a nice compact thing with everything controlled from a single spec file, and at the moment the simpler way for me is to try to get pd-extended build, and to get into the Library Template, which I&#39;m completely unfamiliar with, at a later point. The problems which I&#39;m having are with some individual externals, but this way when I solve one, the next one comes up, so it&#39;s easy to go through all of them. At least I hope so.<br>

I&#39;d even say: let me finish packaging 0.42.5-extended as a monolith now (according to the original topic), and let&#39;s do 0.43 with the Library Template approach later. Is that OK?<br><br>Again, I&#39;m focusing more on the RPM side and I&#39;d by happy if I could feed a debian-ready source tar.gz to the OBS, and I&#39;d provide only the dsc. The less cool way is to upload a static file (like the one generated by pd-extended-source-tarball.sh), the more cool way would be to link to one which is online somewhere. Is there one?<br>

</div></div><br><br>András<br>