On Saturday 16 December 2006 05:39, Erich Focht wrote:
> On Saturday 16 December 2006 05:34, Geoffroy VALLEE wrote:
> > On Friday 15 December 2006 18:24, Erich Focht wrote:
> > > With build_oscar_rpms we have a method to build all rpms for a distro
> > > based upon the build.cfg file. If this could be done somehow for
> > > debian, too, we could really some day switch to build the repository
> > > directly, and not check in the binaries. Another step further is to
> > > build the repository directly from pkgsrc.
> >
> > I agree with you but for that we need to find a way to:
> > - share the changelog,
> > - find a common way to describe how to compile and install each
> > components (done most of the time through Makefiles); this can be used
> > for both the creation of RPMs and Debs.
> > I do not really know how to do that. :-) But if you can do that, i am
> > pretty sure it will be possible to generate RPM and Debs automatically. I
> > guess we will have to think about that if you want to provide OSCAR via
> > binary packages.
>
> If you have rpm build tools on debian here is what we could try:
>
> - rpmbuild -bp *.src.rpm
>   -> creates in .../BUILD/ the unpacked and patched source directory

This is what i do.

>
> - filter out the %changelog section from the .spec file and copy it to the
>   right place for debian

Yes it is possible to write such a tool, i do not say the opposite, but the 
changelog is only a small part of the problem (see next point).

>
> - run the debian make scripts inside the unpacked source tree.

And what about the description of Debian packages, the update of rules for 
package creation? the two previous points are not enough if we want to create 
automatically Debian packages. For example, RPM and Deb packages do not have 
the same naming rules, the translation of dependencies is not trivial and 
currently has to be done manually (how can to know automatically that 
perl-XML-Simple is libxml-simple-perl on Debian?). 
Of course we can do that manually the first time and then use a script for the 
creation of packages at once. I think that instead of the automatic creation 
of Debian packages, the first step should be to have a script that 
automatically compare the version of RPM and Deb packages and report any 
differences.

>
> This is a bit RPM centric, but could work.

As i just said it is unfortunately not so simple. Alien tries to be a tool for 
automatic translation of RPM into Debs and all Debian users knows that this 
tool cannot be used for the creation of production quality packages.
-- 
Geoff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to