Gentoo Archives: gentoo-embedded

From: "René Rhéaume" <rene.rheaume@×××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Making a stripped-down version of Perl
Date: Wed, 01 Jun 2005 01:33:47
Message-Id: 35572ca805053118334ab717c@mail.gmail.com
1 It is a shame to see Perl tbz2 package is two and an half times bigger
2 than Python one, yet we use Perl almost only for autotools on embedded
3 Gentoo. I did some research on the Web about reducing Perl size.
4
5 I found out at least three distributions shipping a binary package
6 named "perl-base": Debian (I check the testing branch, as stable is
7 synonym for outdated), Mandr* (looked at their RPM spec on CVS) and
8 Connectiva (before Mandr*soft bought, checked from their 5.8.3-62256cl
9 SRPM), extracted the associated file list for each, adapted them,
10 merged them and replaced hard-coded with variables. The resulting file
11 looks like a snippet from a shell script, that should play well with
12 the current ebuild. I did not produce a modified ebuild yet. Whether I
13 or someone else prepared a testing ebuild is not important. I want to
14 test if the selected subset of files is good enough for autotools.
15
16 For highly embedded environments, there is also the possibility to
17 ship miniperl, the tiny Perl used by the Perl build system itself. I
18 found this in the Perl spec file from Connectiva, after make install:
19
20 # Now we can use the miniperl
21 install -m 755 miniperl %{buildroot}%{_bindir}/miniperl
22
23 Translated to: cd ${S};dobin miniperl

Attachments

File name MIME type
perl-base-files.txt text/plain

Replies

Subject Author
Re: [gentoo-embedded] Making a stripped-down version of Perl Brian Jackson <iggy@g.o>