On Sun, Aug 14, 2011 at 11:44 AM, Thomas Mortagne <[email protected]> wrote: > On Sun, Aug 14, 2011 at 11:27 AM, Vincent Massol <[email protected]> wrote: >> >> On Aug 14, 2011, at 11:16 AM, Thomas Mortagne wrote: >> >>> On Sat, Aug 13, 2011 at 10:02 PM, Vincent Massol <[email protected]> wrote: >>>> >>>> On Aug 10, 2011, at 2:40 PM, Thomas Mortagne wrote: >>>> >>>>> Hi devs, >>>>> >>>>> I started with Guillaume Fenollar last week to do an experiment on an >>>>> XWiki debian package. >>>>> >>>>> We got something pretty nice and I cleaned it up and added some >>>>> features today. You can see it on >>>>> https://github.com/xwiki-contrib/xwiki-debian. >>>> >>>> The README at >>>> https://github.com/xwiki-contrib/xwiki-debian/blob/master/README says: >>>> "Debian/Ubuntu Package(s) of XWiki built using maven." >>>> >>>> Shouldn't it say "XWiki Enterprise" instead? Also shouldn't it mention >>>> that it's packaging Tomcat and MySQL too? >>> >>> Yes it should say "XWiki Enterprise". >>> >>> It's not packaging anything, it has a dependency on it. And anyway at >>> this level it's only about XWiki Enterprise as debian package, there >>> is potentially not only Tomcat and there is not only MySQL (there is >>> already a PotgreSQL package as I said already). >> >> hmm I think I don't understand something then. I thought it was like >> defining a pom.xml but using the Debian DEB dependency syntax. Thus I >> thought that you'd have to explicitly put a dependency on MySQL or Tomcat >> inside the file where you define the dependencies. Isn't that so? > > Nop it's not that simple unfortunately, you can find an example on > https://github.com/xwiki-contrib/xwiki-debian/blob/master/xwiki-enterprise-debian-tomcat/xwiki-enterprise-debian-tomcat-mysql/src/deb/control/control. > That could not work as you expect anyway I think since I doubt it > would be possible to know the right debian package id by looking at > the maven package since it's usually not exactly the same. > >> >> Is it possible to define several dependencies (like PostGreSQL and MySQL) in >> the same file and then have the user choose which one to install when >> resolving the file at runtime? > > I don't think so since dependencies are downloaded before your install > script is executed in Debian. That's the reason why I did several > packages actually since letting the user choose the database to use is > pretty easy. > >> >> In any case I think it means we're going to support only some dependencies >> and not all that exist and thus we should document somewhere which one we >> support. > > Not sure what you mean here. We currently provide Tomcat/MySQL and > Tomcat/PostgreSQL based packages, there will maybe be more later, > maybe not but apart from listing them I don't see what you want to > document more.
BTW there is also another package with no dependency on Tomcat or any database which is a dependency of the others which are just handling specifically the link to tomcat and the database stuff. So it's also possible to use that and take care yourself about theses aspects. > >> >> Maybe I misunderstood something? >> >> Thanks >> -Vincent >> >>>> >>>>> With my latest commit I think it's now clean enough to be moved on >>>>> https://github.com/xwiki/xwiki-platform. >>>> >>>> I don't understand why you're proposing to move it to the platform. It >>>> seems to me it's an XE packaging and not a Platform packaging. >>> >>> I meant moving it in standard, so yes XE just wrote it too quickly. >>> >>>> >>>> More generally we need to decide what packages we want to officially >>>> support as a dev team. >>>> Should we support them all: RPM, DMG, etc? should we only support some? >>>> >>>> Personally I think it's ok to add support for as many platforms as we want >>>> provided 1) that the quality is good enough (otherwise it generates lots >>>> of questions on the lists and doesn't give a good image of the XWiki >>>> project) and 2) that we have an active committer willing to support it. In >>>> case this committers goes away or becomes inactive on this distribution we >>>> shouldn't hesitate to move it to xwiki-contrib. >>>> >>>> Regarding the work you started I think it could be ok to start making it >>>> part of our official sources provided you agree to maintain it and make it >>>> to a high quality standard. >>> >>> Of course. Also note that Debian package is not just one package among >>> others in this case since we always use Debian internally ourself. It >>> would be harder to maintain any other package I guess. >>> >>>> >>>> WDYT? >>>> >>>> Thanks >>>> -Vincent >>>> >>>>> >>>>> WDYT ? >>>>> >>>>> Here is my +1 >>>>> >>>>> -- >>>>> Thomas Mortagne >>>> _______________________________________________ >>>> devs mailing list >>>> [email protected] >>>> http://lists.xwiki.org/mailman/listinfo/devs >>>> >>> >>> >>> >>> -- >>> Thomas Mortagne >>> _______________________________________________ >>> devs mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/devs >> >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > > > > -- > Thomas Mortagne > -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

