<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 6:47 PM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 09/27/2012 10:30 AM, András Murányi wrote:<br>
> On Thu, Sep 27, 2012 at 1:20 AM, András Murányi <<a href="mailto:muranyia@gmail.com">muranyia@gmail.com</a>> wrote:<br>
><br>
>> On Sun, Sep 23, 2012 at 8:22 PM, Hans-Christoph Steiner <<a href="mailto:hans@at.or.at">hans@at.or.at</a>>wrote:<br>
>><br>
>>> launchpad only builds packages for the Ubuntu releases, but you could use<br>
>>> one of the Ubuntu packages on Debian if you find an Ubuntu release that is<br>
>>> close to your Debian release.<br>
>>><br>
>>> I hear that OpenSUSE's build server will build Debian packages, but I've<br>
>>> never used it. It would be very useful if someone set that up, I think can<br>
>>> also build Fedora and SUSE packages.<br>
>>><br>
>>><br>
>> I played around with OpenSUSE's OBS but it's not a success yet.<br>
>> It needs a something.spec file for building RPMs and a something.dsc file<br>
>> for DEBs. Both files serve to define a source package.<br>
>> For the spec file, I started from one well worked out for Planet CCRMA by<br>
>> Fernando Lopez-Lezcano. It's looking good for the OBS right now except that<br>
>> I'm struggling with the source definition, i.e. it doesn't seem to be able<br>
>> to grab the tar.gz from sourceforge.<br>
>> For the debian dsc file, I used Paul Brossier's one. The dsc is much<br>
>> simpler, but it cannot accept source urls, only local files. That's where<br>
>> OBS's so-called "Source Service" comes into the picture, which can download<br>
>> a tar.gz or even checkout an svn repo and tar.gz it for me. I'm struggling<br>
>> with this too, because (1) I'm unable to grab the resulting tar.gz from the<br>
>> dsc (it's created with an odd name that contains a colon) and (2) in the<br>
>> dsc an MD5 checksum of the tar.gz needs to be present which is unknown in<br>
>> the case of an archive newly created from SVN.<br>
>> I'll try to grow smarter with OBS, but in the meantime, any advice is<br>
>> highly appreciated. :)<br>
>><br>
> Update: both source access problems are solved for now.<br>
> The deb build at the moment is stuck at the point where it doesn't<br>
> recognize the source package as a valid one. Dunno why.<br>
> The rpm build got as far as where it would have needed mp3lame - seems that<br>
> it's only available with Planet CCRMA (?). GEM builds fine. I'm playing<br>
> around with conditionals for requires for different CPU capabilities,<br>
> because OBS's spec file parser is somewhat limited.<br>
> More news soon, hopefully.<br>
<br>
</div></div>Deb source packages are too tricky to create manually, use the Debian<br>
tools. If you are working from a git repo, like for puredata, the use<br>
"git-buildpackage -S". For any repo with the debian/ folder there, you<br>
can use "debuild -S"<br>
<br>
You will need to change the debian/changelog to have your name and email<br>
in it, so that the signing part works, if opensuse requires signed<br>
packages. Launchpad, Debian, and Ubuntu all do.<br>
<br>
At the very least, you'll want to do:<br>
<br>
sudo apt-get install dpkg-dev devscripts debhelper cdbs<br>
<br>
You can also download the source packages from the Debian or Ubuntu<br>
official packages, but they'll be signed by the original uploaders key.<br>
That wouldn't work with Launchpad but might with OBS, if it has looser<br>
signing restrictions.<br></blockquote><div><br>Cool, I've actually paid less attention to the deb process on OBS knowing that it's already worked out and up-to-date somewhere else. I'll take a look at how I can reuse those packages.<br>
OBS doesn't need signed packages, an I haven't tried if it accepts packages signed by someone else.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If you want to try my new Pd-extended proper debian support, run:<br>
<br>
$ ~/auto-build/pd-extended/scripts/auto-build/pd-extended-source-tarball.sh<br>
$ mv /tmp/Pd-extended_0.43.1~20120926-source.tar.bz2<br>
~/auto-build/pd-extended_0.43.1~20120926.orig.tar.bz2<br>
$ cd ~/auto-build/pd-extended<br>
$ debuild -S -uc -us<br></blockquote><div><br>Hm, I don't have this script yet in ~auto-build/ ... It seems it doesn't work if I just download it to any place along with its whole folder, but I cannot run it from the main run-automated-builder script either, because rsync cannot reach the server.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
(the -uc -us) means ignore the whole signing procedure, including the<br>
name in the debian/changelog)<span class="HOEnZb"></span> </blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, its great that you are taking on the spec file for RPMs! Once you<br>
</blockquote></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
get 'puredata' working, then it would be very handy if you could make<br>
one for the externals/template. Then it'll be easy to make RPMs for<br>
most of the libraries in Pd-extended, just like what's in Debian.<br><br>
I've never made RPMs before, but I've done a lot of other packaging, so<br>
I'll help where I can.<br></blockquote><div><br>Well, the deb thing is stuck at this line now:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
dpkg-source: error: unrecognized file for a v1.0 source package: Pd-0.42.5-extended.tar.gz<br></blockquote>The file is pulled from <a href="http://sourceforge.net/projects/pure-data/files/pd-extended/0.42.5/Pd-0.42.5-extended.tar.gz">http://sourceforge.net/projects/pure-data/files/pd-extended/0.42.5/Pd-0.42.5-extended.tar.gz</a><br>
(It has a packages/linux_make/debian folder but still no good.)<br>Is there a .tar.gz for pd-extended online which is suitable for deb packaging and I could link to it? I don't want to reinvent the wheel...<br>BTW, Is there a Pd-0.42.5-extended-dev.deb (or alike) that I could study or use for parts?<br>
<br>The rpm is losing it here:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">`test -f /home/abuild/rpmbuild/BUILD/Pd-0.42.5-extended/externals/unauthorized/mp3live~/../linux/mp3streamin~.libs && cat /home/abuild/rpmbuild/BUILD/Pd-0.42.5-extended/externals/unauthorized/mp3live~/../linux/mp3streamin~.libs`<br>
/usr/bin/ld: cannot find -lmp3lame<br></blockquote><div>As far as I understood lame-devel is not available in Fedora. How do I proceed?<br></div></div><span class="HOEnZb"></span><br clear="all">András<br>