From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 20 Nov 2013 18:33:21 +0100 Subject: [Buildroot] [pkg-perl infra 08/12] manual: adding packages perl In-Reply-To: <1384966920-9454-9-git-send-email-francois.perrad@gadz.org> References: <1384966920-9454-1-git-send-email-francois.perrad@gadz.org> <1384966920-9454-9-git-send-email-francois.perrad@gadz.org> Message-ID: <20131120183321.16b37fd2@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Francois Perrad, On Wed, 20 Nov 2013 18:01:56 +0100, Francois Perrad wrote: > +In fact, this file and the Config.in are written by running > +the script +./scancpan Foo-Bar+ in the +TOPDIR+ directory. > +This script creates packages for all required Perl/CPAN dependencies. > +All theses generated files are stored in the +package/cpan+ directory. > +In very specific case, this Makefile must be modified, for example : for > +adding a C native dependency. > + > +The Perl/CPAN modules are fine-grained, the number of module grows quickly > +over 100. So, only modified files will be stored in the Buildroot repository, > +all others can be regenerated by +scancpan+. I think this principle is quite problematic. If one looks at the "libmoose-perl: new package", it has a huge number of dependencies, and the vast majority of them are not available in Buildroot. One need to run the scancpan script to get all the packages generated. I unfortunately don't really have a good proposal to offer. Isn't it better to simply integrate all those Perl modules as normal Buildroot packages, and have the proper tools/scripts to update those Perl module packages from CPAN ? So it would be a bit like your scancpan script, except that packages are committed in the Buildroot Git repository, and with scancpan you can update those packages from CPAN and send patches to Buildroot to push those updates. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com